1*fa535452SKeith Smiley## This test checks general llvm-install-name-tool behavior. 2*fa535452SKeith Smiley 3*fa535452SKeith Smiley# RUN: yaml2obj %s -o %t 4*fa535452SKeith Smiley 5*fa535452SKeith Smiley## Passing something that doesn't exist 6*fa535452SKeith Smiley# RUN: not llvm-install-name-tool -add_rpath foo non-existent-binary 2>&1 | FileCheck %s --check-prefix=DOES_NOT_EXIST 7*fa535452SKeith Smiley 8*fa535452SKeith Smiley# DOES_NOT_EXIST: {{.*}}non-existent-binary 9*fa535452SKeith Smiley 10*fa535452SKeith Smiley## Passing a non-Mach-O binary 11*fa535452SKeith Smiley# RUN: not llvm-install-name-tool -add_rpath foo %t 2>&1 | FileCheck %s --check-prefix=NON_MACH_O -DFILE=%t 12*fa535452SKeith Smiley 13*fa535452SKeith Smiley# NON_MACH_O: error: input file: [[FILE]] is not a Mach-O file 14*fa535452SKeith Smiley 15*fa535452SKeith Smiley--- !ELF 16*fa535452SKeith SmileyFileHeader: 17*fa535452SKeith Smiley Class: ELFCLASS64 18*fa535452SKeith Smiley Data: ELFDATA2LSB 19*fa535452SKeith Smiley Type: ET_EXEC 20