[libc] Deprecate LLVM_ENABLE_PROJECTS in favor of LLVM_ENABLE_RUNTIMES. (#117265)
[llvm-project.git] / llvm / test / tools / dsymutil / X86 / darwin-bundle.test
blob62f716b8a61acf436f92536c7e851020faa154b8
1 REQUIRES: system-darwin
3 RUN: rm -rf %t
4 RUN: mkdir -p %t/dsymdest
5 RUN: cat %p/../Inputs/basic.macho.x86_64 > %t/basic.macho.x86_64
6 RUN: cat %p/../Inputs/Info.plist > %t/Info.plist
8 RUN: dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 -o %t/dsymdest/basic.macho.x86_64.dSYM
9 RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist
11 RUN: dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 -toolchain "toolchain&and'some<symbols" -o %t/dsymdest/basic.macho.x86_64.dSYM
12 RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist --check-prefix=CHECK --check-prefix=TOOLCHAIN
14 RUN: dsymutil --linker parallel -oso-prepend-path=%p/.. %t/basic.macho.x86_64 -o %t/dsymdest/basic.macho.x86_64.dSYM
15 RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist
17 RUN: dsymutil --linker parallel -oso-prepend-path=%p/.. %t/basic.macho.x86_64 -toolchain "toolchain&and'some<symbols" -o %t/dsymdest/basic.macho.x86_64.dSYM
18 RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist --check-prefix=CHECK --check-prefix=TOOLCHAIN
21 CHECK: <?xml version="1.0" encoding="UTF-8"?>
22 CHECK-NEXT: <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
23 CHECK-NEXT: <plist version="1.0">
24 CHECK-NEXT:         <dict>
25 CHECK-NEXT:                 <key>CFBundleDevelopmentRegion</key>
26 CHECK-NEXT:                 <string>English</string>
27 CHECK-NEXT:                 <key>CFBundleIdentifier</key>
28 CHECK-NEXT:                 <string>com.apple.xcode.dsym.Foo&amp;Bar</string>
29 CHECK-NEXT:                 <key>CFBundleInfoDictionaryVersion</key>
30 CHECK-NEXT:                 <string>6.0</string>
31 CHECK-NEXT:                 <key>CFBundlePackageType</key>
32 CHECK-NEXT:                 <string>dSYM</string>
33 CHECK-NEXT:                 <key>CFBundleSignature</key>
34 CHECK-NEXT:                 <string>????</string>
35 CHECK-NEXT:                 <key>CFBundleShortVersionString</key>
36 CHECK-NEXT:                 <string>2.0</string>
37 CHECK-NEXT:                 <key>CFBundleVersion</key>
38 CHECK-NEXT:                 <string>2</string>
39 TOOLCHAIN:                  <key>Toolchain</key>
40 TOOLCHAIN-NEXT:             <string>toolchain&amp;and&apos;some&lt;symbols</string>
41 CHECK:              </dict>
42 CHECK-NEXT: </plist>