[PATCH] D62817: [test][llvm-objcopy] Test llvm-objcopy with standard streams

Alex Brachet via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 3 09:59:14 PDT 2019


abrachet created this revision.
abrachet added reviewers: jhenderson, rupprecht.
Herald added subscribers: llvm-commits, MaskRay, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: alexshap.
Herald added a project: LLVM.

Ensure that redirecting input to stdin is no different than a normal file. Likewise outputting to stdout should be no different than outputting to a file.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D62817

Files:
  llvm/test/tools/llvm-objcopy/ELF/standard-streams.test


Index: llvm/test/tools/llvm-objcopy/ELF/standard-streams.test
===================================================================
--- /dev/null
+++ llvm/test/tools/llvm-objcopy/ELF/standard-streams.test
@@ -0,0 +1,7 @@
+# RUN: cat %p/Inputs/alloc-symtab.o | llvm-objcopy - %t
+# RUN: llvm-objcopy %p/Inputs/alloc-symtab.o %t1
+# RUN: diff %t %t1
+
+# RUN: llvm-objcopy %p/Inputs/alloc-symtab.o - > %t2
+# RUN: diff %t1 %t2
+


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62817.202743.patch
Type: text/x-patch
Size: 425 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190603/ad0898bf/attachment.bin>


More information about the llvm-commits mailing list