Add pt-ioprofile tests.

This commit is contained in:
Daniel Nichter
2011-12-28 10:21:07 -07:00
parent d359013799
commit e00dca5e8f
11 changed files with 162 additions and 5 deletions

View File

@@ -0,0 +1,43 @@
#!/usr/bin/env bash
TESTS=2
source "$BIN_DIR/pt-ioprofile"
SAMPLES="$T_DIR/samples"
# ###########################################################################
# summarize_strace sum times filename
# ###########################################################################
summarize_strace \
"sum" \
"times" \
"filename" \
"$SAMPLES/001-tab.txt" \
> $TEST_TMPDIR/got
no_diff \
$TEST_TMPDIR/got \
$SAMPLES/001-summarized-sum-times-filename.txt \
"summarize_strace sum times filename"
# ###########################################################################
# Group by all.
# ###########################################################################
summarize_strace \
"sum" \
"times" \
"all" \
"$SAMPLES/002-tab.txt" \
> $TEST_TMPDIR/got
no_diff \
$TEST_TMPDIR/got \
$SAMPLES/002-summarized-sum-times-all.txt \
"summarize_strace sum times all"
# ###########################################################################
# Done.
# ###########################################################################