FreedomBox/test.sh
Nick Daly daca06a9b3 Moved actions/privilegedactions_test.py to tests/.
Added new "--pause" option in test.sh to pause after each test.
2013-11-02 10:34:51 -05:00

31 lines
445 B
Bash
Executable File

#! /bin/sh
# This file is meant to be run from the Plinth root directory:
#
# $ cd plinth/
# $ ./test.sh
PYTHONPATH=modules/installed/lib:$PYTHONPATH
PYTHONPATH=vendor:$PYTHONPATH
PYTHONPATH=.:$PYTHONPATH
export PYTHONPATH
for arg in "$@"
do
if [ "$arg" = "--pause" ]
then
pause=1
fi
done
for file in tests/*.py
do
echo "Testing ${file}:"
python $file
if [ "$pause" = 1 ]
then
read X
fi
done