aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-02-23 14:30:10 +0100
committerGitHub <noreply@github.com>2021-02-23 14:30:10 +0100
commita878c448d84f087ee1dfdde95a51614187aa170c (patch)
tree0265fc3349f3239ef1c27d781799c0c499f859b0 /tests
parent35205e2e922952fc0654260a07fc3191c5afc2cc (diff)
parent2de232d2b301b2f0854b9fa715ab085612c85e00 (diff)
Merge pull request #4551 from danieldk/system-features-compute-level
Add x86_64 compute levels as system features
Diffstat (limited to 'tests')
-rw-r--r--tests/compute-levels.sh7
-rw-r--r--tests/local.mk3
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/compute-levels.sh b/tests/compute-levels.sh
new file mode 100644
index 000000000..e4322dfa1
--- /dev/null
+++ b/tests/compute-levels.sh
@@ -0,0 +1,7 @@
+source common.sh
+
+if [[ $(uname -ms) = "Linux x86_64" ]]; then
+ # x86_64 CPUs must always support the baseline
+ # microarchitecture level.
+ nix -vv --version | grep -q "x86_64-v1-linux"
+fi
diff --git a/tests/local.mk b/tests/local.mk
index aa8b4f9bf..06be8cec1 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -38,7 +38,8 @@ nix_tests = \
describe-stores.sh \
flakes.sh \
content-addressed.sh \
- build.sh
+ build.sh \
+ compute-levels.sh
# parallel.sh
# build-remote-content-addressed-fixed.sh \