File: run

package info (click to toggle)
resmgr 1.0-2sarge2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 308 kB
  • ctags: 313
  • sloc: ansic: 3,165; sh: 556; makefile: 109
file content (25 lines) | stat: -rwxr-xr-x 398 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

TEST_DIR=`dirname $0`
. $TEST_DIR/functions


resmgr_init "$@"

set -- `getopt atv $*`
while [ $# -gt 0 ]; do
	arg=$1; shift

	case $arg in
	--)	: ;;
	-a)	set -- `ls tests/[0-9]*|sort -n` "$@";;
	-v)	verbose=true;;
	-t)	strace=-t;;
	-*)	echo "Unexpected option $arg" >&2
		exit 1;;
	*/*)	run_test $arg ;;
	*)	run_test tests/$arg;;
	esac
done

$verbose && log_info "All tests complete"