signal_processing_vorlage/tests/scripts/execute_and_highlight.sh
Johannes Kutning 0d1b73e3e0 Initial commit
2023-10-31 07:47:27 +01:00

15 lines
268 B
Bash
Executable File

#!/bin/bash
script_path="$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )"
if [ $# -lt 1 ]
then
echo " usage: execute_and_highlight command arguments"
exit 1
fi
cmd=$1
shift 1
$cmd $@ | $script_path/highlight_test_results.sh
test ${PIPESTATUS[0]} -eq 0