diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/apple-clang/detection_test.yaml')
-rw-r--r-- | var/spack/repos/builtin/packages/apple-clang/detection_test.yaml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/apple-clang/detection_test.yaml b/var/spack/repos/builtin/packages/apple-clang/detection_test.yaml new file mode 100644 index 0000000000..dc5b7106ec --- /dev/null +++ b/var/spack/repos/builtin/packages/apple-clang/detection_test.yaml @@ -0,0 +1,35 @@ +paths: + # Apple Clang on MacBook Pro (Catalina) + - layout: + - executables: + - "bin/clang" + - "bin/clang++" + script: | + echo "Apple clang version 11.0.0 (clang-1100.0.33.8)" + echo "Target: x86_64-apple-darwin19.5.0" + echo "Thread model: posix" + echo "InstalledDir: /Library/Developer/CommandLineTools/usr/bin" + results: + - spec: 'apple-clang@11.0.0' + # Apple Clang on Apple M1 (Ventura) + - layout: + - executables: + - "bin/clang" + - "bin/clang++" + script: | + echo "Apple clang version 15.0.0 (clang-1500.0.40.1)" + echo "Target: arm64-apple-darwin22.6.0" + echo "Thread model: posix" + echo "InstalledDir: /Library/Developer/CommandLineTools/usr/bin" + results: + - spec: 'apple-clang@15.0.0' + # Test that missing a compiler prevents the package from being detected + - layout: + - executables: + - "bin/clang" + script: | + echo "Apple clang version 11.0.0 (clang-1100.0.33.8)" + echo "Target: x86_64-apple-darwin19.5.0" + echo "Thread model: posix" + echo "InstalledDir: /Library/Developer/CommandLineTools/usr/bin" + results: [ ] |