Make smoke test check the final empdump -x
This commit is contained in:
parent
56a9d46ab1
commit
108c9408dc
3 changed files with 6249 additions and 3 deletions
|
@ -120,8 +120,8 @@ while (<>) {
|
||||||
|
|
||||||
print "$pfx$_\n";
|
print "$pfx$_\n";
|
||||||
|
|
||||||
if (/XDUMP (meta )?([-a-z0-9]+)/) {
|
if (/(XDUMP|^config) (meta )?([-a-z0-9]+)/) {
|
||||||
$dump = $2;
|
$dump = $3;
|
||||||
die unless $dump =~ /^[a-z]/;
|
die unless $dump =~ /^[a-z]/;
|
||||||
} elsif (/DUMP (SECTOR|SHIPS|PLANES|LAND UNITS|NUKES|LOST ITEMS) /) {
|
} elsif (/DUMP (SECTOR|SHIPS|PLANES|LAND UNITS|NUKES|LOST ITEMS) /) {
|
||||||
$dump = $1;
|
$dump = $1;
|
||||||
|
|
|
@ -101,6 +101,8 @@ done
|
||||||
|
|
||||||
exec 3>&-
|
exec 3>&-
|
||||||
|
|
||||||
|
src/util/empdump -e sandbox/etc/empire/econfig -x >sandbox/smoke.xdump
|
||||||
|
|
||||||
# Smoke test completed; compare results
|
# Smoke test completed; compare results
|
||||||
|
|
||||||
cmp_out()
|
cmp_out()
|
||||||
|
@ -129,4 +131,4 @@ cmp_out()
|
||||||
return $ret
|
return $ret
|
||||||
}
|
}
|
||||||
|
|
||||||
cmp_out smoke.out var/empire/server.log var/empire/journal.log
|
cmp_out smoke.out var/empire/server.log var/empire/journal.log smoke.xdump
|
||||||
|
|
6244
tests/smoke/smoke.xdump
Normal file
6244
tests/smoke/smoke.xdump
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue