tests: Feed only logs and xdump to normalize.pl
Feeding other test output files (right now tests/files/files.out
tests/fairland/fairland.out fairland/newcap_script) works, but it's
odd, and might not work as well for all future output files. Only
strip trailing white space there.
There used to be other output files that required normalize.pl: client
output. Gone since commit 9ca3fa9
.
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
9f33eb1ba8
commit
cc692142d9
1 changed files with 11 additions and 7 deletions
|
@ -177,18 +177,22 @@ cmp_logs_xdump()
|
|||
|
||||
cmp_out()
|
||||
{
|
||||
local opt exp act nrm ret=0
|
||||
local exp act nrm ret=0
|
||||
for i
|
||||
do
|
||||
case "$i" in
|
||||
*/journal.log) opt=-j ;;
|
||||
*/server.log) opt=-s ;;
|
||||
*) opt= ;;
|
||||
esac
|
||||
exp="$testdir/${i##*/}"
|
||||
act="sandbox/$i"
|
||||
nrm="sandbox/normalized-${i##*/}"
|
||||
perl "$srcdir"/tests/normalize.pl $opt "$act" >"$nrm"
|
||||
case "$i" in
|
||||
*/journal.log)
|
||||
perl "$srcdir"/tests/normalize.pl -j "$act" ;;
|
||||
*/server.log)
|
||||
perl "$srcdir"/tests/normalize.pl -s "$act" ;;
|
||||
*.xdump)
|
||||
perl "$srcdir"/tests/normalize.pl "$act" ;;
|
||||
*)
|
||||
perl -pe 's/\s+$/\n/;' "$act" ;;
|
||||
esac >"$nrm"
|
||||
if diff -u "$exp" "$nrm" >"$nrm.diff"
|
||||
then
|
||||
echo "$i OK"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue