diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-11 13:13:09 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-11 13:13:09 +0000 |
| commit | 54dbca5eebc596e2deb7f60473aee2c71015cb3d (patch) | |
| tree | 2d929d94bd2ec34b3adbb1edc044c6c63c18d443 /llvm/test/Object | |
| parent | b1d026890a48af5f55e82ff4fb77792826cdc7ee (diff) | |
| download | bcm5719-llvm-54dbca5eebc596e2deb7f60473aee2c71015cb3d.tar.gz bcm5719-llvm-54dbca5eebc596e2deb7f60473aee2c71015cb3d.zip | |
Add tests for the 'x' operation.
llvm-svn: 186081
Diffstat (limited to 'llvm/test/Object')
| -rw-r--r-- | llvm/test/Object/extract.ll | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/llvm/test/Object/extract.ll b/llvm/test/Object/extract.ll index ab2bcc624bf..045b8b639bd 100644 --- a/llvm/test/Object/extract.ll +++ b/llvm/test/Object/extract.ll @@ -3,14 +3,34 @@ ; This test just makes sure that llvm-ar can extract bytecode members ; from various style archives. +; REQUIRES: shell + +; RUN: cd %T + +; RUN: rm -f very_long_bytecode_file_name.bc ; RUN: llvm-ar p %p/Inputs/GNU.a very_long_bytecode_file_name.bc | \ ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc - +; RUN: llvm-ar x %p/Inputs/GNU.a very_long_bytecode_file_name.bc +; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \ +; RUN: very_long_bytecode_file_name.bc +; RUN: rm -f very_long_bytecode_file_name.bc ; RUN: llvm-ar p %p/Inputs/MacOSX.a very_long_bytecode_file_name.bc | \ ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc - +; RUN: llvm-ar x %p/Inputs/MacOSX.a very_long_bytecode_file_name.bc +; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \ +; RUN: very_long_bytecode_file_name.bc +; RUN: rm -f very_long_bytecode_file_name.bc ; RUN: llvm-ar p %p/Inputs/SVR4.a very_long_bytecode_file_name.bc | \ ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc - +; RUN: llvm-ar x %p/Inputs/SVR4.a very_long_bytecode_file_name.bc +; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \ +; RUN: very_long_bytecode_file_name.bc +; RUN: rm -f very_long_bytecode_file_name.bc ; RUN: llvm-ar p %p/Inputs/xpg4.a very_long_bytecode_file_name.bc |\ ; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc - +; RUN: llvm-ar x %p/Inputs/xpg4.a very_long_bytecode_file_name.bc +; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc \ +; RUN: very_long_bytecode_file_name.bc |

