mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-24 08:00:02 -06:00
e62bbab37a
In order to run the tests you must put your DM password into ~/.ipa/.dmpw Some tests are expected to generate errors. Don't let any ERROR messages from the updater fool you, watch the pass/fail of the nosetests.
34 lines
825 B
Bash
Executable File
34 lines
825 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Script to run nosetests under multiple versions of Python
|
|
|
|
export IPA_UNIT_TEST_MODE="cli_test"
|
|
versions="python2.4 python2.5 python2.6"
|
|
|
|
for name in $versions
|
|
do
|
|
executable="/usr/bin/$name"
|
|
if [[ -f $executable ]]; then
|
|
echo "[ $name: Starting tests... ]"
|
|
((runs += 1))
|
|
if $executable /usr/bin/nosetests --debug-log=/dev/null -v --with-doctest --exclude="plugins"
|
|
then
|
|
echo "[ $name: Tests OK ]"
|
|
else
|
|
echo "[ $name: Tests FAILED ]"
|
|
((failures += 1))
|
|
fi
|
|
else
|
|
echo "[ $name: Not found ]"
|
|
fi
|
|
echo ""
|
|
done
|
|
|
|
if [ $failures ]; then
|
|
echo "[ Ran under $runs version(s); FAILED under $failures version(s) ]"
|
|
echo "FAIL!"
|
|
exit $failures
|
|
else
|
|
echo "[ Ran under $runs version(s); all OK ]"
|
|
fi
|