Files
swupd-client/scripts/github_actions/run_check.bash
Otavio Pontes 13752fa9ca 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>
2020-04-10 09:58:46 -07:00

16 lines
381 B
Bash
Executable File

#!/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"