45 lines
1000 B
Bash
Executable File
45 lines
1000 B
Bash
Executable File
#!/bin/bash
|
|
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
|
|
|
scriptdir="$(dirname "$0")"
|
|
cd "$scriptdir"
|
|
|
|
source "../devel/python_interpreters"
|
|
eval "$("../devel/spp" -P)"
|
|
|
|
echo ">>> Tests pour python2.3"
|
|
if [ -z "$python23" ]; then
|
|
echo "PYTHON23 non configuré"
|
|
else
|
|
"$python23" -c "\
|
|
import unittest, test_all
|
|
unittest.TextTestRunner().run(test_all.suite())"
|
|
fi
|
|
|
|
echo ">>> Tests pour python2.4"
|
|
if [ -z "$python24" ]; then
|
|
echo "PYTHON24 non configuré"
|
|
else
|
|
"$python24" -c "\
|
|
import unittest, test_all
|
|
unittest.TextTestRunner().run(test_all.suite())"
|
|
fi
|
|
|
|
echo ">>> Tests pour python2.5"
|
|
if [ -z "$python25" ]; then
|
|
echo "PYTHON25 non configuré"
|
|
else
|
|
"$python25" -c "\
|
|
import unittest, test_all
|
|
unittest.TextTestRunner().run(test_all.suite())"
|
|
fi
|
|
|
|
echo ">>> Tests pour python2.6"
|
|
if [ -z "$python26" ]; then
|
|
echo "PYTHON26 non configuré"
|
|
else
|
|
"$python26" -c "\
|
|
import unittest, test_all
|
|
unittest.TextTestRunner().run(test_all.suite())"
|
|
fi
|