blob: 045b8b639bd0862b4c974fe1bf861d35955fa7ea [file] [log] [blame]
Rafael Espindola3b5475c2013-07-10 21:47:16 +00001; This isn't really an assembly file, its just here to run the test.
2
3; This test just makes sure that llvm-ar can extract bytecode members
4; from various style archives.
5
Rafael Espindola54dbca52013-07-11 13:13:09 +00006; REQUIRES: shell
7
8; RUN: cd %T
9
10; RUN: rm -f very_long_bytecode_file_name.bc
Rafael Espindola3b5475c2013-07-10 21:47:16 +000011; RUN: llvm-ar p %p/Inputs/GNU.a very_long_bytecode_file_name.bc | \
12; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc -
Rafael Espindola54dbca52013-07-11 13:13:09 +000013; RUN: llvm-ar x %p/Inputs/GNU.a very_long_bytecode_file_name.bc
14; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \
15; RUN: very_long_bytecode_file_name.bc
Rafael Espindola3b5475c2013-07-10 21:47:16 +000016
Rafael Espindola54dbca52013-07-11 13:13:09 +000017; RUN: rm -f very_long_bytecode_file_name.bc
Rafael Espindola3b5475c2013-07-10 21:47:16 +000018; RUN: llvm-ar p %p/Inputs/MacOSX.a very_long_bytecode_file_name.bc | \
19; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc -
Rafael Espindola54dbca52013-07-11 13:13:09 +000020; RUN: llvm-ar x %p/Inputs/MacOSX.a very_long_bytecode_file_name.bc
21; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \
22; RUN: very_long_bytecode_file_name.bc
Rafael Espindola3b5475c2013-07-10 21:47:16 +000023
Rafael Espindola54dbca52013-07-11 13:13:09 +000024; RUN: rm -f very_long_bytecode_file_name.bc
Rafael Espindola3b5475c2013-07-10 21:47:16 +000025; RUN: llvm-ar p %p/Inputs/SVR4.a very_long_bytecode_file_name.bc | \
26; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc -
Rafael Espindola54dbca52013-07-11 13:13:09 +000027; RUN: llvm-ar x %p/Inputs/SVR4.a very_long_bytecode_file_name.bc
28; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \
29; RUN: very_long_bytecode_file_name.bc
Rafael Espindola3b5475c2013-07-10 21:47:16 +000030
Rafael Espindola54dbca52013-07-11 13:13:09 +000031; RUN: rm -f very_long_bytecode_file_name.bc
Rafael Espindola3b5475c2013-07-10 21:47:16 +000032; RUN: llvm-ar p %p/Inputs/xpg4.a very_long_bytecode_file_name.bc |\
33; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc -
Rafael Espindola54dbca52013-07-11 13:13:09 +000034; RUN: llvm-ar x %p/Inputs/xpg4.a very_long_bytecode_file_name.bc
35; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \
36; RUN: very_long_bytecode_file_name.bc