blob: 619c57951c6b480bc6bf81943ca4a114516aec13 [file] [log] [blame]
#!/bin/bash
pushd test &>/dev/null
OPTION=$1
if [ "$OPTION" = "help" ]
then
echo test.sh - run the tests
echo test.sh clean - clean and run the tests
exit
elif [ "$OPTION" = "clean" ]
then
echo Cleaning project ...
premake5 clean || exit 1
shift
fi
premake5 gmake2 || exit 1
make -j7 || exit 1
for file in ./build/bin/debug/*; do
echo testing $file
$file "$1"
done
popd &>/dev/null