1 REQUIRES: system-darwin
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">
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&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&and'some<symbols</string>