Merge pull request #2463 from youkaichao/python/test
update test script
This commit is contained in:
commit
dade65a895
|
@ -3,3 +3,7 @@
|
|||
set -euo pipefail
|
||||
|
||||
mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=python2.* test
|
||||
|
||||
cd ../runtime/Python2/tests
|
||||
|
||||
python run.py
|
|
@ -3,3 +3,7 @@
|
|||
set -euo pipefail
|
||||
|
||||
mvn -q -Dparallel=methods -DthreadCount=4 -Dtest=python3.* test
|
||||
|
||||
cd ../runtime/Python3/test
|
||||
|
||||
python3.6 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()
|
|
@ -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()
|
Loading…
Reference in New Issue