File tree 4 files changed +9
-0
lines changed
llvm/test/tools/llvm-readtapi
4 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 1
1
; RUN: llvm-readtapi --help 2>&1 | FileCheck %s
2
2
; RUN: llvm-readtapi -help 2>&1 | FileCheck %s
3
+ // Check mutually exclusive options.
3
4
; RUN: not llvm-readtapi -merge -compare -compact %t/tmp.tbd %t/tmp2.tbd 2>&1 | FileCheck %s --check-prefix MULTI_ACTION
5
+ // Check unsupported file output format.
4
6
; RUN: not llvm-readtapi -merge -compact %t/tmp.tbd %t/tmp2.tbd --filetype=tbd-v2 2>&1 | FileCheck %s --check-prefix FILE_FORMAT
5
7
6
8
CHECK: OVERVIEW: LLVM TAPI file reader and manipulator
Original file line number Diff line number Diff line change 1
1
; RUN: rm -rf %t
2
2
; RUN: split-file %s %t
3
+ // Check readtapi only accepts one file.
3
4
; RUN: not llvm-readtapi -extract %t/libfoo.tbd %t/libbar.tbd 2>&1 | FileCheck %s --allow-empty --check-prefix EXTRA
5
+ // Check missing argument.
4
6
; RUN: not llvm-readtapi -extract %t/libfoo.tbd 2>&1 | FileCheck %s --allow-empty --check-prefix MISSING
7
+ // Check that TBD file manipulation was not valid and error propagated as expected.
5
8
; RUN: not llvm-readtapi -arch x86_64 -extract %t/libfoo.tbd 2>&1 | FileCheck %s --allow-empty --check-prefix MISMATCH
6
9
7
10
; EXTRA: error: extract only supports one input file
Original file line number Diff line number Diff line change 1
1
; RUN: rm -rf %t
2
2
; RUN: split-file %s %t
3
+ // Check invalid tbd file contents was propagated as error.
3
4
; RUN: not llvm-readtapi -merge %t/libfoo.tbd %t/libbar.tbd 2>&1 | FileCheck %s --allow-empty --check-prefix DIFF
5
+ // Check missing input.
4
6
; RUN: not llvm-readtapi -merge %t/libfoo.tbd 2>&1 | FileCheck %s --allow-empty --check-prefix INPUT
5
7
6
8
; DIFF: install names do not match
Original file line number Diff line number Diff line change 1
1
; RUN: rm -rf %t
2
2
; RUN: split-file %s %t
3
+ // Check that arch removal is accepted with tbdv5 and various inlined contents.
4
+
3
5
; RUN: llvm-readtapi --remove -arch x86_64h %t/libfat.tbd -o %t/libslim.tbd 2>&1 | FileCheck --allow-empty %s
4
6
; RUN: llvm-readtapi --compare %t/libslim.tbd %t/libslim_expected.tbd
5
7
You can’t perform that action at this time.
0 commit comments