@@ -0,0 +1,799 @@
+# Copyright lowRISC contributors.%0A# Licensed under the Apache License, Version 2.0, see LICENSE for details.%0A# SPDX-License-Identifier: Apache-2.0%0A%0Aload(%22//rules:const.bzl%22, %22CONST%22)%0Aload(%22@bazel_skylib//lib:structs.bzl%22, %22structs%22)%0A%0A_ALL_LC_STATE_VALS = structs.to_dict(CONST.LCV).values()%0A_SKIP_LC_STATE_VALS = %5B%0A    CONST.LCV.TEST_UNLOCKED0,%0A    CONST.LCV.PROD,%0A    CONST.LCV.PROD_END,%0A    CONST.LCV.DEV,%0A%5D%0A_REM_LC_STATE_VALS = %5B%0A    lc_state_val%0A    for lc_state_val in _ALL_LC_STATE_VALS%0A    if lc_state_val not in _SKIP_LC_STATE_VALS%0A%5D%0A%0Adef maybe_skip_in_ci(lc_state_val):%0A    if lc_state_val in _SKIP_LC_STATE_VALS:%0A        return %5B%22skip_in_ci%22%5D%0A    if lc_state_val in _REM_LC_STATE_VALS:%0A        return %5B%5D%0A    fail(%22Life cycle state value %7B%7D is not in %7B%7D%22, lc_state_val, _ALL_LC_STATE_VALS)%0A

Add rom_e2e.bzl to tag rom e2e tests based on life cycle state