David Blaikie
f27367cd32
llvm-reduce: Clean out previous test temp/output dir, since it was a dir and now it's used as just a single file
...
llvm-svn: 372054
2019-09-16 23:56:26 +00:00
David Blaikie
cb4aee7318
llvm-reduce: Make tests shell-independent by passing the interpreter on the command line rather than using #! in the test file
...
llvm-svn: 372049
2019-09-16 23:41:19 +00:00
Tim Shen
396d0e1635
Fix llvm-reduce tests so that they don't assume the source code is
...
writable.
Instead of copying over the original file permissions, just create
a new file and add the executable bit.
llvm-svn: 371772
2019-09-12 21:03:49 +00:00
David Blaikie
6be90ac788
llvm-reduce: For now, mark these tests as requiring a shell
...
(since they execute shell scripts/that's the only entry point at the
moment)
llvm-svn: 371764
2019-09-12 19:50:54 +00:00
David Blaikie
890f17c256
llvm-reduce: Remove unused plugin support/requirements
...
llvm-svn: 371755
2019-09-12 18:52:31 +00:00
David Blaikie
aaef97a55e
PR43278: llvm-reduce: Use temporary file names (and ToolOutputFile) rather than unique ones - to ensure they're cleaned up
...
This modifies the tool somewhat to only create files when about to run
the "interestingness" test, and delete them immediately after - this
means some more files will be created sometimes (when "double checking"
work - which should probably be fixed/avoided anyway).
This now creates temporary files, rather than only unique ones, and also
uses ToolOutputFile (without ever calling "keep") to ensure the files
are deleted as soon as the interestingness test is run.
llvm-svn: 371696
2019-09-12 00:31:57 +00:00
David Blaikie
d79cc14822
PR43278: Temporarily disable llvm-reduce tests due to exhausting temp files
...
llvm-svn: 371679
2019-09-11 22:15:16 +00:00
David Blaikie
477c1df4b9
llvm-reduce: Add pass to reduce Metadata
...
Patch by Diego Treviño!
Differential Revision: https://reviews.llvm.org/D65026
llvm-svn: 371562
2019-09-10 22:09:58 +00:00