signal_processing_vorlage/tests/scripts/execute_and_highlight.sh

15 lines
268 B
Bash
Raw Normal View History

2023-10-31 07:47:27 +01:00
#!/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