From e524156f5eff56669b2d8260dee0bb8cfff65f2f Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sat, 27 Nov 2004 06:44:10 +0000 Subject: [PATCH] Don't depend on grep or sed to be portable at all. Just compare against 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 | 7 +------ test/Archive/ranlib_MacOSX.ll | Bin 404 -> 290 bytes test/Archive/ranlib_SVR4.ll | 7 +------ test/Archive/ranlib_xpg4.ll | 7 +------ test/Archive/toc_GNU.ll | 7 +------ test/Archive/toc_MacOSX.ll | Bin 345 -> 231 bytes test/Archive/toc_SVR4.ll | 7 +------ test/Archive/toc_xpg4.ll | 7 +------ 8 files changed, 6 insertions(+), 36 deletions(-) diff --git a/test/Archive/ranlib_GNU.ll b/test/Archive/ranlib_GNU.ll index 289303a585d..00522801f53 100644 --- a/test/Archive/ranlib_GNU.ll +++ b/test/Archive/ranlib_GNU.ll @@ -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 diff --git a/test/Archive/ranlib_MacOSX.ll b/test/Archive/ranlib_MacOSX.ll index 50fe5cd38a11f277e5c096e975d76991380e35f5..a22b4193917b768d7e14575b6b755a5c38d458dc 100644 GIT binary patch delta 31 mcmbQjyohN7H=}q;W?GtpYKftOYJt9QVzPg5gkDL0G8X`j`Uw93 delta 146 zcmZ3)G=+HsH)DNzQEGvLZkd95oVB`wYO#WyYKak-bx^3El|o8pTABio3&e(8@$q`W zk-jdjZVJKvK_RX#3_!q@T9%rZlbQ!&GjQdnq`=q=TxF?6mGL?GdFk; %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 diff --git a/test/Archive/ranlib_xpg4.ll b/test/Archive/ranlib_xpg4.ll index f36c93c6c94..f859cacb04d 100644 --- a/test/Archive/ranlib_xpg4.ll +++ b/test/Archive/ranlib_xpg4.ll @@ -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 diff --git a/test/Archive/toc_GNU.ll b/test/Archive/toc_GNU.ll index 3aeded259aa..136f603a831 100644 --- a/test/Archive/toc_GNU.ll +++ b/test/Archive/toc_GNU.ll @@ -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 diff --git a/test/Archive/toc_MacOSX.ll b/test/Archive/toc_MacOSX.ll index 331816bddb098d81046382b9576e65a60039c4aa..fb0322324081341bdca8eaeb989ea623c7082be6 100644 GIT binary patch delta 30 lcmcb~^qg_R1@V;3v@`|P5<>;m0)5}aWdGm@y^{Q7E&!}i3M&8r delta 145 zcmaFPc#~ %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 diff --git a/test/Archive/toc_xpg4.ll b/test/Archive/toc_xpg4.ll index f2984e27d7e..441af036f3c 100644 --- a/test/Archive/toc_xpg4.ll +++ b/test/Archive/toc_xpg4.ll @@ -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