Don't depend on grep or sed to be portable at all. Just compare against
static test files. llvm-svn: 18271
This commit is contained in:
		
							parent
							
								
									79d941f784
								
							
						
					
					
						commit
						a7c28bcd6d
					
				| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue