[all-commits] [llvm/llvm-project] 55c81d: [test] Use yaml2obj -o %t instead of > %t

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jan 21 17:20:24 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 55c81d4282c5da0189711261a11537bc8a7fe85c
      https://github.com/llvm/llvm-project/commit/55c81d4282c5da0189711261a11537bc8a7fe85c
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-01-21 (Tue, 21 Jan 2020)

  Changed paths:
    M llvm/test/DebugInfo/PDB/annotation.test
    M llvm/test/DebugInfo/PDB/obj-globalhash.test
    M llvm/test/DebugInfo/PDB/using-namespace.test
    M llvm/test/DebugInfo/invalid-relocations.test
    M llvm/test/DebugInfo/precomp.test
    M llvm/test/Object/AArch64/yaml2obj-elf-aarch64-rel.yaml
    M llvm/test/Object/AMDGPU/elf-header-flags-mach.yaml
    M llvm/test/Object/AMDGPU/elf-header-flags-sram-ecc.yaml
    M llvm/test/Object/AMDGPU/elf-header-flags-xnack.yaml
    M llvm/test/Object/AMDGPU/elf-header-osabi.yaml
    M llvm/test/Object/AMDGPU/elf32-unknown.yaml
    M llvm/test/Object/AMDGPU/elf64-relocs.yaml
    M llvm/test/Object/AMDGPU/elf64-unknown.yaml
    M llvm/test/Object/Lanai/yaml2obj-elf-lanai-rel.yaml
    M llvm/test/Object/Mips/abi-flags.yaml
    M llvm/test/Object/Mips/elf-mips64-rel.yaml
    M llvm/test/Object/RISCV/elf-flags.yaml
    M llvm/test/Object/X86/objdump-disassembly-inline-relocations.test
    M llvm/test/Object/X86/objdump-trivial-object.test
    M llvm/test/Object/X86/yaml-elf-x86-rel-broken.yaml
    M llvm/test/Object/X86/yaml2obj-elf-x86-rel.yaml
    M llvm/test/Object/archive-format.test
    M llvm/test/Object/archive-symtab.test
    M llvm/test/Object/nm-error.test
    M llvm/test/Object/nm-shared-object.test
    M llvm/test/Object/nm-trivial-object.test
    M llvm/test/Object/obj2yaml.test
    M llvm/test/Object/objdump-relocations.test
    M llvm/test/Object/objdump-section-content.test
    M llvm/test/Object/objdump-sectionheaders.test
    M llvm/test/Object/objdump-symbol-table.test
    M llvm/test/Object/readobj-absent.test
    M llvm/test/Object/wasm-invalid-file.yaml
    M llvm/test/ObjectYAML/CodeView/sections.yaml
    M llvm/test/ObjectYAML/MachO/section_data.yaml
    M llvm/test/tools/llvm-elfabi/binary-read-add-soname.test
    M llvm/test/tools/llvm-elfabi/binary-read-arch.test
    M llvm/test/tools/llvm-elfabi/binary-read-bad-soname.test
    M llvm/test/tools/llvm-elfabi/binary-read-bad-vaddr.test
    M llvm/test/tools/llvm-elfabi/binary-read-neededlibs-bad-offset.test
    M llvm/test/tools/llvm-elfabi/binary-read-no-dt-strsz.test
    M llvm/test/tools/llvm-elfabi/binary-read-no-dt-strtab.test
    M llvm/test/tools/llvm-elfabi/binary-read-no-dynamic.test
    M llvm/test/tools/llvm-elfabi/binary-read-replace-soname.test
    M llvm/test/tools/llvm-elfabi/binary-read-soname-no-null.test
    M llvm/test/tools/llvm-elfabi/binary-read-soname.test
    M llvm/test/tools/llvm-lipo/archs-macho-binary-unknown.test
    M llvm/test/tools/llvm-lipo/archs-macho-binary.test
    M llvm/test/tools/llvm-lipo/archs-universal-binary-arm.test
    M llvm/test/tools/llvm-lipo/archs-universal-binary-unknown.test
    M llvm/test/tools/llvm-lipo/archs-universal-binary-x86.test
    M llvm/test/tools/llvm-lipo/create-arch.test
    M llvm/test/tools/llvm-lipo/create-archive-input.test
    M llvm/test/tools/llvm-lipo/create-compute-alignment.test
    M llvm/test/tools/llvm-lipo/create-default-alignment.test
    M llvm/test/tools/llvm-lipo/create-executable.test
    M llvm/test/tools/llvm-lipo/create-invalid-input.test
    M llvm/test/tools/llvm-lipo/extract.test
    M llvm/test/tools/llvm-lipo/info-invalid.test
    M llvm/test/tools/llvm-lipo/info.test
    M llvm/test/tools/llvm-lipo/replace-invalid-input.test
    M llvm/test/tools/llvm-lipo/replace-universal-binary.test
    M llvm/test/tools/llvm-lipo/segalign-invalid-input.test
    M llvm/test/tools/llvm-lipo/segalign.test
    M llvm/test/tools/llvm-lipo/thin-executable-universal-binary.test
    M llvm/test/tools/llvm-lipo/thin-macho-binary.test
    M llvm/test/tools/llvm-lipo/thin-universal-binary.test
    M llvm/test/tools/llvm-lipo/verify-arch-macho-binary.test
    M llvm/test/tools/llvm-lipo/verify-arch-universal-binary.test
    M llvm/test/tools/llvm-nm/AArch64/special-syms.test
    M llvm/test/tools/llvm-nm/X86/nm-no-symbols-local-only.yaml
    M llvm/test/tools/llvm-nm/X86/nm-no-symbols.test
    M llvm/test/tools/llvm-nm/X86/portability.test
    M llvm/test/tools/llvm-nm/debug-syms.test
    M llvm/test/tools/llvm-nm/format-sysv-layout.test
    M llvm/test/tools/llvm-nm/format-sysv-section.test
    M llvm/test/tools/llvm-nm/format-sysv-type.test
    M llvm/test/tools/llvm-nm/no-sort.test
    M llvm/test/tools/llvm-nm/numeric-sort.test
    M llvm/test/tools/llvm-nm/undefined-only.test
    M llvm/test/tools/llvm-objcopy/COFF/add-gnu-debuglink.test
    M llvm/test/tools/llvm-objcopy/COFF/add-section.test
    M llvm/test/tools/llvm-objcopy/COFF/basic-copy.test
    M llvm/test/tools/llvm-objcopy/COFF/discard-all.test
    M llvm/test/tools/llvm-objcopy/COFF/only-keep-debug.test
    M llvm/test/tools/llvm-objcopy/COFF/only-section.test
    M llvm/test/tools/llvm-objcopy/COFF/patch-debug-dir.test
    M llvm/test/tools/llvm-objcopy/COFF/remove-section.test
    M llvm/test/tools/llvm-objcopy/COFF/strip-all.test
    M llvm/test/tools/llvm-objcopy/COFF/strip-debug.test
    M llvm/test/tools/llvm-objcopy/COFF/strip-reloc-symbol.test
    M llvm/test/tools/llvm-objcopy/COFF/strip-symbol.test
    M llvm/test/tools/llvm-objcopy/COFF/strip-unneeded.test
    M llvm/test/tools/llvm-objcopy/COFF/weak-external.test
    M llvm/test/tools/llvm-objcopy/ELF/abs-symbol.test
    M llvm/test/tools/llvm-objcopy/ELF/add-gnu-debuglink.test
    M llvm/test/tools/llvm-objcopy/ELF/add-note.test
    M llvm/test/tools/llvm-objcopy/ELF/add-section-remove.test
    M llvm/test/tools/llvm-objcopy/ELF/add-section-special.test
    M llvm/test/tools/llvm-objcopy/ELF/add-section.test
    M llvm/test/tools/llvm-objcopy/ELF/armexidx-link.test
    M llvm/test/tools/llvm-objcopy/ELF/bad-build-id.test
    M llvm/test/tools/llvm-objcopy/ELF/bad-output-format.test
    M llvm/test/tools/llvm-objcopy/ELF/basic-archive-copy.test
    M llvm/test/tools/llvm-objcopy/ELF/basic-copy.test
    M llvm/test/tools/llvm-objcopy/ELF/basic-keep.test
    M llvm/test/tools/llvm-objcopy/ELF/basic-only-section.test
    M llvm/test/tools/llvm-objcopy/ELF/basic-relocations.test
    M llvm/test/tools/llvm-objcopy/ELF/build-id-link-dir.test
    M llvm/test/tools/llvm-objcopy/ELF/cannot-delete-dest.test
    M llvm/test/tools/llvm-objcopy/ELF/common-symbol.test
    M llvm/test/tools/llvm-objcopy/ELF/copy-osabi.test
    M llvm/test/tools/llvm-objcopy/ELF/cross-arch-headers.test
    M llvm/test/tools/llvm-objcopy/ELF/cross-arch-sections-symbols.test
    M llvm/test/tools/llvm-objcopy/ELF/deterministic-archive.test
    M llvm/test/tools/llvm-objcopy/ELF/discard-all.test
    M llvm/test/tools/llvm-objcopy/ELF/discard-locals-rel.test
    M llvm/test/tools/llvm-objcopy/ELF/discard-locals.test
    M llvm/test/tools/llvm-objcopy/ELF/discard-mix-local-and-all.test
    M llvm/test/tools/llvm-objcopy/ELF/dump-section.test
    M llvm/test/tools/llvm-objcopy/ELF/dynamic-relocations.test
    M llvm/test/tools/llvm-objcopy/ELF/dynrelocsec-remove-shinfo-reference.test
    M llvm/test/tools/llvm-objcopy/ELF/dynrelocsec-remove-shlink-reference.test
    M llvm/test/tools/llvm-objcopy/ELF/dynstr.test
    M llvm/test/tools/llvm-objcopy/ELF/elf32be.test
    M llvm/test/tools/llvm-objcopy/ELF/elf32le.test
    M llvm/test/tools/llvm-objcopy/ELF/elf64be.test
    M llvm/test/tools/llvm-objcopy/ELF/empty-section.test
    M llvm/test/tools/llvm-objcopy/ELF/explicit-keep-remove.test
    M llvm/test/tools/llvm-objcopy/ELF/explicit-only-section-remove.test
    M llvm/test/tools/llvm-objcopy/ELF/fail-no-output-directory.test
    M llvm/test/tools/llvm-objcopy/ELF/globalize.test
    M llvm/test/tools/llvm-objcopy/ELF/group-addr-misaligned.test
    M llvm/test/tools/llvm-objcopy/ELF/group-big-endian.test
    M llvm/test/tools/llvm-objcopy/ELF/group-reorder.test
    M llvm/test/tools/llvm-objcopy/ELF/group-unchanged.test
    M llvm/test/tools/llvm-objcopy/ELF/group.test
    M llvm/test/tools/llvm-objcopy/ELF/hexagon-unsupported-on-x86.test
    M llvm/test/tools/llvm-objcopy/ELF/keep-file-symbols.test
    M llvm/test/tools/llvm-objcopy/ELF/keep-global-symbols-mix-globalize.test
    M llvm/test/tools/llvm-objcopy/ELF/keep-global-symbols.test
    M llvm/test/tools/llvm-objcopy/ELF/keep-many.test
    M llvm/test/tools/llvm-objcopy/ELF/keep-only-section.test
    M llvm/test/tools/llvm-objcopy/ELF/keep-symbol-remove-section.test
    M llvm/test/tools/llvm-objcopy/ELF/keep-symbol.test
    M llvm/test/tools/llvm-objcopy/ELF/localize-hidden.test
    M llvm/test/tools/llvm-objcopy/ELF/localize.test
    M llvm/test/tools/llvm-objcopy/ELF/no-build-id-no-notes.test
    M llvm/test/tools/llvm-objcopy/ELF/no-build-id.test
    M llvm/test/tools/llvm-objcopy/ELF/no-symbol-relocation.test
    M llvm/test/tools/llvm-objcopy/ELF/null-symbol.test
    M llvm/test/tools/llvm-objcopy/ELF/only-section-many.test
    M llvm/test/tools/llvm-objcopy/ELF/only-section-remove-strtab.test
    M llvm/test/tools/llvm-objcopy/ELF/only-section-strip-non-alloc.test
    M llvm/test/tools/llvm-objcopy/ELF/prefix-alloc-sections-dynrelocsec.test
    M llvm/test/tools/llvm-objcopy/ELF/prefix-alloc-sections.test
    M llvm/test/tools/llvm-objcopy/ELF/prefix-symbols.test
    M llvm/test/tools/llvm-objcopy/ELF/redefine-symbol.test
    M llvm/test/tools/llvm-objcopy/ELF/regex.test
    M llvm/test/tools/llvm-objcopy/ELF/reloc-error-remove-symtab.test
    M llvm/test/tools/llvm-objcopy/ELF/reloc-no-symtab.test
    M llvm/test/tools/llvm-objcopy/ELF/relocatable-phdr.test
    M llvm/test/tools/llvm-objcopy/ELF/remove-multiple-sections.test
    M llvm/test/tools/llvm-objcopy/ELF/remove-section-with-symbol.test
    M llvm/test/tools/llvm-objcopy/ELF/remove-section.test
    M llvm/test/tools/llvm-objcopy/ELF/remove-shstrtab-error.test
    M llvm/test/tools/llvm-objcopy/ELF/remove-symtab.test
    M llvm/test/tools/llvm-objcopy/ELF/rename-section-and-prefix-alloc-sections.test
    M llvm/test/tools/llvm-objcopy/ELF/rename-section-flag-osproc-mask.test
    M llvm/test/tools/llvm-objcopy/ELF/rename-section-flag-preserved.test
    M llvm/test/tools/llvm-objcopy/ELF/rename-section-flag.test
    M llvm/test/tools/llvm-objcopy/ELF/rename-section-multiple.test
    M llvm/test/tools/llvm-objcopy/ELF/rename-section.test
    M llvm/test/tools/llvm-objcopy/ELF/section-index-unsupported.test
    M llvm/test/tools/llvm-objcopy/ELF/set-section-flags-and-rename.test
    M llvm/test/tools/llvm-objcopy/ELF/set-section-flags-multiple.test
    M llvm/test/tools/llvm-objcopy/ELF/set-section-flags.test
    M llvm/test/tools/llvm-objcopy/ELF/shstrtab-optimize.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-all-and-keep-symbol.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-all-and-remove.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-all-gnu.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-all.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-debug-and-remove.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-debug.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-group-symbol.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-multiple-files.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-non-alloc.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-preserve-arm-attributes.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-preserve-atime.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-preserve-mtime.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-reloc-symbol.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-section-err.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-sections-keep.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-sections-only-section.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-sections.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-symbol-and-relocation.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-symbol.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-unneeded-all-symbols.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-unneeded-remove-debug-keep-link.test
    M llvm/test/tools/llvm-objcopy/ELF/strip-unneeded.test
    M llvm/test/tools/llvm-objcopy/ELF/strtab-optimize.test
    M llvm/test/tools/llvm-objcopy/ELF/symbol-copy.test
    M llvm/test/tools/llvm-objcopy/ELF/symbol-empty-name.test
    M llvm/test/tools/llvm-objcopy/ELF/symtab-error-on-remove-strtab.test
    M llvm/test/tools/llvm-objcopy/ELF/symtab-link.test
    M llvm/test/tools/llvm-objcopy/ELF/weaken-all.test
    M llvm/test/tools/llvm-objcopy/ELF/weaken.test
    M llvm/test/tools/llvm-objcopy/ELF/wildcard-flags.test
    M llvm/test/tools/llvm-objcopy/ELF/wildcard-syntax.test
    M llvm/test/tools/llvm-objcopy/MachO/basic-big-endian-32-copy.test
    M llvm/test/tools/llvm-objcopy/MachO/basic-big-endian-64-copy.test
    M llvm/test/tools/llvm-objcopy/MachO/basic-executable-copy.test
    M llvm/test/tools/llvm-objcopy/MachO/basic-little-endian-32-copy.test
    M llvm/test/tools/llvm-objcopy/MachO/basic-little-endian-64-copy.test
    M llvm/test/tools/llvm-objcopy/MachO/install-name-tool-add-rpath.test
    M llvm/test/tools/llvm-objcopy/MachO/min-version-load-commands.test
    M llvm/test/tools/llvm-objcopy/MachO/only-section.test
    M llvm/test/tools/llvm-objcopy/MachO/remove-section.test
    M llvm/test/tools/llvm-objcopy/MachO/strip-all.test
    M llvm/test/tools/llvm-objcopy/redefine-symbols.test
    M llvm/test/tools/llvm-objdump/X86/adjust-vma.test
    M llvm/test/tools/llvm-objdump/X86/disassemble-demangle.test
    M llvm/test/tools/llvm-objdump/X86/disassemble-zeroes-relocations.test
    M llvm/test/tools/llvm-objdump/X86/elf-disassemble-bss.test
    M llvm/test/tools/llvm-objdump/X86/elf-disassemble-relocs.test
    M llvm/test/tools/llvm-objdump/X86/output-ordering.test
    M llvm/test/tools/llvm-objdump/X86/phdrs-lma.test
    M llvm/test/tools/llvm-objdump/X86/phdrs-lma2.test
    M llvm/test/tools/llvm-objdump/elf-dynamic-section.test
    M llvm/test/tools/llvm-objdump/file-headers-coff.test
    M llvm/test/tools/llvm-objdump/file-headers-elf.test
    M llvm/test/tools/llvm-objdump/file-headers-pe.test
    M llvm/test/tools/llvm-objdump/full-contents.test
    M llvm/test/tools/llvm-objdump/macho-bad-dysymtab.test
    M llvm/test/tools/llvm-objdump/non-archive-object.test
    M llvm/test/tools/llvm-objdump/private-headers-no-dynamic-segment.test
    M llvm/test/tools/llvm-objdump/private-headers-no-dynamic.test
    M llvm/test/tools/llvm-objdump/relocations-elf.test
    M llvm/test/tools/llvm-objdump/symbol-table-elf.test
    M llvm/test/tools/llvm-objdump/verdef-elf.test
    M llvm/test/tools/llvm-objdump/verneed-elf.test
    M llvm/test/tools/llvm-objdump/verneed-wrong-info.test
    M llvm/test/tools/llvm-objdump/warn-on-out-of-range-start-stop-address.test
    M llvm/test/tools/llvm-readobj/COFF/unwind-arm64-image.yaml
    M llvm/test/tools/llvm-readobj/COFF/unwind-x86_64-image.yaml
    M llvm/test/tools/llvm-readobj/ELF/demangle.test
    M llvm/test/tools/llvm-readobj/ELF/gnu-note-size.test
    M llvm/test/tools/llvm-readobj/ELF/gnu-notes.test
    M llvm/test/tools/llvm-readobj/ELF/note-amdgpu.test
    M llvm/test/tools/llvm-readobj/ELF/note-core-ntfile.test
    M llvm/test/tools/llvm-readobj/ELF/note-core.test
    M llvm/test/tools/llvm-readobj/ELF/reloc-symbol-with-versioning.test
    M llvm/test/tools/llvm-readobj/ELF/stack-sizes.test
    M llvm/test/tools/llvm-readobj/ELF/string-dump.test
    M llvm/test/tools/llvm-readobj/ELF/symbol-64bit.test
    M llvm/test/tools/llvm-readobj/ELF/symbol-binding.test
    M llvm/test/tools/llvm-readobj/ELF/symbol-shndx.test
    M llvm/test/tools/llvm-readobj/ELF/symbol-types.test
    M llvm/test/tools/llvm-readobj/ELF/symbol-visibility.test
    M llvm/test/tools/llvm-readobj/ELF/unwind.test
    M llvm/test/tools/llvm-readobj/MachO/sections.test
    M llvm/test/tools/llvm-size/elf-berkeley.test
    M llvm/test/tools/llvm-size/elf-sysv.test
    M llvm/test/tools/obj2yaml/section-group.test
    M llvm/test/tools/obj2yaml/special-symbol-indices.yaml
    M llvm/test/tools/obj2yaml/symbol-type.yaml
    M llvm/test/tools/sanstats/elf.test
    M llvm/test/tools/yaml2obj/ELF/symbol-name.yaml
    M llvm/test/tools/yaml2obj/ELF/symbol-stother.yaml

  Log Message:
  -----------
  [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




More information about the All-commits mailing list