llvm.org GIT mirror llvm / f461ead
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 Reid Spencer 16 years ago
8 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
33 ;RUN: cp %p/GNU.a %t.GNU.a
44 ;RUN: llvm-ranlib %t.GNU.a
55 ;RUN: llvm-ar t %t.GNU.a > %t1
6 ;RUN: sed -e '/^;.*/d' %s >%t2
6 ;RUN: grep -v '^;' %s >%t2
77 ;RUN: diff %t2 %t1
88 evenlen
99 oddlen
33 ;RUN: cp %p/SVR4.a %t.SVR4.a
44 ;RUN: llvm-ranlib %t.SVR4.a
55 ;RUN: llvm-ar t %t.SVR4.a > %t1
6 ;RUN: sed -e '/^;.*/d' %s >%t2
6 ;RUN: grep -v '^;' %s >%t2
77 ;RUN: diff %t2 %t1
88 evenlen
99 oddlen
33 ;RUN: cp %p/xpg4.a %t.xpg4.a
44 ;RUN: llvm-ranlib %t.xpg4.a
55 ;RUN: llvm-ar t %t.xpg4.a > %t1
6 ;RUN: sed -e '/^;.*/d' %s >%t2
6 ;RUN: grep -v '^;' %s >%t2
77 ;RUN: diff %t2 %t1
88 evenlen
99 oddlen
11 ;This test just makes sure that llvm-ar can generate a table of contents for
22 ;GNU style archives
33 ;RUN: llvm-ar t %p/GNU.a > %t1
4 ;RUN: sed -e '/^;.*/d' %s >%t2
4 ;RUN: grep -v '^;' %s >%t2
55 ;RUN: diff %t2 %t1
66 evenlen
77 oddlen
Binary diff not shown
11 ;This test just makes sure that llvm-ar can generate a table of contents for
22 ;SVR4 style archives
33 ;RUN: llvm-ar t %p/SVR4.a > %t1
4 ;RUN: sed -e '/^;.*/d' %s >%t2
4 ;RUN: grep -v '^;' %s >%t2
55 ;RUN: diff %t2 %t1
66 evenlen
77 oddlen
11 ;This test just makes sure that llvm-ar can generate a table of contents for
22 ;xpg4 style archives
33 ;RUN: llvm-ar t %p/xpg4.a > %t1
4 ;RUN: sed -e '/^;.*/d' %s >%t2
4 ;RUN: grep -v '^;' %s >%t2
55 ;RUN: diff %t2 %t1
66 evenlen
77 oddlen