mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
More test debug hacks.
This commit is contained in:
@@ -22,9 +22,10 @@ local p="$TMPDIR/collect/2011_12_05"
|
|||||||
|
|
||||||
# Default collect, no extras like gdb, tcpdump, etc.
|
# Default collect, no extras like gdb, tcpdump, etc.
|
||||||
set -x
|
set -x
|
||||||
collect "$TMPDIR/collect" "2011_12_05" # > $p-output 2>&1
|
collect "$TMPDIR/collect" "2011_12_05" > $p-output 2>&1
|
||||||
set +x
|
set +x
|
||||||
# XXX
|
# XXX
|
||||||
|
cat $p-output
|
||||||
ls $TMPDIR/collect
|
ls $TMPDIR/collect
|
||||||
|
|
||||||
# Even if this system doesn't have all the cmds, collect should still
|
# Even if this system doesn't have all the cmds, collect should still
|
||||||
@@ -46,6 +47,9 @@ cmd_ok \
|
|||||||
"grep -q '\-hostname\$' $TMPDIR/collect-files" \
|
"grep -q '\-hostname\$' $TMPDIR/collect-files" \
|
||||||
"Collected hostname"
|
"Collected hostname"
|
||||||
|
|
||||||
|
# XXX
|
||||||
|
df && cat $p-df
|
||||||
|
|
||||||
cmd_ok \
|
cmd_ok \
|
||||||
"grep -q 'Avail' $p-df" \
|
"grep -q 'Avail' $p-df" \
|
||||||
"df"
|
"df"
|
||||||
@@ -97,6 +101,9 @@ cmd_ok \
|
|||||||
"grep -q '^| Uptime' $p-mysqladmin" \
|
"grep -q '^| Uptime' $p-mysqladmin" \
|
||||||
"mysqladmin ext"
|
"mysqladmin ext"
|
||||||
|
|
||||||
|
# XXX
|
||||||
|
cat $p-opentables*
|
||||||
|
|
||||||
cmd_ok \
|
cmd_ok \
|
||||||
"grep -qP 'Database\tTable\tIn_use' $p-opentables1" \
|
"grep -qP 'Database\tTable\tIn_use' $p-opentables1" \
|
||||||
"opentables1"
|
"opentables1"
|
||||||
|
Reference in New Issue
Block a user