aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2010-07-08 18:08:47 +0200
committerSebastian Pipping <sebastian@pipping.org>2010-07-08 18:09:15 +0200
commitdd968998a2a3bba484b6387ee844d214c6774a75 (patch)
tree6742f987ea5148d8c9fc2ef64fd883f5f3615031
parentFix doctest error reported by dabbott (diff)
downloadoverlord-dd968998a2a3bba484b6387ee844d214c6774a75.tar.gz
overlord-dd968998a2a3bba484b6387ee844d214c6774a75.tar.bz2
overlord-dd968998a2a3bba484b6387ee844d214c6774a75.zip
Add script to ease up test suite invocation
-rwxr-xr-xtestsuite.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite.sh b/testsuite.sh
new file mode 100755
index 0000000..ce125d2
--- /dev/null
+++ b/testsuite.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+# Copyright (C) 2010 Sebastian Pipping <sebastian@pipping.org>
+# Licensed under GPLv2
+
+ret=0
+for script in layman/tests/*.py ; do
+ echo "# PYTHONPATH=\"${PWD}\" python \"${script}\""
+ PYTHONPATH="${PWD}" python "${script}" \
+ || ret=1
+done
+
+[[ ${ret} != 0 ]] && echo '!!! FAIL'
+exit ${ret}