Skip to content

Commit 5238e34

Browse files
committed
fix generating test-selection tags, insert tags for test_math
1 parent d238c5d commit 5238e34

File tree

2 files changed

+52
-4
lines changed

2 files changed

+52
-4
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_working_unittests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def fun():
9797
import re
9898

9999
executable = sys.executable.split(" ") # HACK: our sys.executable on Java is a cmdline
100-
re_success = re.compile("^(test[^ ]+).* ... ok")
100+
re_success = re.compile("(test[^ ]+).* ... ok")
101101
with open(TAGS_FILE, "w") as f:
102102
for testfile in glob.glob(os.path.join(os.path.dirname(test.__file__), "test_*.py")):
103103
testmod = "test.%s" % os.path.splitext(os.path.basename(testfile))[0]
@@ -108,7 +108,7 @@ def fun():
108108
f.write("\n")
109109
except BaseException as e:
110110
print(e)
111-
p = subprocess.run(["/usr/bin/timeout", "100", sys.executable, "-m", testmod, "-v"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=False)
111+
p = subprocess.run(["/usr/bin/timeout", "100"] + executable + ["-m", testmod, "-v"], stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, check=False)
112112
print("***")
113113
print(p.stdout)
114114
print("***")

graalpython/com.oracle.graal.python.test/src/tests/working_unittests.txt

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,53 @@ test.test_longexp
3232
test.doctest_aliases
3333
test.test_univnewlines
3434
test.test_dynamic
35-
test.math:
36-
testAcos
35+
test.test_math:
36+
testAcos
37+
testAsin
38+
testAtan
39+
testAtan2
40+
testAtanh
41+
testCeil
42+
testConstants
43+
testCopysign
44+
testDegrees
45+
testExp
46+
testFabs
47+
testFactorial
48+
testFactorialHugeInputs
49+
testFloor
50+
testFmod
51+
testFrexp
52+
testFsum
53+
testGcd
54+
testHypot
55+
testIsfinite
56+
testIsinf
57+
testIsnan
58+
testLdexp
59+
testLog
60+
testLog10
61+
testLog1p
62+
testLog2
63+
testLog2Exact
64+
testModf
65+
testPow
66+
testRadians
67+
testSin
68+
testSqrt
69+
testTanhSign
70+
test_exceptions
71+
test_inf_constant
72+
test_nan_constant
73+
test_trunc
74+
test_asymmetry
75+
test_decimals
76+
test_eight_decimal_places
77+
test_fractions
78+
test_identical
79+
test_identical_infinite
80+
test_inf_ninf_nan
81+
test_integers
82+
test_near_zero
83+
test_negative_tolerances
84+
test_zero_tolerance

0 commit comments

Comments
 (0)