[BACK]Return to common.bonnie CVS log [TXT][DIR] Up to [Development] / xfs-cmds / xfstests

File: [Development] / xfs-cmds / xfstests / common.bonnie (download)

Revision 1.3, Tue May 13 07:06:18 2003 UTC (14 years, 5 months ago) by fsgqa
Branch: MAIN
Changes since 1.2: +1 -0 lines

QA updates.
Hack to work around some wierdness in recent shells.

##/bin/sh

run_bonnie()
{
	# dir, no hostname, quiet, fast (no per-char), ram (no sz checks)
	tmp=/var/tmp

	mkdir ./bonnie || exit 1
	defaults="-d ./bonnie -q -f -r 0"
	defaults="$default -u "`id -u`" -g "`id -g`
	bonnie++ -m '' $defaults $@ >$tmp/bonnie.stdout 2>$tmp/bonnie.stderr
	status=$?
	rm -fr ./bonnie
	[ $status -ne 0 ] && exit 1
	filter_stdout < $tmp/bonnie.stdout
	filter_stderr < $tmp/bonnie.stderr 1>&2
	rm -f $tmp/bonnie.stdout $tmp/bonnie.stderr
	exit 0
}