aboutsummaryrefslogtreecommitdiff
path: root/tests/compute-levels.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compute-levels.sh')
-rw-r--r--tests/compute-levels.sh7
1 files changed, 7 insertions, 0 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