blob: 9b4689da6842845a8126786d07e51799600c6343 [file] [log] [blame]
Alexander Couzens47312322018-07-19 23:31:39 +02001#!/bin/sh
2
3set -e
4
Harald Welte91d4ec72019-05-10 16:20:54 +02005if [ ! -d "./pysim-testdata/" ] ; then
Alexander Couzens47312322018-07-19 23:31:39 +02006 echo "###############################################"
Harald Welte91d4ec72019-05-10 16:20:54 +02007 echo "Please call from pySim-prog top directory"
Alexander Couzens47312322018-07-19 23:31:39 +02008 echo "###############################################"
9 exit 1
10fi
11
Daniel Willmannde07b952020-10-19 10:32:34 +020012virtualenv -p python3 venv --system-site-packages
Alexander Couzens47312322018-07-19 23:31:39 +020013. venv/bin/activate
14pip install pytlv
Philipp Maierc5b422e2019-08-30 11:41:02 +020015pip install pyyaml
Harald Welteb2edd142021-01-08 23:29:35 +010016pip install cmd2
Alexander Couzens47312322018-07-19 23:31:39 +020017
Vadim Yanitskiy4ae7c492021-03-11 23:17:27 +010018# Execute automatically discovered unit tests first
19# TODO: uncomment once all tests are passing
20# python -m unittest discover -v -s tests/
21
Alexander Couzens47312322018-07-19 23:31:39 +020022cd pysim-testdata
23../tests/pysim-test.sh
24