From e651c954aade4d23f4976af6ade3f767ca387976 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 20 Nov 2004 07:25:41 +0000 Subject: [PATCH] An llvm-ar test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18043 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Archive/extract_GNU.ll | 5 +++++ test/Archive/extract_MacOSX.ll | 6 ++++++ test/Archive/extract_SVR4.ll | 6 ++++++ test/Archive/extract_xpg4.ll | 6 ++++++ test/Archive/ranlib_GNU.ll | 12 ++++++++++++ test/Archive/ranlib_MacOSX.ll | Bin 0 -> 392 bytes test/Archive/ranlib_SVR4.ll | 12 ++++++++++++ test/Archive/ranlib_xpg4.ll | 12 ++++++++++++ test/Archive/toc_GNU.ll | 10 ++++++++++ test/Archive/toc_MacOSX.ll | Bin 0 -> 349 bytes test/Archive/toc_SVR4.ll | 10 ++++++++++ test/Archive/toc_xpg4.ll | 10 ++++++++++ 12 files changed, 89 insertions(+) create mode 100644 test/Archive/extract_GNU.ll create mode 100644 test/Archive/extract_MacOSX.ll create mode 100644 test/Archive/extract_SVR4.ll create mode 100644 test/Archive/extract_xpg4.ll create mode 100644 test/Archive/ranlib_GNU.ll create mode 100644 test/Archive/ranlib_MacOSX.ll create mode 100644 test/Archive/ranlib_SVR4.ll create mode 100644 test/Archive/ranlib_xpg4.ll create mode 100644 test/Archive/toc_GNU.ll create mode 100644 test/Archive/toc_MacOSX.ll create mode 100644 test/Archive/toc_SVR4.ll create mode 100644 test/Archive/toc_xpg4.ll diff --git a/test/Archive/extract_GNU.ll b/test/Archive/extract_GNU.ll new file mode 100644 index 00000000000..486dd86478c --- /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 00000000000..e835f4037f6 --- /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 00000000000..9fa8ceda7cc --- /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 00000000000..72a5b90ea2f --- /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 00000000000..c735b37ba72 --- /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 0000000000000000000000000000000000000000..bf42aad380e282ed6f884c6f3fdb5611538639f6 GIT binary patch literal 392 zcmYk2QES356oq~6uQ)G77&9^-R}cm|*nyLJpbrds_&489E6 zMhmR%+L;b0WAlj|1uX;(?%Tp!h%PLl_94kOy4)Q;z|zNw4rOCH;w0O@Z=X?~k)G#c zLTM=6=GXF|oizpS_P>hn%AddzsXW~@Q-v8}I{(Vl!@QazWh_%!+;nB?I;I!bjXYO} z&&_K6io %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 00000000000..6388cc20a36 --- /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 00000000000..f1595635274 --- /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 0000000000000000000000000000000000000000..efc2224ef2ed78fa5e8d6a49a68f178a22dcba29 GIT binary patch literal 349 zcmX|-!D_-l5QaVHDgH|kN=>N81_VJ1J*c1-+DpSEnV7Vj-Lf+V^7h>r+c|y1eDe=X zc5YfhD|W8%OvVf#3lib32wb;@AJMAd>ne(dJwqM*)k2$qESf~wEo0=#>gbyVavj}< z6vp)3f;`HQd|}I;ltEA`48zqZomIBsM(uo*?WjDQ-XS`KDfzN#dzL6WzU`m?lN9k! zI*AEkg;<~NhH!-iW1fCy$wOMr5ertaF7M;2t?OVfZyR}@oIZA&?F&wa<9WN8g^IXm sYuJuFi(FOx@hs}u54mynk{5$==_=00_vDs3PKt8cc$NKnpSY>{1rVfa!2kdN literal 0 HcmV?d00001 diff --git a/test/Archive/toc_SVR4.ll b/test/Archive/toc_SVR4.ll new file mode 100644 index 00000000000..589d34c52b7 --- /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 00000000000..1415421dd38 --- /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