summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-20 07:25:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-20 07:25:41 +0000
commite651c954aade4d23f4976af6ade3f767ca387976 (patch)
tree0c9ea3d052f2ba8b8c84fea1ff742c2c7fecff95 /test
parent2e78cf6385e59576c2ff73b4aab828cddd12d0dd (diff)
downloadllvm-e651c954aade4d23f4976af6ade3f767ca387976.tar.gz
llvm-e651c954aade4d23f4976af6ade3f767ca387976.tar.bz2
llvm-e651c954aade4d23f4976af6ade3f767ca387976.tar.xz
An llvm-ar test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Archive/extract_GNU.ll5
-rw-r--r--test/Archive/extract_MacOSX.ll6
-rw-r--r--test/Archive/extract_SVR4.ll6
-rw-r--r--test/Archive/extract_xpg4.ll6
-rw-r--r--test/Archive/ranlib_GNU.ll12
-rw-r--r--test/Archive/ranlib_MacOSX.llbin0 -> 392 bytes
-rw-r--r--test/Archive/ranlib_SVR4.ll12
-rw-r--r--test/Archive/ranlib_xpg4.ll12
-rw-r--r--test/Archive/toc_GNU.ll10
-rw-r--r--test/Archive/toc_MacOSX.llbin0 -> 349 bytes
-rw-r--r--test/Archive/toc_SVR4.ll10
-rw-r--r--test/Archive/toc_xpg4.ll10
12 files changed, 89 insertions, 0 deletions
diff --git a/test/Archive/extract_GNU.ll b/test/Archive/extract_GNU.ll
new file mode 100644
index 0000000000..486dd86478
--- /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 -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
diff --git a/test/Archive/extract_MacOSX.ll b/test/Archive/extract_MacOSX.ll
new file mode 100644
index 0000000000..e835f4037f
--- /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 -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
diff --git a/test/Archive/extract_SVR4.ll b/test/Archive/extract_SVR4.ll
new file mode 100644
index 0000000000..9fa8ceda7c
--- /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 -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
diff --git a/test/Archive/extract_xpg4.ll b/test/Archive/extract_xpg4.ll
new file mode 100644
index 0000000000..72a5b90ea2
--- /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 -q %p/very_long_bytecode_file_name.bc very_long_bytecode_file_name.bc
diff --git a/test/Archive/ranlib_GNU.ll b/test/Archive/ranlib_GNU.ll
new file mode 100644
index 0000000000..c735b37ba7
--- /dev/null
+++ b/test/Archive/ranlib_GNU.ll
@@ -0,0 +1,12 @@
+;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 symbol table for
+;GNU style archives
+;RUN: cp %p/GNU.a .
+;RUN: llvm-ranlib GNU.a
+;RUN: llvm-ar t GNU.a > %t1
+;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o
diff --git a/test/Archive/ranlib_MacOSX.ll b/test/Archive/ranlib_MacOSX.ll
new file mode 100644
index 0000000000..bf42aad380
--- /dev/null
+++ b/test/Archive/ranlib_MacOSX.ll
Binary files differ
diff --git a/test/Archive/ranlib_SVR4.ll b/test/Archive/ranlib_SVR4.ll
new file mode 100644
index 0000000000..4eeb7bdbf0
--- /dev/null
+++ b/test/Archive/ranlib_SVR4.ll
@@ -0,0 +1,12 @@
+;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 symbol table for
+;SVR4 style archives
+;RUN: cp %p/SVR4.a .
+;RUN: llvm-ranlib SVR4.a
+;RUN: llvm-ar t SVR4.a > %t1
+;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o
diff --git a/test/Archive/ranlib_xpg4.ll b/test/Archive/ranlib_xpg4.ll
new file mode 100644
index 0000000000..6388cc20a3
--- /dev/null
+++ b/test/Archive/ranlib_xpg4.ll
@@ -0,0 +1,12 @@
+;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 symbol table for
+;xpg4 style archives
+;RUN: cp %p/xpg4.a .
+;RUN: llvm-ranlib xpg4.a
+;RUN: llvm-ar t xpg4.a > %t1
+;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o
diff --git a/test/Archive/toc_GNU.ll b/test/Archive/toc_GNU.ll
new file mode 100644
index 0000000000..f159563527
--- /dev/null
+++ b/test/Archive/toc_GNU.ll
@@ -0,0 +1,10 @@
+;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: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o
diff --git a/test/Archive/toc_MacOSX.ll b/test/Archive/toc_MacOSX.ll
new file mode 100644
index 0000000000..efc2224ef2
--- /dev/null
+++ b/test/Archive/toc_MacOSX.ll
Binary files differ
diff --git a/test/Archive/toc_SVR4.ll b/test/Archive/toc_SVR4.ll
new file mode 100644
index 0000000000..589d34c52b
--- /dev/null
+++ b/test/Archive/toc_SVR4.ll
@@ -0,0 +1,10 @@
+;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: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o
diff --git a/test/Archive/toc_xpg4.ll b/test/Archive/toc_xpg4.ll
new file mode 100644
index 0000000000..1415421dd3
--- /dev/null
+++ b/test/Archive/toc_xpg4.ll
@@ -0,0 +1,10 @@
+;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: sed -e '/^;.*/d' %s >%t2
+;RUN: diff %t2 %t1
+evenlen
+oddlen
+very_long_bytecode_file_name.bc
+IsNAN.o