diff options
author | Álvaro Neira Ayuso <alvaroneay@gmail.com> | 2013-08-10 21:40:51 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-08-11 09:47:31 +0200 |
commit | 61556a495d512a6fb07cdab7798a11e491ed3599 (patch) | |
tree | 9c6268359a9fe37c2313bffc0fe1de74c94f7d41 /src | |
parent | da49c12414749e63b6c7833d12e260d40d58f94a (diff) |
tests: better parsing validation
Before this patch, the test only verified that we could parse
the file. After this, it also compares what it has parsed with
the original file.
Basically, the idea is that:
file -> buffer -> object -> buffer'
read snprintf
So we also compare that buffer = buffer' which should be true
since our tests should be based on the output that the library
generates.
This is an example output for the OK and FAILED cases:
parsing and validating xmlfiles/25-rule-exthdr.xml: OK
validating xmlfiles/27-rule-limit.xml: FAILED
from file: it"><rate>123123</ra
from snprintf: it"><rate>321321</ra
Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions