[llvm] r326710 - Fuzzer: remove temporary files after we're done with them.

Tim Northover via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 5 07:49:01 PST 2018


Author: tnorthover
Date: Mon Mar  5 07:49:00 2018
New Revision: 326710

URL: http://llvm.org/viewvc/llvm-project?rev=326710&view=rev
Log:
Fuzzer: remove temporary files after we're done with them.

These were just copies of the relevant fuzzer binary with (presumably)
meaningful suffixes, but accounted for more than 10% of my build
directory (> 8GB). Hard drive space is cheap, but not that cheap.

Modified:
    llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
    llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll
    llvm/trunk/test/tools/llvm-opt-fuzzer/exec-options.ll

Modified: llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll?rev=326710&r1=326709&r2=326710&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll (original)
+++ llvm/trunk/test/tools/llvm-isel-fuzzer/aarch64-execname-options.ll Mon Mar  5 07:49:00 2018
@@ -7,12 +7,15 @@
 
 ; RUN: cp llvm-isel-fuzzer %t.bin--aarch64
 ; RUN: %t.bin--aarch64 %t.input 2>&1 | FileCheck -check-prefix=AARCH64 %s
+; RUN: rm %t.bin--aarch64
 ; AARCH64: Injected args: -mtriple=aarch64
 
 ; RUN: cp llvm-isel-fuzzer %t.bin--aarch64-O1
 ; RUN: %t.bin--aarch64-O1 %t.input 2>&1 | FileCheck -check-prefix=OPT-AFTER %s
+; RUN: rm %t.bin--aarch64-O1
 ; OPT-AFTER: Injected args: -mtriple=aarch64 -O1
 
 ; RUN: cp llvm-isel-fuzzer %t.bin--O3-aarch64
 ; RUN: %t.bin--O3-aarch64 %t.input 2>&1 | FileCheck -check-prefix=OPT-BEFORE %s
+; RUN: rm %t.bin--O3-aarch64
 ; OPT-BEFORE: Injected args: -O3 -mtriple=aarch64

Modified: llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll?rev=326710&r1=326709&r2=326710&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll (original)
+++ llvm/trunk/test/tools/llvm-isel-fuzzer/execname-options.ll Mon Mar  5 07:49:00 2018
@@ -6,14 +6,17 @@
 
 ; RUN: cp llvm-isel-fuzzer %t.bin--gisel
 ; RUN: not %t.bin--gisel %t.input 2>&1 | FileCheck -check-prefix=GISEL %s
+; RUN: rm %t.bin--gisel
 ; GISEL: Injected args: -global-isel -O0
 ; GISEL: -mtriple must be specified
 
 ; RUN: cp llvm-isel-fuzzer %t.bin--gisel-O2
 ; RUN: not %t.bin--gisel-O2 %t.input 2>&1 | FileCheck -check-prefix=GISEL-O2 %s
+; RUN: rm %t.bin--gisel-O2
 ; GISEL-O2: Injected args: -global-isel -O0 -O2
 ; GISEL-O2: -mtriple must be specified
 
 ; RUN: cp llvm-isel-fuzzer %t.bin--unexist
 ; RUN: not %t.bin--unexist %t.input 2>&1 | FileCheck -check-prefix=NO-OPT %s
+; RUN: rm %t.bin--unexist
 ; NO-OPT: Unknown option:

Modified: llvm/trunk/test/tools/llvm-opt-fuzzer/exec-options.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-opt-fuzzer/exec-options.ll?rev=326710&r1=326709&r2=326710&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-opt-fuzzer/exec-options.ll (original)
+++ llvm/trunk/test/tools/llvm-opt-fuzzer/exec-options.ll Mon Mar  5 07:49:00 2018
@@ -8,17 +8,21 @@
 
 ; RUN: cp llvm-opt-fuzzer %t.bin--
 ; RUN: not %t.bin-- %t.input 2>&1 | FileCheck -check-prefix=EMPTY %s
+; RUN: rm %t.bin--
 ; EMPTY: -mtriple must be specified
 
 ; RUN: cp llvm-opt-fuzzer %t.bin--x86_64
 ; RUN: not %t.bin--x86_64 %t.input 2>&1 | FileCheck -check-prefix=PASSES %s
+; RUN: rm %t.bin--x86_64
 ; PASSES: at least one pass should be specified
 
 ; RUN: cp llvm-opt-fuzzer %t.bin--x86_64-unknown
 ; RUN: not %t.bin--x86_64-unknown %t.input 2>&1 | FileCheck -check-prefix=UNKNOWN %s
+; RUN: rm %t.bin--x86_64-unknown
 ; UNKNOWN: Unknown option: unknown
 
 ; RUN: cp llvm-opt-fuzzer %t.bin--x86_64-instcombine
 ; RUN: %t.bin--x86_64-instcombine %t.input 2>&1 | FileCheck -check-prefix=CORRECT %s
+; RUN: rm %t.bin--x86_64-instcombine
 ; CORRECT: Injected args: -mtriple=x86_64 -passes=instcombine
 ; CORRECT: Running




More information about the llvm-commits mailing list