blob: dc3343fe9b7ec1d00a8630f30bcc0e2831575f45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/bash
PYTHON_VERSIONS="2.6 2.7 3.1 3.2"
case "${NOCOLOR:-false}" in
yes|true)
GOOD=
BAD=
NORMAL=
;;
no|false)
GOOD=$'\e[1;32m'
BAD=$'\e[1;31m'
NORMAL=$'\e[0m'
;;
esac
interrupted() {
echo "interrupted." >&2
exit 1
}
trap interrupted SIGINT
exit_status="0"
for version in ${PYTHON_VERSIONS}; do
if [[ -x /usr/bin/python${version} ]]; then
echo -e "${GOOD}Testing with Python ${version}...${NORMAL}"
if ! /usr/bin/python${version} pym/portage/tests/runTests; then
echo -e "${BAD}Testing with Python ${version} failed${NORMAL}"
exit_status="1"
fi
echo
fi
done
exit ${exit_status}
|