You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
690 B
21 lines
690 B
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:12:2: 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:16: error: unknown key 'swift-version'
|