brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · 5b68045 Raw
42 lines · plain
1## This test shows that the name of the file is printed under the right2## circumstances and with the correct formatting for object inputs.3 4# RUN: yaml2obj %s -o %t15# RUN: cp %t1 %t26 7## Show that the file name is not printed for a single input for GNU output.8# RUN: llvm-readelf --file-headers %t1 \9# RUN:   | FileCheck %s --implicit-check-not=File: --check-prefix=GNU-SINGLE10 11## Show that the very first line of the output is the one with "ELF Header" on.12# GNU-SINGLE:      {{^}}13# GNU-SINGLE-SAME: ELF Header:14 15## Show that the file names are printed for all inputs for GNU output.16# RUN: llvm-readelf --file-headers %t1 %t2 \17# RUN:   | FileCheck %s --check-prefixes=NAME1,GNU,NAME2 -DFILE1=%t1 -DFILE2=%t218 19## Show that the file name is printed for a single input for LLVM output.20# RUN: llvm-readobj --file-headers %t1 | FileCheck %s --check-prefix=NAME1 -DFILE1=%t121 22## Show that the file name is printed with correct spacing for multiple inputs23## with LLVM output.24# RUN: llvm-readobj --file-headers %t1 %t2 \25# RUN:   | FileCheck %s --check-prefixes=NAME1,LLVM,NAME2 -DFILE1=%t1 -DFILE2=%t226 27## The very first line should be blank. CHECK-EMPTY isn't allowed on the first line.28# NAME1:      {{^$}}29# NAME1-NEXT: {{^}}File: [[FILE1]]{{$}}30 31# GNU:          Section header string table index:32# LLVM:         StringTableSectionIndex:33# LLVM-NEXT:  }34# NAME2-EMPTY:35# NAME2-NEXT: {{^}}File: [[FILE2]]{{$}}36 37--- !ELF38FileHeader:39  Class: ELFCLASS6440  Data:  ELFDATA2LSB41  Type:  ET_REL42