-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qa/1375 & 1376: simplest pmlogextract exerciser for V2 and V3 archives
Ensures pmlogextract in out generates an output archive that is (almost) identical to the input archive.
- Loading branch information
Showing
6 changed files
with
143 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
QA output created by 1375 | ||
[skeleton from qa/new, replace me] | ||
|
||
--- Version 2 archive --- | ||
=== scanmeta diffs === | ||
=== pmdumplog diffs === | ||
|
||
--- Version 3 archive --- | ||
=== scanmeta diffs === | ||
=== pmdumplog diffs === |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/sh | ||
# PCP QA Test No. 1376 | ||
# simplest pmlogextract test for V3 (and V2) archives ... no | ||
# delta indoms, so output archive should be the same as the | ||
# input archive | ||
# | ||
# valgrind variant, see qa/1375 for the non-valgrind variant | ||
# | ||
# Copyright (c) 2022 Ken McDonell. All Rights Reserved. | ||
# | ||
|
||
seq=`basename $0` | ||
echo "QA output created by $seq" | ||
|
||
# get standard environment, filters and checks | ||
. ./common.product | ||
. ./common.filter | ||
. ./common.check | ||
|
||
_check_valgrind | ||
|
||
_cleanup() | ||
{ | ||
cd $here | ||
$sudo rm -rf $tmp $tmp.* | ||
} | ||
|
||
status=0 # success is the default! | ||
$sudo rm -rf $tmp $tmp.* $seq.full | ||
trap "_cleanup; exit \$status" 0 1 2 3 15 | ||
|
||
# real QA test starts here | ||
export seq | ||
./1375 --valgrind | $PCP_AWK_PROG ' | ||
skip == 1 && $1 == "===" { skip = 0 } | ||
/^=== std err ===/ { skip = 1 } | ||
skip == 0 { print } | ||
skip == 1 { print >>"'$here/$seq.full'" }' | ||
|
||
# success, all done | ||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
QA output created by 1376 | ||
QA output created by 1375 --valgrind | ||
|
||
--- Version 2 archive --- | ||
=== std out === | ||
=== filtered valgrind report === | ||
Memcheck, a memory error detector | ||
Command: pmlogextract tmparch/sampledso-no-delta TMP | ||
LEAK SUMMARY: | ||
definitely lost: 0 bytes in 0 blocks | ||
indirectly lost: 0 bytes in 0 blocks | ||
ERROR SUMMARY: 0 errors from 0 contexts ... | ||
=== scanmeta diffs === | ||
=== pmdumplog diffs === | ||
|
||
--- Version 3 archive --- | ||
=== std out === | ||
=== filtered valgrind report === | ||
Memcheck, a memory error detector | ||
Command: pmlogextract tmparch/sampledso-no-delta_v3 TMP | ||
LEAK SUMMARY: | ||
definitely lost: 0 bytes in 0 blocks | ||
indirectly lost: 0 bytes in 0 blocks | ||
ERROR SUMMARY: 0 errors from 0 contexts ... | ||
=== scanmeta diffs === | ||
=== pmdumplog diffs === |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters