diff options
author | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-16 18:49:26 +0900 |
---|---|---|
committer | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-30 00:39:06 +0900 |
commit | fcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch) | |
tree | 64cb17de3f41a2b6fef2368028fbd00349946994 /jni/ruby/ext/digest/test.sh |
Fresh start
Diffstat (limited to 'jni/ruby/ext/digest/test.sh')
-rw-r--r-- | jni/ruby/ext/digest/test.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/jni/ruby/ext/digest/test.sh b/jni/ruby/ext/digest/test.sh new file mode 100644 index 0000000..03b5078 --- /dev/null +++ b/jni/ruby/ext/digest/test.sh @@ -0,0 +1,30 @@ +#!/bin/sh +# +# $RoughId: test.sh,v 1.5 2001/07/13 15:38:27 knu Exp $ +# $Id: test.sh 25189 2009-10-02 12:04:37Z akr $ + +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 |