diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-10 21:47:16 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-10 21:47:16 +0000 |
| commit | 3b5475c0f28935fe7b3a6c6b2505a645d5331134 (patch) | |
| tree | d582b2cc1d092eaed8c185fabe7a4c1d57fac07d /llvm | |
| parent | 56f48d09f8cdb458de7d148e9449e6ccbb6e679a (diff) | |
| download | bcm5719-llvm-3b5475c0f28935fe7b3a6c6b2505a645d5331134.tar.gz bcm5719-llvm-3b5475c0f28935fe7b3a6c6b2505a645d5331134.zip | |
Move tests from test/Archive to test/Object.
There is no lib/Archive anymore and some archive tests were in test/Archive and
others in test/Object. Since archive is just one of the formats supported by
lib/Object, test/Object is probably the best location.
llvm-svn: 186038
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/test/Archive/README.txt | 24 | ||||
| -rw-r--r-- | llvm/test/Archive/extract.ll | 16 | ||||
| -rw-r--r-- | llvm/test/Archive/lit.local.cfg | 1 | ||||
| -rw-r--r-- | llvm/test/Object/Inputs/GNU.a (renamed from llvm/test/Archive/GNU.a) | bin | 4210 -> 4210 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/IsNAN.o (renamed from llvm/test/Archive/IsNAN.o) | bin | 2280 -> 2280 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/MacOSX.a (renamed from llvm/test/Archive/MacOSX.a) | bin | 4166 -> 4166 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/SVR4.a (renamed from llvm/test/Archive/SVR4.a) | bin | 4214 -> 4214 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/evenlen (renamed from llvm/test/Archive/evenlen) | 0 | ||||
| -rw-r--r-- | llvm/test/Object/Inputs/oddlen (renamed from llvm/test/Archive/oddlen) | 0 | ||||
| -rw-r--r-- | llvm/test/Object/Inputs/very_long_bytecode_file_name.bc (renamed from llvm/test/Archive/very_long_bytecode_file_name.bc) | bin | 1465 -> 1465 bytes | |||
| -rw-r--r-- | llvm/test/Object/Inputs/xpg4.a (renamed from llvm/test/Archive/xpg4.a) | bin | 4214 -> 4214 bytes | |||
| -rw-r--r-- | llvm/test/Object/check_binary_output.ll (renamed from llvm/test/Archive/check_binary_output.ll) | 2 | ||||
| -rw-r--r-- | llvm/test/Object/directory.ll (renamed from llvm/test/Archive/directory.ll) | 0 | ||||
| -rw-r--r-- | llvm/test/Object/extract.ll | 16 | ||||
| -rw-r--r-- | llvm/test/Object/toc_GNU.ll (renamed from llvm/test/Archive/toc_GNU.ll) | 2 | ||||
| -rw-r--r-- | llvm/test/Object/toc_MacOSX.ll (renamed from llvm/test/Archive/toc_MacOSX.ll) | 2 | ||||
| -rw-r--r-- | llvm/test/Object/toc_SVR4.ll (renamed from llvm/test/Archive/toc_SVR4.ll) | 3 | ||||
| -rw-r--r-- | llvm/test/Object/toc_xpg4.ll (renamed from llvm/test/Archive/toc_xpg4.ll) | 3 |
18 files changed, 23 insertions, 46 deletions
diff --git a/llvm/test/Archive/README.txt b/llvm/test/Archive/README.txt deleted file mode 100644 index 6021f4c0ae4..00000000000 --- a/llvm/test/Archive/README.txt +++ /dev/null @@ -1,24 +0,0 @@ -test/Regression/Archive -======================= - -This directory contains various tests of llvm-ar and to ensure -compatibility reading other ar(1) formats. It also provides a basic -functionality test for these tools. - -There are four archives accompanying these tests: - -GNU.a - constructed on Linux with GNU ar -MacOSX.a - constructed on Mac OS X with its native BSD4.4 ar -SVR4.a - constructed on Solaris with /usr/ccs/bin/ar -xpg4.a - constructed on Solaris with /usr/xpg4/bin/ar - -Each type of test is run on each of these archive files. These archives each -contain four members: - -oddlen - a member with an odd lengthed name and content -evenlen - a member with an even lengthed name and content -IsNAN.o - a Linux native binary -very_long_bytecode_file_name.bc - LLVM bytecode file with really long name - -These files test different aspects of the archiver that should cause failures -in llvm-ar if regressions are introduced. diff --git a/llvm/test/Archive/extract.ll b/llvm/test/Archive/extract.ll deleted file mode 100644 index 5c0f508319b..00000000000 --- a/llvm/test/Archive/extract.ll +++ /dev/null @@ -1,16 +0,0 @@ -; This isn't really an assembly file, its just here to run the test. - -; This test just makes sure that llvm-ar can extract bytecode members -; from various style archives. - -; RUN: llvm-ar p %p/GNU.a very_long_bytecode_file_name.bc | \ -; RUN: cmp -s %p/very_long_bytecode_file_name.bc - - -; RUN: llvm-ar p %p/MacOSX.a very_long_bytecode_file_name.bc | \ -; RUN: cmp -s %p/very_long_bytecode_file_name.bc - - -; RUN: llvm-ar p %p/SVR4.a very_long_bytecode_file_name.bc | \ -; RUN: cmp -s %p/very_long_bytecode_file_name.bc - - -; RUN: llvm-ar p %p/xpg4.a very_long_bytecode_file_name.bc |\ -; RUN: cmp -s %p/very_long_bytecode_file_name.bc - diff --git a/llvm/test/Archive/lit.local.cfg b/llvm/test/Archive/lit.local.cfg deleted file mode 100644 index 19eebc0ac7a..00000000000 --- a/llvm/test/Archive/lit.local.cfg +++ /dev/null @@ -1 +0,0 @@ -config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/llvm/test/Archive/GNU.a b/llvm/test/Object/Inputs/GNU.a Binary files differindex 4c09881eb39..4c09881eb39 100644 --- a/llvm/test/Archive/GNU.a +++ b/llvm/test/Object/Inputs/GNU.a diff --git a/llvm/test/Archive/IsNAN.o b/llvm/test/Object/Inputs/IsNAN.o Binary files differindex 7b3a12a69d7..7b3a12a69d7 100644 --- a/llvm/test/Archive/IsNAN.o +++ b/llvm/test/Object/Inputs/IsNAN.o diff --git a/llvm/test/Archive/MacOSX.a b/llvm/test/Object/Inputs/MacOSX.a Binary files differindex 8ba1e6d30e3..8ba1e6d30e3 100644 --- a/llvm/test/Archive/MacOSX.a +++ b/llvm/test/Object/Inputs/MacOSX.a diff --git a/llvm/test/Archive/SVR4.a b/llvm/test/Object/Inputs/SVR4.a Binary files differindex 3947813ac60..3947813ac60 100644 --- a/llvm/test/Archive/SVR4.a +++ b/llvm/test/Object/Inputs/SVR4.a diff --git a/llvm/test/Archive/evenlen b/llvm/test/Object/Inputs/evenlen index 59ee8d552e3..59ee8d552e3 100644 --- a/llvm/test/Archive/evenlen +++ b/llvm/test/Object/Inputs/evenlen diff --git a/llvm/test/Archive/oddlen b/llvm/test/Object/Inputs/oddlen index 8cf5bd181b1..8cf5bd181b1 100644 --- a/llvm/test/Archive/oddlen +++ b/llvm/test/Object/Inputs/oddlen diff --git a/llvm/test/Archive/very_long_bytecode_file_name.bc b/llvm/test/Object/Inputs/very_long_bytecode_file_name.bc Binary files differindex f7fce249020..f7fce249020 100644 --- a/llvm/test/Archive/very_long_bytecode_file_name.bc +++ b/llvm/test/Object/Inputs/very_long_bytecode_file_name.bc diff --git a/llvm/test/Archive/xpg4.a b/llvm/test/Object/Inputs/xpg4.a Binary files differindex b2bdb51188f..b2bdb51188f 100644 --- a/llvm/test/Archive/xpg4.a +++ b/llvm/test/Object/Inputs/xpg4.a diff --git a/llvm/test/Archive/check_binary_output.ll b/llvm/test/Object/check_binary_output.ll index 60ab5caac45..567f18e65ba 100644 --- a/llvm/test/Archive/check_binary_output.ll +++ b/llvm/test/Object/check_binary_output.ll @@ -1,4 +1,4 @@ ; This is not an assembly file, this is just to run the test. ; The test verifies that llvm-ar produces a binary output. -;RUN: llvm-ar p %p/GNU.a very_long_bytecode_file_name.bc | cmp -s %p/very_long_bytecode_file_name.bc - +;RUN: llvm-ar p %p/Inputs/GNU.a very_long_bytecode_file_name.bc | cmp -s %p/Inputs/very_long_bytecode_file_name.bc - diff --git a/llvm/test/Archive/directory.ll b/llvm/test/Object/directory.ll index 336d218fd0f..336d218fd0f 100644 --- a/llvm/test/Archive/directory.ll +++ b/llvm/test/Object/directory.ll diff --git a/llvm/test/Object/extract.ll b/llvm/test/Object/extract.ll new file mode 100644 index 00000000000..ab2bcc624bf --- /dev/null +++ b/llvm/test/Object/extract.ll @@ -0,0 +1,16 @@ +; This isn't really an assembly file, its just here to run the test. + +; This test just makes sure that llvm-ar can extract bytecode members +; from various style archives. + +; 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 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 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 p %p/Inputs/xpg4.a very_long_bytecode_file_name.bc |\ +; RUN: cmp -s %p/Inputs/very_long_bytecode_file_name.bc - diff --git a/llvm/test/Archive/toc_GNU.ll b/llvm/test/Object/toc_GNU.ll index 9ed7d8eb8cb..510b7ed1418 100644 --- a/llvm/test/Archive/toc_GNU.ll +++ b/llvm/test/Object/toc_GNU.ll @@ -1,7 +1,7 @@ ;This isn't really an assembly file, its just here to run the test. ;This test just makes sure that llvm-ar can generate a table of contents for ;GNU style archives -;RUN: llvm-ar t %p/GNU.a | FileCheck %s +;RUN: llvm-ar t %p/Inputs/GNU.a | FileCheck %s ;CHECK: evenlen ;CHECK-NEXT: oddlen ;CHECK-NEXT: very_long_bytecode_file_name.bc diff --git a/llvm/test/Archive/toc_MacOSX.ll b/llvm/test/Object/toc_MacOSX.ll index 6dbc9d2ea4a..3b8166c5e60 100644 --- a/llvm/test/Archive/toc_MacOSX.ll +++ b/llvm/test/Object/toc_MacOSX.ll @@ -1,7 +1,7 @@ ;This isn't really an assembly file, its just here to run the test. ;This test just makes sure that llvm-ar can generate a table of contents for ;MacOSX style archives -;RUN: llvm-ar t %p/MacOSX.a | FileCheck %s +;RUN: llvm-ar t %p/Inputs/MacOSX.a | FileCheck %s ;CHECK: __.SYMDEF SORTED ;CHECK-NEXT: evenlen ;CHECK-NEXT: oddlen diff --git a/llvm/test/Archive/toc_SVR4.ll b/llvm/test/Object/toc_SVR4.ll index d447b921999..ecad5c8f0cc 100644 --- a/llvm/test/Archive/toc_SVR4.ll +++ b/llvm/test/Object/toc_SVR4.ll @@ -1,7 +1,8 @@ ;This isn't really an assembly file, its just here to run the test. ;This test just makes sure that llvm-ar can generate a table of contents for ;SVR4 style archives -;RUN: llvm-ar t %p/SVR4.a | FileCheck %s +;This archive was created on Solaris with /usr/ccs/bin/ar +;RUN: llvm-ar t %p/Inputs/SVR4.a | FileCheck %s ;CHECK: evenlen ;CHECK-NEXT: oddlen ;CHECK-NEXT: very_long_bytecode_file_name.bc diff --git a/llvm/test/Archive/toc_xpg4.ll b/llvm/test/Object/toc_xpg4.ll index fd875eebdaa..7af982da6da 100644 --- a/llvm/test/Archive/toc_xpg4.ll +++ b/llvm/test/Object/toc_xpg4.ll @@ -1,7 +1,8 @@ ;This isn't really an assembly file, its just here to run the test. ;This test just makes sure that llvm-ar can generate a table of contents for ;xpg4 style archives -;RUN: llvm-ar t %p/xpg4.a | FileCheck %s +;This archive was created on Solaris with /usr/xpg4/bin/ar +;RUN: llvm-ar t %p/Inputs/xpg4.a | FileCheck %s CHECK: evenlen CHECK-NEXT: oddlen CHECK-NEXT: very_long_bytecode_file_name.bc |

