projects
/
centaur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Automate tests
[centaur.git]
/
tests
/
boilerplate.sh
diff --git a/tests/boilerplate.sh
b/tests/boilerplate.sh
new file mode 100755
(executable)
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
+}