1 ; 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 6 ; RUN: cd %T 7 8 ; RUN: rm -f very_long_bytecode_file_name.bc 9 ; RUN: llvm-ar p %p/Inputs/GNU.a very_long_bytecode_file_name.bc | \ 10 ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc - 11 ; RUN: llvm-ar x %p/Inputs/GNU.a very_long_bytecode_file_name.bc 12 ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \ 13 ; RUN: very_long_bytecode_file_name.bc 14 15 ; RUN: rm -f very_long_bytecode_file_name.bc 16 ; RUN: llvm-ar p %p/Inputs/MacOSX.a very_long_bytecode_file_name.bc | \ 17 ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc - 18 ; RUN: llvm-ar x %p/Inputs/MacOSX.a very_long_bytecode_file_name.bc 19 ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \ 20 ; RUN: very_long_bytecode_file_name.bc 21 22 ; RUN: rm -f very_long_bytecode_file_name.bc 23 ; RUN: llvm-ar p %p/Inputs/SVR4.a very_long_bytecode_file_name.bc | \ 24 ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc - 25 ; RUN: llvm-ar x %p/Inputs/SVR4.a very_long_bytecode_file_name.bc 26 ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \ 27 ; RUN: very_long_bytecode_file_name.bc 28 29 ; RUN: rm -f very_long_bytecode_file_name.bc 30 ; RUN: llvm-ar p %p/Inputs/xpg4.a very_long_bytecode_file_name.bc |\ 31 ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc - 32 ; RUN: llvm-ar x %p/Inputs/xpg4.a very_long_bytecode_file_name.bc 33 ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \ 34 ; RUN: very_long_bytecode_file_name.bc 35 36 37 ; Test that the 'o' option is working by extracting a file, putting it in o 38 ; new archive and checking that date. 39 ; RUN: rm -f very_long_bytecode_file_name.bc 40 ; RUN: llvm-ar xo %p/Inputs/GNU.a very_long_bytecode_file_name.bc 41 ; RUN: rm -f %t.a 42 ; RUN: llvm-ar rc %t.a very_long_bytecode_file_name.bc 43 ; RUN: env TZ=GMT llvm-ar tv %t.a | FileCheck %s 44 45 CHECK: 1465 2004-11-19 03:01:31.000000000 very_long_bytecode_file_name.bc 46