tests: add #96 #558 and #1330

These verfy that the 'memory tracking' subsystem is actually doing its
job when using curl tool (#96), a test in libtest (#558) and also a unit
test (#1330), in order to prevent regressions in this functionallity.
This commit is contained in:
Yang Tse
2013-03-15 19:58:00 +01:00
parent a8f93d4efc
commit 1700668d78
10 changed files with 387 additions and 123 deletions

43
tests/data/test96 Normal file
View File

@@ -0,0 +1,43 @@
<testcase>
<info>
<keywords>
TrackMemory
</keywords>
</info>
#
# Server-side
<reply>
</reply>
# Client-side
<client>
<server>
none
</server>
<features>
TrackMemory
</features>
<name>
curl memory tracking operational
</name>
<command>
--version
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<file name="log/memdump" mode="text">
MEM ../../src/tool_paramhlp.c
MEM ../../src/tool_cfgable.c
</file>
<stripfile>
$_ = '' if (($_ !~ /tool_paramhlp/) && ($_ !~ /tool_cfgable/))
s/:\d+.*//
</stripfile>
</verify>
</testcase>