summaryrefslogtreecommitdiff
path: root/qa/gluster/test.sh
blob: a8718b5fb26b5beb0883eb0a9574a61506c198d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

command="$1"
shift
case "$command"
in
    info|stats)
	testcase="$1"
	cat $GLUSTER_HOME/$testcase
	;;

    start|stop)
	volume="$1"
	sequence="$2"
	filename="$3"
	echo "$command $volume - test $sequence" > "$filename"
	;;

    *)	# just ignore anything else
	;;
esac