• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1REQUIRES: system-darwin
2
3RUN: rm -rf %t
4RUN: mkdir -p %t/dsymdest
5RUN: cat %p/../Inputs/basic.macho.x86_64 > %t/basic.macho.x86_64
6RUN: cat %p/../Inputs/Info.plist > %t/Info.plist
7
8RUN: dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 -o %t/dsymdest/basic.macho.x86_64.dSYM
9RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist
10
11RUN: dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 -toolchain "toolchain&and'some<symbols" -o %t/dsymdest/basic.macho.x86_64.dSYM
12RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist --check-prefix=CHECK --check-prefix=TOOLCHAIN
13
14CHECK: <?xml version="1.0" encoding="UTF-8"?>
15CHECK-NEXT: <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
16CHECK-NEXT: <plist version="1.0">
17CHECK-NEXT:         <dict>
18CHECK-NEXT:                 <key>CFBundleDevelopmentRegion</key>
19CHECK-NEXT:                 <string>English</string>
20CHECK-NEXT:                 <key>CFBundleIdentifier</key>
21CHECK-NEXT:                 <string>com.apple.xcode.dsym.Foo&amp;Bar</string>
22CHECK-NEXT:                 <key>CFBundleInfoDictionaryVersion</key>
23CHECK-NEXT:                 <string>6.0</string>
24CHECK-NEXT:                 <key>CFBundlePackageType</key>
25CHECK-NEXT:                 <string>dSYM</string>
26CHECK-NEXT:                 <key>CFBundleSignature</key>
27CHECK-NEXT:                 <string>????</string>
28CHECK-NEXT:                 <key>CFBundleShortVersionString</key>
29CHECK-NEXT:                 <string>2.0</string>
30CHECK-NEXT:                 <key>CFBundleVersion</key>
31CHECK-NEXT:                 <string>2</string>
32TOOLCHAIN:                  <key>Toolchain</key>
33TOOLCHAIN-NEXT:             <string>toolchain&amp;and&apos;some&lt;symbols</string>
34CHECK:              </dict>
35CHECK-NEXT: </plist>
36