#!/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 pip install jsonpath-ng # Execute automatically discovered unit tests first python -m unittest discover -v -s tests/ # attempt to build documentation pip install sphinx pip install sphinxcontrib-napoleon pip3 install -e 'git+https://github.com/osmocom/sphinx-argparse@master#egg=sphinx-argparse' (cd docs && make html) # run the test with physical cards cd pysim-testdata ../tests/pysim-test.sh