2 # Copyright 2010-2011 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_VERSIONS="2.6 2.7 3.1 3.2 3.3"
7 # has to be run from portage root dir
10 case "${NOCOLOR:-false}" in
24 echo "interrupted." >&2
28 trap interrupted SIGINT
32 while [ $# -gt 0 ] ; do
35 PYTHON_VERSIONS=${1#--python-versions=}
42 unused_args[${#unused_args[@]}]=$1
48 set -- "${unused_args[@]}"
51 for version in ${PYTHON_VERSIONS}; do
52 if [[ -x /usr/bin/python${version} ]]; then
53 echo -e "${GOOD}Testing with Python ${version}...${NORMAL}"
54 if ! /usr/bin/python${version} -Wd pym/portage/tests/runTests "$@" ; then
55 echo -e "${BAD}Testing with Python ${version} failed${NORMAL}"