aboutsummaryrefslogtreecommitdiff
path: root/tests/do-unit.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/do-unit.sh.in')
-rwxr-xr-xtests/do-unit.sh.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/do-unit.sh.in b/tests/do-unit.sh.in
new file mode 100755
index 000000000..cefc8a9ca
--- /dev/null
+++ b/tests/do-unit.sh.in
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+cd "$(dirname "${0}")"
+
+UNIT="./unit/unit"
+
+RC=0
+
+check_unit() {
+
+ $UNIT
+ UNIT_RC=$?
+ if [ $UNIT_RC -ne 0 ]; then
+ RC=1
+ fi
+}
+
+check_unit
+
+exit $RC