xref: /llvm-project/llvm/test/tools/llvm-remarkutil/empty-file.test (revision 31c2cf1136179da2bd179d28ea632bd73f5c0ea9)
1RUN: not llvm-remarkutil yaml2bitstream %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
2RUN: not llvm-remarkutil instruction-count --parser=yaml %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
3RUN: not llvm-remarkutil annotation-count --parser=yaml --annotation-type=remark %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
4RUN: not llvm-remarkutil count --parser=yaml %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
5RUN: llvm-remarkutil bitstream2yaml %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=BITSTREAM2YAML
6RUN: llvm-remarkutil instruction-count --parser=bitstream %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=SIZEBITSTREAM
7RUN: llvm-remarkutil annotation-count --parser=bitstream --annotation-type=remark %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=ANNOTATIONBITSTREAM
8RUN: llvm-remarkutil count --parser=bitstream %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=COUNTBITSTREAM
9
10; YAMLPARSER: error: document root is not of mapping type.
11
12; An empty bitstream file is valid.
13; BITSTREAM2YAML-NOT: error
14
15; SIZEBITSTREAM-LABEL: Function,InstructionCount
16; SIZEBITSTREAM-EMPTY:
17
18; ANNOTATIONBITSTREAM-LABEL: Function,Count
19; ANNOTATIONBITSTREAM-EMPTY:
20
21; COUNTBITSTREAM-LABEL: Source,Count
22; COUNTBITSTREAM-EMPTY:
23