File: run-test.sh

package info (click to toggle)
ruby-gsl 1.14.7+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,116 kB
  • sloc: ansic: 62,186; ruby: 17,804; makefile: 18; sh: 15
file content (17 lines) | stat: -rwxr-xr-x 429 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

topdir=".."
for f in `find . -name '*.rb'`; do
	if test "$f" = "./sf/make_test.rb"; then continue; fi
	if test "$f" = "./speed/bench.rb"; then continue; fi
	if test "$f" = "./tensor.rb"; then continue; fi
	pushd `dirname $f` > /dev/null
#	ruby -w -I $topdir/lib -I $topdir/ext `basename $f`
	ruby -w `basename $f`
	result=$?
	popd > /dev/null
	if test "$result" != "0"; then
		echo $f failed
		exit $result
	fi
done