summaryrefslogtreecommitdiffstats
path: root/make-test
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-10-07 22:45:32 -0600
committerJason Gerard DeRose <jderose@redhat.com>2008-10-07 22:45:32 -0600
commit6489e4f3480e934893c5c18d1f6c34fd96f46479 (patch)
tree915e46615a8c31410fd2d15d5f22c371de8a3c4d /make-test
parentfec6fc2e8c373c698966816ee97fe3a660eb503e (diff)
downloadfreeipa-6489e4f3480e934893c5c18d1f6c34fd96f46479.tar.gz
freeipa-6489e4f3480e934893c5c18d1f6c34fd96f46479.tar.xz
freeipa-6489e4f3480e934893c5c18d1f6c34fd96f46479.zip
Renamed gen-doc.bash, run-tests.bash to make-doc, make-test respectively
Diffstat (limited to 'make-test')
-rwxr-xr-xmake-test31
1 files changed, 31 insertions, 0 deletions
diff --git a/make-test b/make-test
new file mode 100755
index 000000000..08cdae7e1
--- /dev/null
+++ b/make-test
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# Script to run nosetests under multiple versions of Python
+
+versions="python2.4 python2.5 python2.6"
+
+for name in $versions
+do
+ executable="/usr/bin/$name"
+ if [[ -f $executable ]]; then
+ echo "[ $name: Starting tests... ]"
+ ((runs += 1))
+ if $executable /usr/bin/nosetests -v
+ then
+ echo "[ $name: Tests OK ]"
+ else
+ echo "[ $name: Tests FAILED ]"
+ ((failures += 1))
+ fi
+ else
+ echo "[ $name: Not found ]"
+ fi
+ echo ""
+done
+
+if [ $failures ]; then
+ echo "[ Ran under $runs version(s); FAILED under $failures version(s) ]"
+ exit $failures
+else
+ echo "[ Ran under $runs version(s); all OK ]"
+fi