pmb887x-dev/unit/run.sh
2026-11-22 12:42:02 +03:00

16 lines
356 B
Bash
Executable file

#!/bin/bash
set -e
set -o pipefail
set -x
test_name="$1"
shift
board=${BOARD:-siemens-el71}
build_dir="build/$board"
cmake_args=(-B "$build_dir" -DBOARD="$board" -DBOOT=extram -DTEST_COLOR="${TEST_COLOR:-ON}")
cmake "${cmake_args[@]}"
cmake --build "$build_dir" --target "$test_name"
../boot.sh "$build_dir/$test_name.bin" "$@" | awk -f tap-result.awk