projects
/
xfstests-dev.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f1f2a87
)
Report platform details in the bench script output as well
author
fsgqa
<fsgqa>
Fri, 29 Aug 2003 00:41:36 +0000
(
00:41
+0000)
committer
fsgqa
<fsgqa>
Fri, 29 Aug 2003 00:41:36 +0000
(
00:41
+0000)
bench
patch
|
blob
|
history
diff --git
a/bench
b/bench
index 7276c64b1b9464a94395305c0d3eb39907069673..0e5bca63f6c52ad558fffe3908cd8f08116508a4 100755
(executable)
--- a/
bench
+++ b/
bench
@@
-152,9
+152,9
@@
group=$3
shift; shift; shift
if [ $# -gt 0 ]; then
shift; shift; shift
if [ $# -gt 0 ]; then
-
benches="$@"
+ benches="$@"
else
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"
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.*
_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.
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 <<EOF
+cat >$OUT <<EOF
+PLATFORM -- $FULL_HOST_DETAILS
MKFS_OPTIONS -- $FULL_MKFS_OPTIONS
MOUNT_OPTIONS -- $FULL_MOUNT_OPTIONS
MKFS_OPTIONS -- $FULL_MKFS_OPTIONS
MOUNT_OPTIONS -- $FULL_MOUNT_OPTIONS