From: fsgqa Date: Fri, 29 Aug 2003 00:41:36 +0000 (+0000) Subject: Report platform details in the bench script output as well X-Git-Tag: v1.1.0~931 X-Git-Url: http://git.apps.os.sepia.ceph.com/?p=xfstests-dev.git;a=commitdiff_plain;h=8372dd798d7674232bea0a8150c7f3dec293e7d4 Report platform details in the bench script output as well --- diff --git a/bench b/bench index 7276c64b..0e5bca63 100755 --- a/bench +++ b/bench @@ -152,9 +152,9 @@ group=$3 shift; shift; shift if [ $# -gt 0 ]; then - benches="$@" + benches="$@" else - benches=`echo run.* | sed -e 's/run\.//g'` + benches=`echo run.* | sed -e 's/run\.//g'` fi [ -z "$benches" -o "$benches" = "*" ] && _fail "no benchmark scripts found" @@ -163,13 +163,24 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _require_scratch rm -f bench.* results.* +_full_platform_details() +{ + [ -z "$FSTYP" ] && FSTYP=xfs + os=`uname -s` + host=`hostname -s` + kernel=`uname -r` + platform=`uname -i` + + echo "$os/$platform $host $kernel [FSTYP=$FSTYP]" +} + +FULL_HOST_DETAILS=`_full_platform_details` FULL_MKFS_OPTIONS=`_scratch_mkfs_options` FULL_MOUNT_OPTIONS=`_scratch_mount_options` # $OUT is the report which will ultimately be sent, keep it tidy. -rm -f $OUT -[ -z "$FSTYP" ] || echo "FS_TYPE -- $FSTYP" >>$OUT -cat >>$OUT <$OUT <