Fathi Boudra | 422bf77 | 2019-12-02 11:10:16 +0200 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | # Copyright (c) 2019, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | ci_root="$(readlink -f "$(dirname "$0")/..")" |
| 9 | run_config_dir="$ci_root/run_config" |
| 10 | |
| 11 | run_config="$1" |
| 12 | if [ -z "$run_config" ]; then |
| 13 | echo "Run config exected as parameter" |
| 14 | exit 1 |
| 15 | elif [ ! -f "$run_config_dir/$run_config" ]; then |
| 16 | echo "Run config $run_config not found" |
| 17 | exit 1 |
| 18 | fi |
| 19 | |
| 20 | for 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 |
| 29 | done |