Files
a238b397db08fb1f48f6fc845c0524a0e16a2a9c
Ondřej Nový
2996974e5d
Script for running unit, func and probe tests at once
When developing Swift it's often needed to run all tests. This script makes it much simpler. Change-Id: I67e6f7cc05ebd0475001c1b56e8f6fd09c8c644f
34 lines
502 B
Bash
Executable File
34 lines
502 B
Bash
Executable File
#!/bin/bash
TOP_DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('0ドル'))")
echo "==== Unit tests ===="
resetswift
$TOP_DIR/.unittests $@
rvalue=$?
if [ $rvalue != 0 ] ; then
exit $rvalue
fi
echo "==== Func tests ===="
resetswift
startmain
$TOP_DIR/.functests $@
rvalue=$?
if [ $rvalue != 0 ] ; then
exit $rvalue
fi
echo "==== Probe tests ===="
resetswift
$TOP_DIR/.probetests $@
rvalue=$?
if [ $rvalue != 0 ] ; then
exit $rvalue
fi
echo "All tests runs fine"
exit 0