File tree 1 file changed +18
-1
lines changed 1 file changed +18
-1
lines changed Original file line number Diff line number Diff line change 18
18
"test_math1.py"
19
19
]
20
20
21
+ # At present we run these tests on cpython, later we should also move to lpython
22
+ test_cpython = [
23
+ "test_generics_01.py"
24
+ ]
25
+
26
+
21
27
def main ():
22
28
print ("Compiling..." )
23
29
for pyfile in tests :
@@ -30,7 +36,9 @@ def main():
30
36
if r != 0 :
31
37
print ("Command '%s' failed." % cmd )
32
38
sys .exit (1 )
39
+
33
40
print ("Running..." )
41
+ python_path = "src/runtime/ltypes"
34
42
for pyfile in tests :
35
43
basename = os .path .splitext (pyfile )[0 ]
36
44
cmd = "integration_tests/%s" % (basename )
@@ -39,7 +47,16 @@ def main():
39
47
if r != 0 :
40
48
print ("Command '%s' failed." % cmd )
41
49
sys .exit (1 )
42
- python_path = "src/runtime/ltypes"
50
+ cmd = "PYTHONPATH=%s python integration_tests/%s" % (python_path ,
51
+ pyfile )
52
+ print ("+ " + cmd )
53
+ r = os .system (cmd )
54
+ if r != 0 :
55
+ print ("Command '%s' failed." % cmd )
56
+ sys .exit (1 )
57
+
58
+ print ("Running cpython tests..." )
59
+ for pyfile in test_cpython :
43
60
cmd = "PYTHONPATH=%s python integration_tests/%s" % (python_path ,
44
61
pyfile )
45
62
print ("+ " + cmd )
You can’t perform that action at this time.
0 commit comments