summaryrefslogtreecommitdiffstats
path: root/run-tests.bash
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-08-14 21:05:14 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-08-14 21:05:14 +0000
commita7b3dde055d8459720397ae891003228a1a181eb (patch)
tree855badb00faed9550a9de9844dedefab7bba5384 /run-tests.bash
parentd229a764749b37aded48ed6eec230df9105a62b0 (diff)
downloadfreeipa-a7b3dde055d8459720397ae891003228a1a181eb.tar.gz
freeipa-a7b3dde055d8459720397ae891003228a1a181eb.tar.xz
freeipa-a7b3dde055d8459720397ae891003228a1a181eb.zip
166: Added quick script to run unit tests under both Python2.4 and Python2.5
Diffstat (limited to 'run-tests.bash')
-rwxr-xr-xrun-tests.bash17
1 files changed, 17 insertions, 0 deletions
diff --git a/run-tests.bash b/run-tests.bash
new file mode 100755
index 000000000..55fc6376b
--- /dev/null
+++ b/run-tests.bash
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+# Hackish script to run unit tests under both Python 2.4 and 2.5
+
+interpreters="python2.4 python2.5"
+
+for name in $interpreters
+do
+ executable="/usr/bin/$name"
+ if [[ -f $executable ]]
+ then
+ echo "[ $0: running unit tests under $name ]"
+ $executable /usr/bin/nosetests
+ else
+ echo "[ $0: $name not found ]"
+ fi
+done