Skip to content

Commit a70ea11

Browse files
committed
run our unittests on windows as far as they do run
1 parent 15a8be5 commit a70ea11

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,6 +1172,7 @@ def graalpython_gate_runner(args, tasks):
11721172
"test_csv.py",
11731173
"test_ctypes_callbacks.py", # ctypes error
11741174
"test_imports.py", # import posix
1175+
"test_locale.py",
11751176
"test_math.py",
11761177
"test_memoryview.py",
11771178
"test_mmap.py", # sys.getwindowsversion
@@ -1224,7 +1225,7 @@ def graalpython_gate_runner(args, tasks):
12241225
excluded_tests = []
12251226

12261227
# JUnit tests
1227-
with Task('GraalPython JUnit', tasks, tags=[GraalPythonTags.junit]) as task:
1228+
with Task('GraalPython JUnit', tasks, tags=[GraalPythonTags.junit, GraalPythonTags.windows]) as task:
12281229
if task:
12291230
if WIN32:
12301231
punittest(
@@ -1303,7 +1304,7 @@ def graalpython_gate_runner(args, tasks):
13031304
run_tagged_unittests(python_managed_gvm(), checkIfWithGraalPythonEE=True, cwd=SUITE.dir, report=report())
13041305

13051306
# Unittests on SVM
1306-
with Task('GraalPython tests on SVM', tasks, tags=[GraalPythonTags.svmunit]) as task:
1307+
with Task('GraalPython tests on SVM', tasks, tags=[GraalPythonTags.svmunit, GraalPythonTags.windows]) as task:
13071308
if task:
13081309
run_python_unittests(python_svm(), exclude=excluded_tests, aot_compatible=True, report=report())
13091310

@@ -1378,20 +1379,6 @@ def graalpython_gate_runner(args, tasks):
13781379
if "hello standalone" not in out.data:
13791380
mx.abort('Output from generated SVM image "' + svm_image + '" did not match success pattern:\n' + success)
13801381

1381-
with Task('GraalPy win32 smoketests', tasks, tags=[GraalPythonTags.windows]) as task:
1382-
if task:
1383-
punittest(["--no-leak-tests", "--regex", r'(com\.oracle\.truffle\.tck\.tests)|(graal\.python\.test\.(advance\.Benchmark|basic|builtin|decorator|generator|interop|util))'], report=True)
1384-
svm_image = python_svm()
1385-
out = mx.OutputCapture()
1386-
mx.run([svm_image, "-v", "-S", "--log.python.level=FINEST", "-c", "import sys; print(sys.platform)"], nonZeroIsFatal=True, out=mx.TeeOutputCapture(out), err=mx.TeeOutputCapture(out))
1387-
success = "\n".join(["win32"])
1388-
if success not in out.data:
1389-
mx.abort(f'Output from generated SVM image "{svm_image}" did not match success pattern:\nExpected\n{success}\nGot\n{out.data}')
1390-
mx.run([svm_image, "--experimental-options", "--python.NativeModules=", "-c", "import struct; print(struct.pack('>I', 0x61626364))"], nonZeroIsFatal=True, out=mx.TeeOutputCapture(out), err=mx.TeeOutputCapture(out))
1391-
success = "b'abcd'"
1392-
if success not in out.data:
1393-
mx.abort(f'Output from generated SVM image "{svm_image}" did not match success pattern:\nExpected\n{success}\nGot\n{out.data}')
1394-
13951382
with Task('Python SVM Truffle TCK', tasks, tags=[GraalPythonTags.language_checker], report=True) as task:
13961383
if task:
13971384
mx.run_mx([

0 commit comments

Comments
 (0)