blob: 8a35b93332ec28092435fdb37547ea45364a4ac2 [file] [log] [blame]
Fathi Boudra422bf772019-12-02 11:10:16 +02001#!/bin/bash
2#
3# Copyright (c) 2019, Arm Limited. All rights reserved.
4#
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