1RUN: rm -rf %t 2RUN: mkdir -p %t/dsymdest 3RUN: cat %p/../Inputs/basic.macho.x86_64 > %t/basic.macho.x86_64 4 5RUN: dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 6 7Check that the object file in the bundle exists and is sane: 8RUN: llvm-dwarfdump -a %t/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test 9 10Check that llvm-dwarfdump -a recognizes the bundle as a dSYM: 11RUN: llvm-dwarfdump -a %t/basic.macho.x86_64.dSYM | FileCheck %S/basic-linking-x86.test 12 13RUN: FileCheck %s --input-file %t/basic.macho.x86_64.dSYM/Contents/Info.plist 14 15RUN: dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 -o %t/dsymdest/basic.macho.x86_64.dSYM 16RUN: llvm-dwarfdump -a %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test 17RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist 18 19CHECK: <?xml version="1.0" encoding="UTF-8"?> 20CHECK-NEXT: <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 21CHECK-NEXT: <plist version="1.0"> 22CHECK-NEXT: <dict> 23CHECK-NEXT: <key>CFBundleDevelopmentRegion</key> 24CHECK-NEXT: <string>English</string> 25CHECK-NEXT: <key>CFBundleIdentifier</key> 26CHECK-NEXT: <string>com.apple.xcode.dsym.basic.macho.x86_64</string> 27CHECK-NEXT: <key>CFBundleInfoDictionaryVersion</key> 28CHECK-NEXT: <string>6.0</string> 29CHECK-NEXT: <key>CFBundlePackageType</key> 30CHECK-NEXT: <string>dSYM</string> 31CHECK-NEXT: <key>CFBundleSignature</key> 32CHECK-NEXT: <string>????</string> 33CHECK-NEXT: <key>CFBundleShortVersionString</key> 34CHECK-NEXT: <string>1.0</string> 35CHECK-NEXT: <key>CFBundleVersion</key> 36CHECK-NEXT: <string>1</string> 37CHECK-NEXT: </dict> 38CHECK-NEXT: </plist> 39