summaryrefslogtreecommitdiff
path: root/testsuite/driver/testlib.py
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2018-12-27 14:41:01 -0500
committerBen Gamari <ben@smart-cactus.org>2018-12-27 15:20:17 -0500
commit2d9bb67e0a42e1cfb0737de00a4a8fe2e9cc5636 (patch)
tree5f435f4e332d178031858809d81479bf84e52fd7 /testsuite/driver/testlib.py
parent942b501972139ed95b49b75cb8c0523b460f6d10 (diff)
downloadhaskell-wip/testsuite-cpu-features.tar.gz
testsuite: Add predicate for CPU feature availabilitywip/testsuite-cpu-features
Previously testing code-generation for ISA extensions was nearly impossible since we had no ability to determine whether the host supports the needed extension. Here we fix this by introducing a simple /proc/cpuinfo-based testsuite predicate. We really ought to
Diffstat (limited to 'testsuite/driver/testlib.py')
-rw-r--r--testsuite/driver/testlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py
index 5f84863070..df56d1d685 100644
--- a/testsuite/driver/testlib.py
+++ b/testsuite/driver/testlib.py
@@ -20,6 +20,7 @@ import subprocess
from testglobals import config, ghc_env, default_testopts, brokens, t
from testutil import strip_quotes, lndir, link_or_copy_file, passed, failBecause, str_fail, str_pass
+from cpu_features import have_cpu_feature
import perf_notes as Perf
from perf_notes import MetricChange
extra_src_files = {'T4198': ['exitminus1.c']} # TODO: See #12223