diff options
author | Ondřej Nový <ondrej.novy@firma.seznam.cz> | 2015-10-10 14:56:30 +0200 |
---|---|---|
committer | Ondřej Nový <ondrej.novy@firma.seznam.cz> | 2015-10-13 09:10:09 +0200 |
commit | 2996974e5d48b4efaa1b271b8fbd0387bced7242 (patch) | |
tree | 38dd2b7596006ebe79bec39e58c591062622b72c /.alltests | |
parent | e6a1ed5fb152c708c5ddc4a518a5b978a2066ce8 (diff) | |
download | swift-2996974e5d48b4efaa1b271b8fbd0387bced7242.tar.gz |
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
Diffstat (limited to '.alltests')
-rwxr-xr-x | .alltests | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/.alltests b/.alltests new file mode 100755 index 000000000..bccb126cb --- /dev/null +++ b/.alltests @@ -0,0 +1,33 @@ +#!/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 + |