1 # REQUIRES: system-linux
3 ## Test that invoking the extract_ir script work as expected.
5 # RUN: rm -rf %t.dir && mkdir %t.dir
6 # RUN: yaml2obj %s -o %t.dir/test1.o
7 # RUN: yaml2obj %s -o %t.dir/test2.o
8 # RUN: rm -rf %t.dir.out && mkdir %t.dir.out
10 # RUN: %python %scripts_dir/corpus/extract_ir.py --input=%t.dir --input_type=directory --output_dir=%t.dir.out --llvm_objcopy_path=llvm-objcopy
11 # RUN: cat %t.dir.out/corpus_description.json | FileCheck %s
13 ## Check that this is not a thinLTO build
14 # CHECK: "has_thinlto": false
15 ## Check that the expected modules end up in the corpus description
16 # CHECK-DAG: "test1.o"
17 # CHECK-DAG: "test2.o"
19 # RUN: ls %t.dir.out | FileCheck %s --check-prefix CHECK-DIR
21 # CHECK-DIR: test1.o.bc
22 # CHECK-DIR: test1.o.cmd
23 # CHECK-DIR: test2.o.bc
24 # CHECK-DIR: test2.o.cmd
32 SectionHeaderStringTable: .strtab
36 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]