llvm-for-llvmta/test/Object/nm-tapi-invalids.test

21 lines
689 B
Plaintext
Raw Normal View History

2022-04-25 10:02:23 +02:00
RUN: not llvm-nm %p/Inputs/tapi-invalid-v1.tbd 2>&1\
RUN: | FileCheck %s -check-prefix V1
RUN: not llvm-nm %p/Inputs/tapi-invalid-v2.tbd 2>&1\
RUN: | FileCheck %s -check-prefix V2
RUN: not llvm-nm %p/Inputs/tapi-invalid-v3.tbd 2>&1\
RUN: | FileCheck %s -check-prefix V3
# Typo Check
V1: tapi-invalid-v1.tbd malformed file
V1-NEXT: tapi-invalid-v1.tbd:11:1: error: unknown key 'expors'
# Missing required key
V2: tapi-invalid-v2.tbd malformed file
V2-NEXT: tapi-invalid-v2.tbd:2:1: error: missing required key 'archs'
# v2 key in v3 specified file
V3: tapi-invalid-v3.tbd malformed file
V3-NEXT: tapi-invalid-v3.tbd:19:1: error: unknown key 'swift-version'