summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-12-20 11:15:15 +0100
committerGitHub <noreply@github.com>2023-12-20 11:15:15 +0100
commit9986652b27d27ad1e3053a357852b96714257041 (patch)
tree371246ace6381c404ce910029bfdf9cd7f1edd8a
parentfd46923216fe049a132a7d1b1a0802aa83e6151b (diff)
downloadspack-9986652b27d27ad1e3053a357852b96714257041.tar.gz
spack-9986652b27d27ad1e3053a357852b96714257041.tar.bz2
spack-9986652b27d27ad1e3053a357852b96714257041.tar.xz
spack-9986652b27d27ad1e3053a357852b96714257041.zip
Add detection tests for XL compilers (#41743)
-rw-r--r--var/spack/repos/builtin/packages/xlc/detection_test.yaml18
-rw-r--r--var/spack/repos/builtin/packages/xlf/detection_test.yaml11
2 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xlc/detection_test.yaml b/var/spack/repos/builtin/packages/xlc/detection_test.yaml
new file mode 100644
index 0000000000..e76c608aba
--- /dev/null
+++ b/var/spack/repos/builtin/packages/xlc/detection_test.yaml
@@ -0,0 +1,18 @@
+paths:
+ - layout:
+ - executables:
+ - "bin/xlc"
+ - "bin/xlc++"
+ - "bin/xlc_r"
+ - "bin/xlc++_r"
+ script: |
+ echo "IBM XL C/C++ for Linux, V16.1.1 (5725-C73, 5765-J13)"
+ echo "Version: 16.01.0001.0006"
+ - executables:
+ - "bin/xlcuf"
+ script: |
+ echo "IBM XL Fortran for Linux, V16.1.1 (5725-C73, 5765-J13)"
+ echo "Version: 16.01.0001.0006"
+ results:
+ - spec: "xlc+r@16.1"
+ - spec: "xlc~r@16.1"
diff --git a/var/spack/repos/builtin/packages/xlf/detection_test.yaml b/var/spack/repos/builtin/packages/xlf/detection_test.yaml
new file mode 100644
index 0000000000..461ef007d7
--- /dev/null
+++ b/var/spack/repos/builtin/packages/xlf/detection_test.yaml
@@ -0,0 +1,11 @@
+paths:
+ - layout:
+ - executables:
+ - "bin/xlf"
+ - "bin/xlf_r"
+ script: |
+ echo "IBM XL Fortran for Linux, V16.1.1 (5725-C73, 5765-J13)"
+ echo "Version: 16.01.0001.0006"
+ results:
+ - spec: "xlf+r@16.1"
+ - spec: "xlf~r@16.1"