summaryrefslogtreecommitdiff
path: root/tests/boilerplate.sh
diff options
context:
space:
mode:
authornorly <ny-git@enpas.org>2013-06-19 20:20:10 +0100
committernorly <ny-git@enpas.org>2013-06-20 22:10:23 +0100
commit7f1a29e9e33059dfebdc24bb3ffaa3dac46b58f1 (patch)
tree89f3108016eb3440ec35a9b20957f46ef999cc5c /tests/boilerplate.sh
parentc98d704a812502c34d82e34949f37c8b87ae6018 (diff)
Automate tests
Diffstat (limited to 'tests/boilerplate.sh')
-rwxr-xr-xtests/boilerplate.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/boilerplate.sh b/tests/boilerplate.sh
new file mode 100755
index 0000000..2ebafa2
--- /dev/null
+++ b/tests/boilerplate.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+BUILDDIR=${BUILDDIR:-build}
+mkdir -p $BUILDDIR
+
+function test_check_retval
+{
+ TEST_RETVAL=$?
+
+ if [ $TEST_RETVAL != 0 ]
+ then
+ exit $TEST_RETVAL
+ fi
+}