summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/apple-clang/detection_test.yaml
blob: dc5b7106ec50f427a983a203b65e614fc4a14121 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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: [ ]