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

50
tests/data/test1330 Normal file
View File

@@ -0,0 +1,50 @@
<testcase>
<info>
<keywords>
unittest
TrackMemory
</keywords>
</info>
#
# Server-side
<reply>
</reply>
# Client-side
<client>
<server>
none
</server>
<features>
unittest
TrackMemory
</features>
# tool is what to use instead of 'curl'
<tool>
unit1330
</tool>
<name>
unit tests memory tracking operational
</name>
<command>
nothing
</command>
</client>
#
# Verify data after the test has been "shot"
<verify>
<file name="log/memdump" mode="text">
MEM ../../../tests/unit/unit1330.c: malloc()
MEM ../../../tests/unit/unit1330.c: free()
</file>
<stripfile>
s/ =.*//
s/\(.*\)/()/
s/:\d+/:/
</stripfile>
</verify>
</testcase>