brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 511d4e6 Raw
29 lines · plain
1; REQUIRES: x86_64-linux2 3; RUN: not llvm-ctxprof-util nofile.yaml 2>&1 | FileCheck %s --check-prefix=NO_CMD4; RUN: not llvm-ctxprof-util invalidCmd --input nofile.yaml 2>&1 | FileCheck %s --check-prefix=INVALID_CMD5; RUN: not llvm-ctxprof-util fromYAML nofile.yaml 2>&1 | FileCheck %s --check-prefix=NO_FLAG6; RUN: not llvm-ctxprof-util fromYAML --input nofile.yaml 2>&1 | FileCheck -DMSG=%errc_ENOENT %s --check-prefix=NO_FILE7; RUN: not llvm-ctxprof-util fromYAML --input %S/Inputs/bad.yaml 2>&1 | FileCheck %s --check-prefix=BAD_FORMAT8; RUN: not llvm-ctxprof-util fromYAML --input %S/Inputs/invalid-no-section.yaml 2>&1 | FileCheck %s --check-prefix=NO_SECTION9; RUN: not llvm-ctxprof-util fromYAML --input %S/Inputs/invalid-no-ctx.yaml 2>&1 | FileCheck %s --check-prefix=NO_CTX10; RUN: not llvm-ctxprof-util fromYAML --input %S/Inputs/invalid-no-counters.yaml 2>&1 | FileCheck %s --check-prefix=NO_COUNTERS11; RUN: not llvm-ctxprof-util fromYAML --input %S/Inputs/invalid-bad-subctx.yaml 2>&1 | FileCheck %s --check-prefix=BAD_SUBCTX12; RUN: not llvm-ctxprof-util fromYAML --input %S/Inputs/invalid-flat.yaml 2>&1 | FileCheck %s --check-prefix=BAD_FLAT13; RUN: not llvm-ctxprof-util fromYAML --input %S/Inputs/invalid-no-entrycount.yaml 2>&1 | FileCheck %s --check-prefix=BAD_NOENTRYCOUNT14; RUN: rm -rf %t15; RUN: not llvm-ctxprof-util fromYAML --input %S/Inputs/valid.yaml --output %t/output.bitstream 2>&1 | FileCheck %s --check-prefix=NO_DIR16 17; NO_CMD: Unknown subcommand 'nofile.yaml'18; INVALID_CMD: Unknown subcommand 'invalidCmd'19; NO_FLAG: Unknown command line argument 'nofile.yaml'. 20; NO_FILE: 'nofile.yaml': [[MSG]]21; BAD_FORMAT: YAML:1:1: error: not a mapping22; NO_SECTION: YAML:1:1: error: not a mapping23; NO_CTX: YAML:1:1: error: not a mapping24; NO_COUNTERS: YAML:2:5: error: missing required key 'Counters'25; BAD_SUBCTX: YAML:4:18: error: not a sequence26; BAD_FLAT: YAML:2:5: error: missing required key 'Counters'27; BAD_NOENTRYCOUNT: YAML:2:5: error: missing required key 'TotalRootEntryCount'28; NO_DIR: failed to open output29