[PATCH] D50744: [llvm-strip] Add support for -p/--preserve-dates
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 17 01:59:05 PDT 2018
jhenderson added inline comments.
================
Comment at: llvm/trunk/test/tools/llvm-objcopy/strip-preserve-time.test:16-17
+# RUN: llvm-objcopy -p %t.2.o %t-preserved.2.o
+# RUN: ls -lu %t-preserved.2.o | FileCheck %s --check-prefix=CHECK-PRESERVE-ATIME
+# RUN: ls -l %t-preserved.2.o | FileCheck %s --check-prefix=CHECK-PRESERVE-MTIME
+
----------------
Great! I think what you've done here is fine, but for reference, you could have done it in an equally valid way using output redirection. I think either approach works though.
```
# RUN: ls -lu %t-preserved.2.o > %t.out.txt
# RUN: ls -l %t-preserved.2.o >> %t.out.txt
# RUN: FileCheck %s --input-file %t.out.txt --check-prefix=CHECK-PRESERVE
```
Repository:
rL LLVM
https://reviews.llvm.org/D50744
More information about the llvm-commits
mailing list