File: run-test.sh

package info (click to toggle)
ruby-gsl 1.15.3%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,528 kB
  • ctags: 6,328
  • sloc: ansic: 62,164; ruby: 17,917; 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