copyparty/scripts/run-tests.sh
2022-06-16 01:07:15 +02:00

26 lines
418 B
Bash
Executable file

#!/bin/bash
set -ex
rm -rf unt
mkdir -p unt/srv
cp -pR copyparty tests unt/
cd unt
python3 ../scripts/strip_hints/a.py
pids=()
for py in python{2,3}; do
PYTHONPATH=
[ $py = python2 ] && PYTHONPATH=../scripts/py2
export PYTHONPATH
nice $py -m unittest discover -s tests >/dev/null &
pids+=($!)
done
python3 ../scripts/test/smoketest.py &
pids+=($!)
for pid in ${pids[@]}; do
wait $pid
done