actions: Validate if all tests are going to be executed

Validate if we are really calling make check for all tests in
test/functional directory.

Signed-off-by: Otavio Pontes <otavio.pontes@intel.com>
This commit is contained in:
Otavio Pontes
2020-04-10 09:58:46 -07:00
parent ea5f362f6c
commit 13752fa9ca
2 changed files with 173 additions and 102 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
set -e
JOB_NUMBER="$1"
NUM_JOBS="$2"
FILES=$(scripts/github_actions/filter_bats_list.bash "$JOB_NUMBER" "$NUM_JOBS")
NUM_FILES=$(echo "$FILES" | tr ' ' '\n' | wc -l)
echo "Running $NUM_FILES tests"
# shellcheck disable=SC2116
# shellcheck disable=SC2086
# Weird, but we really need this
env TESTS="$(echo $FILES)" make -e -j2 check
echo "$FILES" > job-"$JOB_NUMBER"