In this diff the elf-specific tests are moved into the subfolder llvm-objcopy/ELF (the change was discussed in the comments on https://reviews.llvm.org/D54674). A separate code reivew wasn't sent for this change since Phabricator is failing to create such a large diff. Test plan: make check-all make check-llvm-tools make check-llvm-tools-llvm-objcopy llvm-svn: 347958
16 lines
539 B
Plaintext
16 lines
539 B
Plaintext
# RUN: echo abcd > %t.txt
|
|
|
|
# Preserve input to verify it is not modified
|
|
# RUN: cp %t.txt %t-copy.txt
|
|
|
|
# -I binary -O binary preserves payload through in-memory representation
|
|
# RUN: llvm-objcopy -I binary -B i386:x86-64 -O binary %t.txt %t.2.txt
|
|
# RUN: cmp %t.txt %t.2.txt
|
|
# RUN: cmp %t.txt %t-copy.txt
|
|
|
|
# -I binary -O binary preserves payload through an intermediate object file
|
|
# RUN: llvm-objcopy -I binary -B i386:x86-64 %t.txt %t.o
|
|
# RUN: llvm-objcopy -O binary %t.o %t.3.txt
|
|
# RUN: cmp %t.txt %t.3.txt
|
|
# RUN: cmp %t.txt %t-copy.txt
|