lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | <testcase> |
2 | <info> | ||||
3 | <keywords> | ||||
4 | unittest | ||||
5 | TrackMemory | ||||
6 | </keywords> | ||||
7 | </info> | ||||
8 | |||||
9 | # | ||||
10 | # Server-side | ||||
11 | <reply> | ||||
12 | </reply> | ||||
13 | |||||
14 | # Client-side | ||||
15 | <client> | ||||
16 | <server> | ||||
17 | none | ||||
18 | </server> | ||||
19 | <features> | ||||
20 | unittest | ||||
21 | TrackMemory | ||||
22 | </features> | ||||
23 | # tool is what to use instead of 'curl' | ||||
24 | <tool> | ||||
25 | unit1330 | ||||
26 | </tool> | ||||
27 | |||||
28 | <name> | ||||
29 | unit tests memory tracking operational | ||||
30 | </name> | ||||
31 | <command> | ||||
32 | nothing | ||||
33 | </command> | ||||
34 | </client> | ||||
35 | |||||
36 | # | ||||
37 | # Verify data after the test has been "shot" | ||||
38 | <verify> | ||||
39 | <file name="log/memdump"> | ||||
40 | MEM unit1330.c: malloc() | ||||
41 | MEM unit1330.c: free() | ||||
42 | </file> | ||||
43 | <stripfile> | ||||
44 | s/ =.*// | ||||
45 | s/\(.*\)/()/ | ||||
46 | s/:\d+/:/ | ||||
47 | s:^(MEM )(.*/)(.*):$1$3: | ||||
48 | </stripfile> | ||||
49 | </verify> | ||||
50 | |||||
51 | </testcase> |