brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 45cec5e Raw
28 lines · plain
1# Uses echo in a way that is not supported by the iOS "run-on-device" script.2UNSUPPORTED: ios3 4RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest5 6USE-1: INFO: seed corpus: files: 17RUN: echo -n "%t-SimpleTest" > %t.seed-inputs8# Test both formats of -seed_inputs argument.9RUN: %run %t-SimpleTest -runs=1 -seed_inputs=@%t.seed-inputs 2>&1 | FileCheck %s --check-prefix=USE-110RUN: %run %t-SimpleTest -runs=1 -seed_inputs=%t-SimpleTest 2>&1 | FileCheck %s --check-prefix=USE-111 12USE-2: INFO: seed corpus: files: 213RUN: echo -n "%t-SimpleTest,%t-SimpleTest" > %t.seed-inputs14RUN: %run %t-SimpleTest -runs=1 -seed_inputs=@%t.seed-inputs 2>&1 | FileCheck %s --check-prefix=USE-215RUN: %run %t-SimpleTest -runs=1 -seed_inputs=%t-SimpleTest,%t-SimpleTest 2>&1 | FileCheck %s --check-prefix=USE-216 17# Test that missing files and trailing commas are tolerated.18RUN: echo -n "%t-SimpleTest,%t-SimpleTest,nonexistent-file," > %t.seed-inputs19RUN: %run %t-SimpleTest -runs=1 -seed_inputs=@%t.seed-inputs 2>&1 | FileCheck %s --check-prefix=USE-220RUN: %run %t-SimpleTest -runs=1 -seed_inputs=%t-SimpleTest,%t-SimpleTest,nonexistent-file, 2>&1 | FileCheck %s --check-prefix=USE-221 22# Test that using a non existent file or an empty seed list fails.23EMPTY: seed_inputs is empty or @file does not exist.24RUN: not %run %t-SimpleTest -runs=1 -seed_inputs=@nonexistent-file 2>&1 | FileCheck %s --check-prefix=EMPTY25RUN: echo -n "" > %t.seed-inputs26RUN: not %run %t-SimpleTest -runs=1 -seed_inputs=@%t.seed-inputs 2>&1 | FileCheck %s --check-prefix=EMPTY27RUN: not %run %t-SimpleTest -runs=1 -seed_inputs= 2>&1 | FileCheck %s --check-prefix=EMPTY28