Don't depend on grep or sed to be portable at all. Just compare against
authorReid Spencer <rspencer@reidspencer.com>
Sat, 27 Nov 2004 06:44:10 +0000 (06:44 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 27 Nov 2004 06:44:10 +0000 (06:44 +0000)
static test files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18271 91177308-0d34-0410-b5e6-96231b3b80d8

test/Archive/ranlib_GNU.ll
test/Archive/ranlib_MacOSX.ll
test/Archive/ranlib_SVR4.ll
test/Archive/ranlib_xpg4.ll
test/Archive/toc_GNU.ll
test/Archive/toc_MacOSX.ll
test/Archive/toc_SVR4.ll
test/Archive/toc_xpg4.ll

index 289303a585dbee60268132754378d66f25d7b8e6..00522801f535579d810113302725ca2fd16086e3 100644 (file)
@@ -4,9 +4,4 @@
 ;RUN: cp %p/GNU.a %t.GNU.a
 ;RUN: llvm-ranlib %t.GNU.a
 ;RUN: llvm-ar t %t.GNU.a > %t1
-;RUN: grep -v '^;' %s >%t2
-;RUN: diff %t2 %t1
-evenlen
-oddlen
-very_long_bytecode_file_name.bc
-IsNAN.o
+;RUN: diff %t1 %p/GNU.toc
index 50fe5cd38a11f277e5c096e975d76991380e35f5..a22b4193917b768d7e14575b6b755a5c38d458dc 100644 (file)
Binary files a/test/Archive/ranlib_MacOSX.ll and b/test/Archive/ranlib_MacOSX.ll differ
index e1cd79b8ddeeff5ca1542b81b7fc3df969f88b33..d5f4b5ae58fefabeec185589b21849ff41b89477 100644 (file)
@@ -4,9 +4,4 @@
 ;RUN: cp %p/SVR4.a %t.SVR4.a
 ;RUN: llvm-ranlib %t.SVR4.a
 ;RUN: llvm-ar t %t.SVR4.a > %t1
-;RUN: grep -v '^;' %s >%t2
-;RUN: diff %t2 %t1
-evenlen
-oddlen
-very_long_bytecode_file_name.bc
-IsNAN.o
+;RUN: diff %t1 %p/SVR4.toc
index f36c93c6c941c1462af8c716cc1e089e556d9ddd..f859cacb04d5a183adc590b2b7b5cdd278a22e9d 100644 (file)
@@ -4,9 +4,4 @@
 ;RUN: cp %p/xpg4.a %t.xpg4.a
 ;RUN: llvm-ranlib %t.xpg4.a
 ;RUN: llvm-ar t %t.xpg4.a > %t1
-;RUN: grep -v '^;' %s >%t2
-;RUN: diff %t2 %t1
-evenlen
-oddlen
-very_long_bytecode_file_name.bc
-IsNAN.o
+;RUN: diff %t1 %p/xpg4.toc
index 3aeded259aa374adb15907e87dd2450794cac1f8..136f603a831e2f41ff3866060dfaa44ce59c549a 100644 (file)
@@ -2,9 +2,4 @@
 ;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: grep -v '^;' %s >%t2
-;RUN: diff %t2 %t1
-evenlen
-oddlen
-very_long_bytecode_file_name.bc
-IsNAN.o
+;RUN: diff %t1 %p/GNU.toc
index 331816bddb098d81046382b9576e65a60039c4aa..fb0322324081341bdca8eaeb989ea623c7082be6 100644 (file)
Binary files a/test/Archive/toc_MacOSX.ll and b/test/Archive/toc_MacOSX.ll differ
index 9f8bdba207d408d0828156c093f0c71ecc316c91..930a26fd353ed86fc85641cec2df50a6c1c82ab9 100644 (file)
@@ -2,9 +2,4 @@
 ;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: grep -v '^;' %s >%t2
-;RUN: diff %t2 %t1
-evenlen
-oddlen
-very_long_bytecode_file_name.bc
-IsNAN.o
+;RUN: diff %t1 %p/SVR4.toc
index f2984e27d7e7fa69ffbfc26563907f545f6cb112..441af036f3cf7c5670bfce255d9854e64e954b95 100644 (file)
@@ -2,9 +2,4 @@
 ;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: grep -v '^;' %s >%t2
-;RUN: diff %t2 %t1
-evenlen
-oddlen
-very_long_bytecode_file_name.bc
-IsNAN.o
+;RUN: diff %t1 %p/xpg4.toc