mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
31 lines
445 B
Bash
Executable File
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
|