Change-Id: I7b4bb49efd5e6ae284da063b7899e368ea4f1e22 Related: I4d4facfabc75187acd5238ff4d0f26022bd58f82
24 lines
493 B
Bash
Executable File
24 lines
493 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
if [ ! -d "./pysim-testdata/" ] ; then
|
|
echo "###############################################"
|
|
echo "Please call from pySim-prog top directory"
|
|
echo "###############################################"
|
|
exit 1
|
|
fi
|
|
|
|
virtualenv -p python3 venv --system-site-packages
|
|
. venv/bin/activate
|
|
pip install pytlv
|
|
pip install pyyaml
|
|
pip install cmd2
|
|
|
|
# Execute automatically discovered unit tests first
|
|
python -m unittest discover -v -s tests/
|
|
|
|
cd pysim-testdata
|
|
../tests/pysim-test.sh
|
|
|