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 CHECK: <?xml version="1.0" encoding="UTF-8"?>
15 CHECK-NEXT: <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
16 CHECK-NEXT: <plist version="1.0">
18 CHECK-NEXT: <key>CFBundleDevelopmentRegion</key>
19 CHECK-NEXT: <string>English</string>
20 CHECK-NEXT: <key>CFBundleIdentifier</key>
21 CHECK-NEXT: <string>com.apple.xcode.dsym.custom</string>
22 CHECK-NEXT: <key>CFBundleInfoDictionaryVersion</key>
23 CHECK-NEXT: <string>6.0</string>
24 CHECK-NEXT: <key>CFBundlePackageType</key>
25 CHECK-NEXT: <string>dSYM</string>
26 CHECK-NEXT: <key>CFBundleSignature</key>
27 CHECK-NEXT: <string>????</string>
28 CHECK-NEXT: <key>CFBundleShortVersionString</key>
29 CHECK-NEXT: <string>2.0</string>
30 CHECK-NEXT: <key>CFBundleVersion</key>
31 CHECK-NEXT: <string>2</string>
32 TOOLCHAIN: <key>Toolchain</key>
33 TOOLCHAIN-NEXT: <string>toolchain&and'some<symbols</string>