diff options
author | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2009-06-02 17:52:33 +0000 |
commit | 009b1c42aa6266385f2c37e227516b24077e6dd7 (patch) | |
tree | 64ba909838c23261cace781ece27d106134ea451 /test/Archive |
Diffstat (limited to 'test/Archive')
-rw-r--r-- | test/Archive/GNU.toc | 4 | ||||
-rw-r--r-- | test/Archive/MacOSX.toc | bin | 0 -> 97 bytes | |||
-rw-r--r-- | test/Archive/README.txt | 24 | ||||
-rw-r--r-- | test/Archive/SVR4.toc | 4 | ||||
-rw-r--r-- | test/Archive/dg.exp | 3 | ||||
-rw-r--r-- | test/Archive/evenlen | 1 | ||||
-rw-r--r-- | test/Archive/extract_GNU.ll | 5 | ||||
-rw-r--r-- | test/Archive/extract_MacOSX.ll | 6 | ||||
-rw-r--r-- | test/Archive/extract_SVR4.ll | 6 | ||||
-rw-r--r-- | test/Archive/extract_xpg4.ll | 6 | ||||
-rw-r--r-- | test/Archive/oddlen | 1 | ||||
-rw-r--r-- | test/Archive/toc_GNU.ll | 5 | ||||
-rw-r--r-- | test/Archive/toc_MacOSX.ll | 5 | ||||
-rw-r--r-- | test/Archive/toc_SVR4.ll | 5 | ||||
-rw-r--r-- | test/Archive/toc_xpg4.ll | 5 | ||||
-rw-r--r-- | test/Archive/very_long_bytecode_file_name.bc | bin | 0 -> 1465 bytes | |||
-rw-r--r-- | test/Archive/xpg4.toc | 4 |
17 files changed, 84 insertions, 0 deletions
diff --git a/test/Archive/GNU.toc b/test/Archive/GNU.toc new file mode 100644 index 0000000000000..d9934139136c7 --- /dev/null +++ b/test/Archive/GNU.toc @@ -0,0 +1,4 @@ +evenlen +oddlen +very_long_bytecode_file_name.bc +IsNAN.o diff --git a/test/Archive/MacOSX.toc b/test/Archive/MacOSX.toc Binary files differnew file mode 100644 index 0000000000000..61cbd3b2a070a --- /dev/null +++ b/test/Archive/MacOSX.toc diff --git a/test/Archive/README.txt b/test/Archive/README.txt new file mode 100644 index 0000000000000..da6cfa4c9ed00 --- /dev/null +++ b/test/Archive/README.txt @@ -0,0 +1,24 @@ +test/Regression/Archive +======================= + +This directory contains various tests of llvm-ar and llvm-ranlib to ensure +compatibility reading other ar(1) formats. It also provides a basic +functionality test for these tools. + +There are four archives stored in CVS with 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/SVR4.toc b/test/Archive/SVR4.toc new file mode 100644 index 0000000000000..d9934139136c7 --- /dev/null +++ b/test/Archive/SVR4.toc @@ -0,0 +1,4 @@ +evenlen +oddlen +very_long_bytecode_file_name.bc +IsNAN.o diff --git a/test/Archive/dg.exp b/test/Archive/dg.exp new file mode 100644 index 0000000000000..f2005891a59a8 --- /dev/null +++ b/test/Archive/dg.exp @@ -0,0 +1,3 @@ +load_lib llvm.exp + +RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp}]] diff --git a/test/Archive/evenlen b/test/Archive/evenlen new file mode 100644 index 0000000000000..59ee8d552e373 --- /dev/null +++ b/test/Archive/evenlen @@ -0,0 +1 @@ +evenlen diff --git a/test/Archive/extract_GNU.ll b/test/Archive/extract_GNU.ll new file mode 100644 index 0000000000000..f19840a14e5f4 --- /dev/null +++ b/test/Archive/extract_GNU.ll @@ -0,0 +1,5 @@ +;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 GNU style archives +;RUN: llvm-ar x %p/GNU.a very_long_bytecode_file_name.bc +;RUN: diff %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc >/dev/null 2>/dev/null diff --git a/test/Archive/extract_MacOSX.ll b/test/Archive/extract_MacOSX.ll new file mode 100644 index 0000000000000..c811a59b33a20 --- /dev/null +++ b/test/Archive/extract_MacOSX.ll @@ -0,0 +1,6 @@ +;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 MacOSX style archives + +;RUN: llvm-ar x %p/MacOSX.a very_long_bytecode_file_name.bc +;RUN: diff %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc > /dev/null 2>/dev/null diff --git a/test/Archive/extract_SVR4.ll b/test/Archive/extract_SVR4.ll new file mode 100644 index 0000000000000..446d52c211cd4 --- /dev/null +++ b/test/Archive/extract_SVR4.ll @@ -0,0 +1,6 @@ +;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 SVR4 style archives + +;RUN: llvm-ar x %p/SVR4.a very_long_bytecode_file_name.bc +;RUN: diff %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc >/dev/null 2>/dev/null diff --git a/test/Archive/extract_xpg4.ll b/test/Archive/extract_xpg4.ll new file mode 100644 index 0000000000000..c816d914d29eb --- /dev/null +++ b/test/Archive/extract_xpg4.ll @@ -0,0 +1,6 @@ +;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 xpg4 style archives + +;RUN: llvm-ar x %p/xpg4.a very_long_bytecode_file_name.bc +;RUN: diff %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc >/dev/null 2>/dev/null diff --git a/test/Archive/oddlen b/test/Archive/oddlen new file mode 100644 index 0000000000000..8cf5bd181b1bf --- /dev/null +++ b/test/Archive/oddlen @@ -0,0 +1 @@ +oddlen diff --git a/test/Archive/toc_GNU.ll b/test/Archive/toc_GNU.ll new file mode 100644 index 0000000000000..136f603a831e2 --- /dev/null +++ b/test/Archive/toc_GNU.ll @@ -0,0 +1,5 @@ +;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 > %t1 +;RUN: diff %t1 %p/GNU.toc diff --git a/test/Archive/toc_MacOSX.ll b/test/Archive/toc_MacOSX.ll new file mode 100644 index 0000000000000..fb03223240813 --- /dev/null +++ b/test/Archive/toc_MacOSX.ll @@ -0,0 +1,5 @@ +;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 > %t1 +;RUN: diff %t1 %p/MacOSX.toc diff --git a/test/Archive/toc_SVR4.ll b/test/Archive/toc_SVR4.ll new file mode 100644 index 0000000000000..930a26fd353ed --- /dev/null +++ b/test/Archive/toc_SVR4.ll @@ -0,0 +1,5 @@ +;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 > %t1 +;RUN: diff %t1 %p/SVR4.toc diff --git a/test/Archive/toc_xpg4.ll b/test/Archive/toc_xpg4.ll new file mode 100644 index 0000000000000..441af036f3cf7 --- /dev/null +++ b/test/Archive/toc_xpg4.ll @@ -0,0 +1,5 @@ +;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 > %t1 +;RUN: diff %t1 %p/xpg4.toc diff --git a/test/Archive/very_long_bytecode_file_name.bc b/test/Archive/very_long_bytecode_file_name.bc Binary files differnew file mode 100644 index 0000000000000..f7fce249020a0 --- /dev/null +++ b/test/Archive/very_long_bytecode_file_name.bc diff --git a/test/Archive/xpg4.toc b/test/Archive/xpg4.toc new file mode 100644 index 0000000000000..d9934139136c7 --- /dev/null +++ b/test/Archive/xpg4.toc @@ -0,0 +1,4 @@ +evenlen +oddlen +very_long_bytecode_file_name.bc +IsNAN.o |