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 we don't create an empty Remarks directory if there are no remarks. 11RUN: not ls %t/basic.macho.x86_64.dSYM/Contents/Resources/Remarks 12 13Check that llvm-dwarfdump -a recognizes the bundle as a dSYM: 14RUN: llvm-dwarfdump -a %t/basic.macho.x86_64.dSYM | FileCheck %S/basic-linking-x86.test 15 16RUN: FileCheck %s --input-file %t/basic.macho.x86_64.dSYM/Contents/Info.plist 17 18RUN: dsymutil -oso-prepend-path=%p/.. %t/basic.macho.x86_64 -o %t/dsymdest/basic.macho.x86_64.dSYM 19RUN: llvm-dwarfdump -a %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Resources/DWARF/basic.macho.x86_64 | FileCheck %S/basic-linking-x86.test 20RUN: FileCheck %s --input-file %t/dsymdest/basic.macho.x86_64.dSYM/Contents/Info.plist 21 22CHECK: <?xml version="1.0" encoding="UTF-8"?> 23CHECK-NEXT: <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 24CHECK-NEXT: <plist version="1.0"> 25CHECK-NEXT: <dict> 26CHECK-NEXT: <key>CFBundleDevelopmentRegion</key> 27CHECK-NEXT: <string>English</string> 28CHECK-NEXT: <key>CFBundleIdentifier</key> 29CHECK-NEXT: <string>com.apple.xcode.dsym.basic.macho.x86_64</string> 30CHECK-NEXT: <key>CFBundleInfoDictionaryVersion</key> 31CHECK-NEXT: <string>6.0</string> 32CHECK-NEXT: <key>CFBundlePackageType</key> 33CHECK-NEXT: <string>dSYM</string> 34CHECK-NEXT: <key>CFBundleSignature</key> 35CHECK-NEXT: <string>????</string> 36CHECK-NEXT: <key>CFBundleShortVersionString</key> 37CHECK-NEXT: <string>1.0</string> 38CHECK-NEXT: <key>CFBundleVersion</key> 39CHECK-NEXT: <string>1</string> 40CHECK-NEXT: </dict> 41CHECK-NEXT: </plist> 42