git @ Cat's Eye Technologies Samovar / support-python-3
Test under both Python 2 and Python 3. Will need investigation. Chris Pressey 3 years ago
2 changed file(s) with 7 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
2222
2323 -> Functionality "Run Samovar Simulation" is implemented by
2424 -> shell command
25 -> "bin/samovar %(test-body-file) --min-events 4 --seed 0"
25 -> "python2 bin/samovar %(test-body-file) --min-events 4 --seed 0"
26
27 -> Functionality "Run Samovar Simulation" is implemented by
28 -> shell command
29 -> "python3 bin/samovar %(test-body-file) --min-events 4 --seed 0"
2630
2731 Basic Syntax
2832 ------------
00 #!/bin/sh
11
2 if [ "x$PYTHON" = "x" ]; then
3 PYTHON="python2.7"
4 fi
5 PYTHONPATH=src $PYTHON src/samovar/tests.py || exit 1
2 PYTHONPATH=src python2 src/samovar/tests.py || exit 1
3 PYTHONPATH=src python3 src/samovar/tests.py || exit 1
64 falderal -b doc/Samovar.md || exit 1