contrib: add jenkins.sh

Run the tests.

Change-Id: I9308f097bf77d82e5ef78d1be551baf127726f74
This commit is contained in:
Alexander Couzens 2018-07-19 23:31:39 +02:00
parent 7f340851fc
commit 4731232aae
1 changed files with 19 additions and 0 deletions

19
contrib/jenkins.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
set -e
if [ ! -d "$HOME/pysim-testdata/" ] ; then
echo "###############################################"
echo "Please create testdata in $HOME/pysim-testdata!"
echo "###############################################"
exit 1
fi
virtualenv -p python2 venv --system-site-packages
. venv/bin/activate
pip install pytlv
cp -a "$HOME/pysim-testdata/" pysim-testdata/
cd pysim-testdata
../tests/pysim-test.sh