[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / test / tools / llvm-libtool-darwin / invalid-input-output-args.test
blob2a6d841475b16eaa11609aef31d29fdf3141f6bf
1 ## This test checks that an error is thrown in case of invalid input/output args.
3 ## Missing input file:
4 # RUN: not llvm-libtool-darwin -static -o %t.lib 2>&1 | \
5 # RUN:   FileCheck %s --check-prefix=NO-INPUT
7 # NO-INPUT: error: no input files specified
9 ## Missing output file:
10 # RUN: not llvm-libtool-darwin -static %t.input 2>&1 | \
11 # RUN:   FileCheck %s --check-prefix=NO-OUTPUT
13 # NO-OUTPUT: for the -o option: must be specified
15 ## Missing argument to -o:
16 # RUN: not llvm-libtool-darwin -static %t.input -o 2>&1 | \
17 # RUN:   FileCheck %s --check-prefix=MISSING
19 # MISSING: for the -o option: requires a value!
21 ## Passing in two output files:
22 # RUN: not llvm-libtool-darwin -static %t.input -o %t.lib1 -o %t.lib2 2>&1 | \
23 # RUN:   FileCheck %s --check-prefix=DOUBLE-OUTPUT
25 # DOUBLE-OUTPUT: for the -o option: may only occur zero or one times!
27 ## Input file not found:
28 # RUN: not llvm-libtool-darwin -static -o %t.lib %t.missing 2>&1 | \
29 # RUN:   FileCheck %s --check-prefix=NO-FILE -DFILE=%t.missing -DMSG=%errc_ENOENT
31 # NO-FILE: error: '[[FILE]]': [[MSG]]
33 ## Input file is not an object file:
34 # RUN: touch %t.invalid
35 # RUN: not llvm-libtool-darwin -static -o %t.lib %t.invalid 2>&1 | \
36 # RUN:   FileCheck %s --check-prefix=NOT-OBJECT -DFILE=%basename_t.tmp.invalid
38 # NOT-OBJECT: error: '[[FILE]]': The file was not recognized as a valid object file
40 ## Input file is not a Mach-O object file:
41 # RUN: yaml2obj %s -o %t.elf
42 # RUN: not llvm-libtool-darwin -static -o %t.lib %t.elf 2>&1 | \
43 # RUN:   FileCheck %s --check-prefix=NOT-MACHO -DFILE=%basename_t.tmp.elf
45 # NOT-MACHO: error: '[[FILE]]': format not supported
47 --- !ELF
48 FileHeader:
49   Class:   ELFCLASS64
50   Data:    ELFDATA2LSB
51   Type:    ET_REL
52   Machine: EM_X86_64