blob: bd9aeca3d10b7ba2dcd4826740d83f8ce3de6d11 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Leonardo Sandoval579c7372020-10-23 15:23:32 -05003# Copyright (c) 2019-2020 Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8ci_root="$(readlink -f "$(dirname "$0")/..")"
9run_config_dir="$ci_root/run_config"
10
11run_config="$1"
12if [ -z "$run_config" ]; then
13 echo "Run config exected as parameter"
14 exit 1
15elif [ ! -f "$run_config_dir/$run_config" ]; then
16 echo "Run config $run_config not found"
17 exit 1
18fi
19
20for test_config in $(cd "$ci_root/group" && find -type f -printf "%P\n"); do
21 if echo "$run_config_part" | grep -q ":nil$"; then
22 continue;
23 fi
24
25 if "$ci_root/script/gen_run_config_candidates.py" "$test_config" | \
26 grep -q "^$run_config$"; then
27 echo "$test_config"
28 fi
29done