aboutsummaryrefslogtreecommitdiff
path: root/test/Archive
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-11-27 06:27:30 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-11-27 06:27:30 +0000
commitf461ead5990b9a2e25adbf0c0bf99d826eebfe90 (patch)
tree58d48dc64ee7a2d388f0aa3ed29e9ac2f884d94e /test/Archive
parent9df7aea12ee1e74ed01a2dc04dc647b6e3d08e55 (diff)
Use grep instead of sed because on Solaris sed doesn't copy null bytes and
it needs to in order for the bug in MacOSX archives to be tested correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18269 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Archive')
-rw-r--r--test/Archive/ranlib_GNU.ll2
-rw-r--r--test/Archive/ranlib_MacOSX.llbin408 -> 404 bytes
-rw-r--r--test/Archive/ranlib_SVR4.ll2
-rw-r--r--test/Archive/ranlib_xpg4.ll2
-rw-r--r--test/Archive/toc_GNU.ll2
-rw-r--r--test/Archive/toc_MacOSX.llbin349 -> 345 bytes
-rw-r--r--test/Archive/toc_SVR4.ll2
-rw-r--r--test/Archive/toc_xpg4.ll2
8 files changed, 6 insertions, 6 deletions
diff --git a/test/Archive/ranlib_GNU.ll b/test/Archive/ranlib_GNU.ll
index ac63989c79..289303a585 100644
--- a/test/Archive/ranlib_GNU.ll
+++ b/test/Archive/ranlib_GNU.ll
@@ -4,7 +4,7 @@
;RUN: cp %p/GNU.a %t.GNU.a
;RUN: llvm-ranlib %t.GNU.a
;RUN: llvm-ar t %t.GNU.a > %t1
-;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: grep -v '^;' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
diff --git a/test/Archive/ranlib_MacOSX.ll b/test/Archive/ranlib_MacOSX.ll
index dda2f0b36e..50fe5cd38a 100644
--- a/test/Archive/ranlib_MacOSX.ll
+++ b/test/Archive/ranlib_MacOSX.ll
Binary files differ
diff --git a/test/Archive/ranlib_SVR4.ll b/test/Archive/ranlib_SVR4.ll
index a7da63d031..e1cd79b8dd 100644
--- a/test/Archive/ranlib_SVR4.ll
+++ b/test/Archive/ranlib_SVR4.ll
@@ -4,7 +4,7 @@
;RUN: cp %p/SVR4.a %t.SVR4.a
;RUN: llvm-ranlib %t.SVR4.a
;RUN: llvm-ar t %t.SVR4.a > %t1
-;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: grep -v '^;' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
diff --git a/test/Archive/ranlib_xpg4.ll b/test/Archive/ranlib_xpg4.ll
index 9f8aca0836..f36c93c6c9 100644
--- a/test/Archive/ranlib_xpg4.ll
+++ b/test/Archive/ranlib_xpg4.ll
@@ -4,7 +4,7 @@
;RUN: cp %p/xpg4.a %t.xpg4.a
;RUN: llvm-ranlib %t.xpg4.a
;RUN: llvm-ar t %t.xpg4.a > %t1
-;RUN: sed -e '/^;.*/d' %s >%t2
+;RUN: grep -v '^;' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
diff --git a/test/Archive/toc_GNU.ll b/test/Archive/toc_GNU.ll
index f159563527..3aeded259a 100644
--- a/test/Archive/toc_GNU.ll
+++ b/test/Archive/toc_GNU.ll
@@ -2,7 +2,7 @@
;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: grep -v '^;' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
diff --git a/test/Archive/toc_MacOSX.ll b/test/Archive/toc_MacOSX.ll
index efc2224ef2..331816bddb 100644
--- a/test/Archive/toc_MacOSX.ll
+++ b/test/Archive/toc_MacOSX.ll
Binary files differ
diff --git a/test/Archive/toc_SVR4.ll b/test/Archive/toc_SVR4.ll
index 589d34c52b..9f8bdba207 100644
--- a/test/Archive/toc_SVR4.ll
+++ b/test/Archive/toc_SVR4.ll
@@ -2,7 +2,7 @@
;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: grep -v '^;' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen
diff --git a/test/Archive/toc_xpg4.ll b/test/Archive/toc_xpg4.ll
index 1415421dd3..f2984e27d7 100644
--- a/test/Archive/toc_xpg4.ll
+++ b/test/Archive/toc_xpg4.ll
@@ -2,7 +2,7 @@
;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: grep -v '^;' %s >%t2
;RUN: diff %t2 %t1
evenlen
oddlen