getdns/src/test
Neel Goyal 2db5fdbe0c Fix some memory leaks 2013-11-04 12:51:13 -05:00
..
Makefile.in Pass existing CFLAGS and LDFLAGS through 2013-10-29 20:31:25 +01:00
README list data type partially implemented, unit test framework started 2013-07-19 16:19:22 -04:00
testmessages.c Fix some memory leaks 2013-11-04 12:51:13 -05:00
testmessages.h the dict and list data types with helper functions work, unit tests 2013-07-31 16:21:42 -04:00
tests_dict.c Fix some memory leaks 2013-11-04 12:51:13 -05:00
tests_dict.can the dict and list data types with helper functions work, unit tests 2013-07-31 16:21:42 -04:00
tests_list.c Oopsy, test needs to know the lists blocksize 2013-10-29 22:10:35 +01:00
tests_list.can the dict and list data types with helper functions work, unit tests 2013-07-31 16:21:42 -04:00
tests_stub_async.c Adding timeout support 2013-10-18 13:55:31 -04:00
tests_stub_sync.c Add support for sync functs 2013-08-16 16:28:21 -04:00

README

The programs in this directory are intended to provide a regression
test suite - we should be adding tests here as we build the package.

When building unit tests one approach that makes regression testing
easy is to generate canonical output and maintain that with the
code.  Changes to the code should produce output that matches the
canonical output, if it doesn't then the developer needs to look at
the differences to determine whether something broke or is fixed.  Once
the new output is verified it can replace the canonical output.

A typical flow might be illustrated via tests_list:
    - build tests_list (an executable linked against the library)
    - run the regression tests
        ./tests_list > tests_list.out
    - compare output to canonical output
        diff tests_list.out tests_list.can > tests_list.res
    - if there are any diffs then a change affected the output
    - verify the new output and copy it to tests_list.can
    - commit the new canonical output to the repository

Some of the tests that remain to be implemented:
- memory leak testing integrated into the test progs