Commit 55c81d42 authored by Fangrui Song's avatar Fangrui Song
Browse files

[test] Use yaml2obj -o %t instead of > %t

To improve consistency and avoid unneeded shell feature (output
redirection).

While here, make other changes to improve consistency

--docnum 1 => --docnum=1
-docnum=x => --docnum=x
parent 8ae404a2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
# RUN: yaml2obj < %s > %t.obj
# RUN: yaml2obj %s -o %t.obj
# RUN: llvm-pdbutil dump --symbols %t.obj | FileCheck %s
# RUN: llvm-readobj -codeview %t.obj | FileCheck %s --check-prefix=READOBJ

+2 −2
Original line number Diff line number Diff line
RUN: yaml2obj %p/Inputs/obj-hashes-1.yaml > %T/obj-hashes-1.obj
RUN: yaml2obj %p/Inputs/obj-hashes-2.yaml > %T/obj-hashes-2.obj
RUN: yaml2obj %p/Inputs/obj-hashes-1.yaml -o %T/obj-hashes-1.obj
RUN: yaml2obj %p/Inputs/obj-hashes-2.yaml -o %T/obj-hashes-2.obj
RUN: echo obj-hashes-1 > %T/hashes-combined.out
RUN: llvm-pdbutil dump -type-extras %T/obj-hashes-1.obj >> %T/hashes-combined.out
RUN: echo obj-hashes-2 >> %T/hashes-combined.out
+1 −1
Original line number Diff line number Diff line
# RUN: yaml2obj < %s > %t.obj
# RUN: yaml2obj %s -o %t.obj
# RUN: llvm-readobj --codeview %t.obj | FileCheck %s

# CHECK:         Kind: S_UNAMESPACE (0x1124)
+1 −1
Original line number Diff line number Diff line
# RUN: yaml2obj %s > %t.o
# RUN: yaml2obj %s -o %t.o
# RUN: llvm-dwarfdump %t.o 2>&1 | FileCheck %s
# CHECK: failed to compute relocation: Unknown

+2 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@ RUN: rm -rf %t1/
RUN: mkdir %t1
RUN: obj2yaml %S/Inputs/precomp-a.obj > %t1/precomp-a.yaml
RUN: obj2yaml %S/Inputs/precomp.obj > %t1/precomp.yaml
RUN: yaml2obj %t1/precomp-a.yaml > %t1/a.obj
RUN: yaml2obj %t1/precomp.yaml > %t1/precomp.obj
RUN: yaml2obj %t1/precomp-a.yaml -o %t1/a.obj
RUN: yaml2obj %t1/precomp.yaml -o %t1/precomp.obj
RUN: llvm-readobj --codeview %t1/a.obj | FileCheck %s -check-prefix PRECOMP
RUN: llvm-readobj --codeview %t1/precomp.obj | FileCheck %s -check-prefix ENDPRECOMP
RUN: llvm-pdbutil dump -types %t1/a.obj | FileCheck %s -check-prefix PDB-PRECOMP
Loading