diff --git a/.travis/run-tests-python2.sh b/.travis/run-tests-python2.sh index 4d23f32a2..d2a22dc77 100755 --- a/.travis/run-tests-python2.sh +++ b/.travis/run-tests-python2.sh @@ -3,3 +3,7 @@ set -euo pipefail mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=python2.* test + +cd ../runtime/Python2/tests + +python run.py \ No newline at end of file diff --git a/.travis/run-tests-python3.sh b/.travis/run-tests-python3.sh index 2a6ff050d..9b528f35b 100755 --- a/.travis/run-tests-python3.sh +++ b/.travis/run-tests-python3.sh @@ -3,3 +3,7 @@ set -euo pipefail mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=python3.* test + +cd ../runtime/Python3/test + +python3.6 run.py \ No newline at end of file diff --git a/runtime/Python2/tests/run.py b/runtime/Python2/tests/run.py new file mode 100644 index 000000000..c9ae18877 --- /dev/null +++ b/runtime/Python2/tests/run.py @@ -0,0 +1,7 @@ +import sys +import os +src_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'src') +sys.path.insert(0,src_path) +from TestTokenStreamRewriter import TestTokenStreamRewriter +import unittest +unittest.main() \ No newline at end of file diff --git a/runtime/Python3/test/run.py b/runtime/Python3/test/run.py new file mode 100644 index 000000000..c9ae18877 --- /dev/null +++ b/runtime/Python3/test/run.py @@ -0,0 +1,7 @@ +import sys +import os +src_path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'src') +sys.path.insert(0,src_path) +from TestTokenStreamRewriter import TestTokenStreamRewriter +import unittest +unittest.main() \ No newline at end of file