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 | 6911911e614c1da1957af5518a15c5605657b4e2 (patch) | |
tree | fa2f83f1bb63b389504c7487a21cc4f4e31bf6b0 /test | |
parent | f03fb232671b6a7d0deed602a702e25d3305acc9 (diff) | |
download | external_llvm-6911911e614c1da1957af5518a15c5605657b4e2.zip external_llvm-6911911e614c1da1957af5518a15c5605657b4e2.tar.gz external_llvm-6911911e614c1da1957af5518a15c5605657b4e2.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Archive/README.txt | 24 | ||||
-rw-r--r-- | test/Archive/extract.ll | 16 | ||||
-rw-r--r-- | test/Archive/lit.local.cfg | 1 | ||||
-rw-r--r-- | test/Object/Inputs/GNU.a (renamed from test/Archive/GNU.a) | bin | 4210 -> 4210 bytes | |||
-rw-r--r-- | test/Object/Inputs/IsNAN.o (renamed from test/Archive/IsNAN.o) | bin | 2280 -> 2280 bytes | |||
-rw-r--r-- | test/Object/Inputs/MacOSX.a (renamed from test/Archive/MacOSX.a) | bin | 4166 -> 4166 bytes | |||
-rw-r--r-- | test/Object/Inputs/SVR4.a (renamed from test/Archive/SVR4.a) | bin | 4214 -> 4214 bytes | |||
-rw-r--r-- | test/Object/Inputs/evenlen (renamed from test/Archive/evenlen) | 0 | ||||
-rw-r--r-- | test/Object/Inputs/oddlen (renamed from test/Archive/oddlen) | 0 | ||||
-rw-r--r-- | test/Object/Inputs/very_long_bytecode_file_name.bc (renamed from test/Archive/very_long_bytecode_file_name.bc) | bin | 1465 -> 1465 bytes | |||
-rw-r--r-- | test/Object/Inputs/xpg4.a (renamed from test/Archive/xpg4.a) | bin | 4214 -> 4214 bytes | |||
-rw-r--r-- | test/Object/check_binary_output.ll (renamed from test/Archive/check_binary_output.ll) | 2 | ||||
-rw-r--r-- | test/Object/directory.ll (renamed from test/Archive/directory.ll) | 0 | ||||
-rw-r--r-- | test/Object/extract.ll | 16 | ||||
-rw-r--r-- | test/Object/toc_GNU.ll (renamed from test/Archive/toc_GNU.ll) | 2 | ||||
-rw-r--r-- | test/Object/toc_MacOSX.ll (renamed from test/Archive/toc_MacOSX.ll) | 2 | ||||
-rw-r--r-- | test/Object/toc_SVR4.ll (renamed from test/Archive/toc_SVR4.ll) | 3 | ||||
-rw-r--r-- | test/Object/toc_xpg4.ll (renamed from test/Archive/toc_xpg4.ll) | 3 |
18 files changed, 23 insertions, 46 deletions
diff --git a/test/Archive/README.txt b/test/Archive/README.txt deleted file mode 100644 index 6021f4c..0000000 --- a/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/test/Archive/extract.ll b/test/Archive/extract.ll deleted file mode 100644 index 5c0f508..0000000 --- a/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/test/Archive/lit.local.cfg b/test/Archive/lit.local.cfg deleted file mode 100644 index 19eebc0..0000000 --- a/test/Archive/lit.local.cfg +++ /dev/null @@ -1 +0,0 @@ -config.suffixes = ['.ll', '.c', '.cpp'] diff --git a/test/Archive/GNU.a b/test/Object/Inputs/GNU.a Binary files differindex 4c09881..4c09881 100644 --- a/test/Archive/GNU.a +++ b/test/Object/Inputs/GNU.a diff --git a/test/Archive/IsNAN.o b/test/Object/Inputs/IsNAN.o Binary files differindex 7b3a12a..7b3a12a 100644 --- a/test/Archive/IsNAN.o +++ b/test/Object/Inputs/IsNAN.o diff --git a/test/Archive/MacOSX.a b/test/Object/Inputs/MacOSX.a Binary files differindex 8ba1e6d..8ba1e6d 100644 --- a/test/Archive/MacOSX.a +++ b/test/Object/Inputs/MacOSX.a diff --git a/test/Archive/SVR4.a b/test/Object/Inputs/SVR4.a Binary files differindex 3947813..3947813 100644 --- a/test/Archive/SVR4.a +++ b/test/Object/Inputs/SVR4.a diff --git a/test/Archive/evenlen b/test/Object/Inputs/evenlen index 59ee8d5..59ee8d5 100644 --- a/test/Archive/evenlen +++ b/test/Object/Inputs/evenlen diff --git a/test/Archive/oddlen b/test/Object/Inputs/oddlen index 8cf5bd1..8cf5bd1 100644 --- a/test/Archive/oddlen +++ b/test/Object/Inputs/oddlen diff --git a/test/Archive/very_long_bytecode_file_name.bc b/test/Object/Inputs/very_long_bytecode_file_name.bc Binary files differindex f7fce24..f7fce24 100644 --- a/test/Archive/very_long_bytecode_file_name.bc +++ b/test/Object/Inputs/very_long_bytecode_file_name.bc diff --git a/test/Archive/xpg4.a b/test/Object/Inputs/xpg4.a Binary files differindex b2bdb51..b2bdb51 100644 --- a/test/Archive/xpg4.a +++ b/test/Object/Inputs/xpg4.a diff --git a/test/Archive/check_binary_output.ll b/test/Object/check_binary_output.ll index 60ab5ca..567f18e 100644 --- a/test/Archive/check_binary_output.ll +++ b/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/test/Archive/directory.ll b/test/Object/directory.ll index 336d218..336d218 100644 --- a/test/Archive/directory.ll +++ b/test/Object/directory.ll diff --git a/test/Object/extract.ll b/test/Object/extract.ll new file mode 100644 index 0000000..ab2bcc6 --- /dev/null +++ b/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/test/Archive/toc_GNU.ll b/test/Object/toc_GNU.ll index 9ed7d8e..510b7ed 100644 --- a/test/Archive/toc_GNU.ll +++ b/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/test/Archive/toc_MacOSX.ll b/test/Object/toc_MacOSX.ll index 6dbc9d2..3b8166c 100644 --- a/test/Archive/toc_MacOSX.ll +++ b/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/test/Archive/toc_SVR4.ll b/test/Object/toc_SVR4.ll index d447b92..ecad5c8 100644 --- a/test/Archive/toc_SVR4.ll +++ b/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/test/Archive/toc_xpg4.ll b/test/Object/toc_xpg4.ll index fd875ee..7af982d 100644 --- a/test/Archive/toc_xpg4.ll +++ b/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 |