add missing test shim

This commit is contained in:
Dane Springmeyer 2015-02-02 13:26:07 -08:00
parent 8408b56623
commit abd1c441de

18
tests/cpp_tests/run Executable file
View file

@ -0,0 +1,18 @@
#!/bin/bash
cd "$( dirname "${BASH_SOURCE[0]}" )"
cd ../../
source ./localize.sh
failures=0
if [ -n "$(find tests/cpp_tests/ -maxdepth 1 -name '*-bin' -print -quit)" ]; then
for FILE in tests/cpp_tests/*-bin; do
${FILE} -q -d .;
failures=$((failures+$?))
done
echo
else
echo 'warning: no c++ tests found'
fi
exit $failures