| 1 |
REQUIRES: system-darwin |
| 2 |
|
| 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 |
| 7 |
|
| 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 |
| 10 |
|
| 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 |
| 13 |
|
| 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 |
| 16 |
|
| 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 |
| 19 |
|
| 20 |
|
| 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&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> |
| 41 |
CHECK: </dict> |
| 42 |
CHECK-NEXT: </plist> |