mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	 5038db866f
			
		
	
	
		5038db866f
		
	
	
	
	
		
			
			git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			555 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			555 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh
 | |
| #
 | |
| # $RoughId: test.sh,v 1.5 2001/07/13 15:38:27 knu Exp $
 | |
| # $Id$
 | |
| 
 | |
| RUBY=${RUBY:=ruby}
 | |
| MAKE=${MAKE:=make}
 | |
| CFLAGS=${CFLAGS:=-Wall}
 | |
| 
 | |
| ${RUBY} extconf.rb --with-cflags="${CFLAGS}"
 | |
| ${MAKE} clean
 | |
| ${MAKE}
 | |
| 
 | |
| for algo in md5 rmd160 sha1 sha2; do
 | |
|     args=--with-cflags="${CFLAGS}"
 | |
| 
 | |
|     if [ $WITH_BUNDLED_ENGINES ]; then
 | |
| 	args="$args --with-bundled-$algo"
 | |
|     fi
 | |
| 
 | |
|     (cd $algo &&
 | |
| 	${RUBY} extconf.rb $args;
 | |
| 	${MAKE} clean;
 | |
| 	${MAKE})
 | |
|     ln -sf ../../$algo/$algo.so lib/digest/
 | |
| done
 | |
| 
 | |
| ${RUBY} -I. -I./lib ../../test/digest/test_digest.rb
 | |
| 
 | |
| rm lib/digest/*.so
 |