diff options
author | Ben Gamari <ben@smart-cactus.org> | 2018-12-27 14:41:01 -0500 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-01-27 08:32:12 -0500 |
commit | 1dd251b861c98c7b42a117b820afef5020745585 (patch) | |
tree | 7b96692309adbb772a971996d7881b29f4b6aeab /testsuite/driver/testlib.py | |
parent | 3cbee255cd550e49e3265257fd2955ce8e6a351a (diff) | |
download | haskell-1dd251b861c98c7b42a117b820afef5020745585.tar.gz |
testsuite: Add predicate for CPU feature availability
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.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/driver/testlib.py b/testsuite/driver/testlib.py index c09d02aab2..ba4f6a5a47 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 |