1# REQUIRES: system-linux 2 3## Testing that the make_corpus script works as expected when invoked. 4 5# RUN: rm -rf %t.dir && mkdir %t.dir 6# RUN: touch %t.dir/test1.bc 7# RUN: touch %t.dir/test2.bc 8# RUN: rm -rf %t.out.dir && mkdir %t.out.dir 9 10# RUN: %python %scripts_dir/corpus/make_corpus.py --input_dir=%t.dir --output_dir=%t.out.dir --default_args="-test" 11 12# RUN: cat %t.out.dir/corpus_description.json | FileCheck %s 13 14## Check that we get the expected command in the global command override 15# CHECK: "-test" 16# CHECK: "has_thinlto": false 17## Check that the modules are in the corpus description (order invariant) 18# CHECK-DAG: "test1" 19# CHECK-DAG: "test2" 20 21# RUN: ls %t.out.dir | FileCheck %s --check-prefix CHECK-DIR 22 23# CHECK-DIR: test1.bc 24# CHECK-DIR: test2.bc 25