about summary refs log tree commit diff stats
path: root/test/test_all.py
diff options
context:
space:
mode:
authorAdrien Guinet <adrien@guinet.me>2020-03-05 14:15:07 +0100
committerAdrien Guinet <adrien@guinet.me>2020-05-24 12:07:32 +0200
commita9768e386759d71de2c58a61e660308552574997 (patch)
treead8b1dffcc7b07b91319afd7b1b780859dd8325c /test/test_all.py
parent5dace179283f488f790c5508cf3e3f148b417f01 (diff)
downloadmiasm-a9768e386759d71de2c58a61e660308552574997.tar.gz
miasm-a9768e386759d71de2c58a61e660308552574997.zip
Include missing functions from llvm's compiler-rt into Jitllvm
Under Windows, we also need to compile these with clang (because MSVCRT doesn't seem to
have proper uint128_t support), so automatically check if clang is
installed (through the registry) and force distutils to use it (with a
not so nice hack).

Last but not least, this only works for 64 bit systems, so disable the mn_div
test if this is not the case.
Diffstat (limited to 'test/test_all.py')
-rwxr-xr-xtest/test_all.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_all.py b/test/test_all.py
index a8bf5330..71eccc6f 100755
--- a/test/test_all.py
+++ b/test/test_all.py
@@ -17,6 +17,7 @@ from utils import cosmetics, multithread
 from multiprocessing import Queue
 
 is_win = platform.system() == "Windows"
+is_64bit = platform.architecture()[0] == "64bit"
 
 testset = TestSet("../")
 TAGS = {"regression": "REGRESSION", # Regression tests
@@ -112,7 +113,7 @@ for script in ["x86/sem.py",
         if jitter in blacklist.get(script, []):
             continue
         tags = [TAGS[jitter]] if jitter in TAGS else []
-        if is_win and script.endswith("mn_div.py"):
+        if (not is_64bit) and script.endswith("mn_div.py"):
             continue
         testset += ArchUnitTest(script, jitter, base_dir="arch", tags=tags)