13
0
livetrax/gtk2_ardour/artest
Paul Davis 04bd9187e4 temporal: add (back) first set of unit tests
This just uses the old Evoral BeatTest. Some of the tests needed amending
because temporal uses rint() to convert between float and int, not just
a cast.
2022-02-12 15:12:35 -07:00

47 lines
714 B
Bash
Executable File

#!/bin/sh
cd "`dirname \"$0\"`"
TOP=..
. $TOP/build/gtk2_ardour/ardev_common_waf.sh
LIBS_DIR=$TOP/build/libs
ALLGOOD=yes
run_tests () {
echo ""
echo "-------------------------------------------"
RUN=run-tests
if test -n "$2"; then
RUN=$2
echo "Running test $2 of $1..."
else
echo "Running tests for $1..."
fi
echo "-------------------------------------------"
echo ""
$3 $LIBS_DIR/$1/$RUN || ALLGOOD=no
echo ""
}
if [ $# -gt 0 ]; then
run_tests "$1" "$2" "$3"
exit
fi
run_tests audiographer
run_tests midi++2
run_tests evoral
run_tests pbd
run_tests ardour
run_tests temporal
if test "$ALLGOOD" != "yes"; then
echo ""
echo ""
echo " *** SOME TEST(s) FAILED ***"
echo ""
echo ""
fi