Merge pull request #2463 from youkaichao/python/test

update test script
This commit is contained in:
Terence Parr 2019-02-23 08:57:40 -08:00 committed by GitHub
commit dade65a895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 0 deletions

View File

@ -3,3 +3,7 @@
set -euo pipefail
mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=python2.* test
cd ../runtime/Python2/tests
python run.py

View File

@ -3,3 +3,7 @@
set -euo pipefail
mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=python3.* test
cd ../runtime/Python3/test
python3.6 run.py

View File

@ -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()

View File

@ -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()