forked from OSchip/llvm-project
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. llvm-svn: 326710
This commit is contained in:
parent
cb2ad24c5c
commit
24c296de77
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue