2017-12-15 03:35:07 +00:00
|
|
|
#!/bin/sh
|
2017-12-15 10:56:05 +00:00
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2017-12-18 14:05:41 +00:00
|
|
|
COM_FLAGS='-m compileall'
|
|
|
|
|
2017-12-15 03:35:07 +00:00
|
|
|
rm -rf ./build
|
2017-12-18 14:05:41 +00:00
|
|
|
PY3=python3
|
2018-01-12 15:41:24 +00:00
|
|
|
PY3_LIST="osmopy scripts/osmo_ctrl.py scripts/osmo_rate_ctr2csv.py scripts/osmodumpdoc.py scripts/osmotestvty.py scripts/osmotestconfig.py scripts/osmo_interact_ctrl.py scripts/osmo_interact_vty.py scripts/osmo_verify_transcript_ctrl.py scripts/osmo_verify_transcript_vty.py scripts/soap.py scripts/twisted_ipa.py"
|
2017-12-18 14:05:41 +00:00
|
|
|
$PY3 ./setup.py install
|
|
|
|
$PY3 tests/test_py3.py
|
|
|
|
for f in $PY3_LIST
|
|
|
|
do
|
|
|
|
$PY3 $COM_FLAGS $f
|
|
|
|
done
|
2017-12-15 10:56:05 +00:00
|
|
|
|
2017-12-21 13:38:39 +00:00
|
|
|
# Run async server which tests scripts/osmo_ctrl.py interaction
|
|
|
|
$PY3 tests/test_py3.py
|
2017-12-21 13:37:23 +00:00
|
|
|
|
2017-12-15 10:56:05 +00:00
|
|
|
# TODO: add more tests
|