File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed
Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+ set -uo pipefail
3+
4+ # Integration unit test script.
5+
6+ CONFIG=${CONFIG:- bl-x86_64-linux}
7+ LOG_DIR=${LOG_DIR:- _logs/ logs_ut}
8+ SUMMARY_FILE=${SUMMARY_FILE:- _logs/ ut_summary.md}
9+ mkdir -p " ${LOG_DIR} " || true
10+
11+ declare -A UT_TARGET_GROUPS=(
12+ [baselibs]=" @score_baselibs//score/... -- \
13+ -@score_baselibs//score/language/safecpp/aborts_upon_exception:abortsuponexception_toolchain_test \
14+ -@score_baselibs//score/containers:dynamic_array_test" # nok, error in @score_baselibs//score/json/examples:json_buffer
15+ [communication]=" @score_communication//score/..." # nok, error from trlc in score_communication//score/mw/com/requirements/feature_requirements
16+ [persistency]=" @score_persistency//:unit_tests" # ok
17+ [orchestrator]=" @score_orchestrator//src/..." # ok
18+ [kyron]=" @score_kyron//:unit_tests" # ok
19+ [feo]=" @score_feo//... --build_tests_only" # ok (flag required or error from docs)
20+ )
21+
22+ for group in " ${! UT_TARGET_GROUPS[@]} " ; do
23+ targets=" ${UT_TARGET_GROUPS[$group]} "
24+ echo " ==========================================="
25+ echo " Running unit tests for group: $group "
26+ echo " ==========================================="
27+ set -x
28+ bazel test --config=" ${CONFIG} " ${targets} | tee " ${LOG_DIR} /ut_${group} _output.log"
29+ set +x
30+ echo " ==========================================="
31+ echo -e " \n\n"
32+ done
You can’t perform that action at this time.
0 commit comments