summaryrefslogtreecommitdiffstats
path: root/runtests.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-13 19:01:14 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-13 19:01:14 -0700
commit5546223c61ff1723f047143502a2cae332622e2e (patch)
tree0c32e1710291368ffdc5c8ee19855d4466db16c8 /runtests.sh
parent3146e53630438473ad241939a5dfa2b71e9cf559 (diff)
parent2d8eaedb61bdbe4a47d6b27c8a3e67754078773d (diff)
downloadportage-5546223c61ff1723f047143502a2cae332622e2e.tar.gz
portage-5546223c61ff1723f047143502a2cae332622e2e.tar.bz2
portage-5546223c61ff1723f047143502a2cae332622e2e.zip
Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/runtests.sh b/runtests.sh
new file mode 100755
index 000000000..1afbfb3f4
--- /dev/null
+++ b/runtests.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+PYTHON_VERSIONS="2.6 2.7 3.1 3.2"
+
+exit_status="0"
+for version in ${PYTHON_VERSIONS}; do
+ if [[ -x /usr/bin/python${version} ]]; then
+ echo -e "\e[1;32mTesting with Python ${version}...\e[0m"
+ if ! PYTHONPATH="pym${PYTHONPATH:+:}${PYTHONPATH}" /usr/bin/python${version} pym/portage/tests/runTests; then
+ echo -e "\e[1;31mTesting with Python ${version} failed\e[0m"
+ exit_status="1"
+ fi
+ echo
+ fi
+done
+
+exit ${exit_status}