aboutsummaryrefslogtreecommitdiff
path: root/src/test/runtests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/runtests.sh')
-rwxr-xr-xsrc/test/runtests.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/runtests.sh b/src/test/runtests.sh
index 01e4dd8f..40fe1511 100755
--- a/src/test/runtests.sh
+++ b/src/test/runtests.sh
@@ -66,4 +66,15 @@ syms=$(diff -u librc.funcs.hidden.list librc.funcs.hidden.out | sed -n '/^+[^+]/
eend $? "Missing hidden defs:"$'\n'"${syms}"
ret=$(($ret + $?))
+einfo "Running unit tests"
+eindent
+cd units
+for u in *; do
+ [ -x "${u}" -a -f "${u}" ] || continue
+ ebegin "${u}"
+ ./"${u}"
+ eend $?
+ ret=$(($ret + $?))
+done
+
exit ${ret}