getdns/src/test
Willem Toorop f0f755ec86 Merge branch 'feature/return_validation_chain' into develop 2014-01-28 10:42:12 +01:00
..
Makefile.in Add dnssec test 2014-01-27 10:51:27 +01:00
README list data type partially implemented, unit test framework started 2013-07-19 16:19:22 -04:00
check_getdns.c add new test for getdns_list 2014-01-23 10:26:13 -05:00
check_getdns_address_sync.h Merge branch 'feature/check_examples' of github.com:verisign/getdns into feature/check_examples 2014-01-13 14:24:16 -05:00
check_getdns_cancel_callback.h Fixed memory leaks found within tests 2014-01-08 14:50:43 -05:00
check_getdns_common.c Added globals to support getdns_cancel_callback() tests. 2014-01-06 12:59:43 -05:00
check_getdns_common.h Added globals to support getdns_cancel_callback() tests. 2014-01-06 12:59:43 -05:00
check_getdns_context_create.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_context_destroy.h Fixed memory leaks found within tests 2014-01-08 14:50:43 -05:00
check_getdns_convert_alabel_to_ulabel.h fixed assert on return code for NULL input values 2014-01-27 19:43:12 +00:00
check_getdns_convert_ulabel_to_alabel.h fixed assert on return code for NULL input values 2014-01-27 19:43:12 +00:00
check_getdns_dict_destroy.h Added tests for getdns_dict_destroy() 2014-01-08 11:29:33 -05:00
check_getdns_dict_get_bindata.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_dict_get_data_type.h Test adjustments for GETDNS_RETURN_INVALID_PARAMETER 2014-01-10 11:57:37 -05:00
check_getdns_dict_get_dict.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_dict_get_int.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_dict_get_list.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_dict_get_names.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_dict_set_bindata.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_dict_set_dict.h Test adjustments for GETDNS_RETURN_INVALID_PARAMETER 2014-01-10 11:57:37 -05:00
check_getdns_dict_set_int.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_dict_set_list.h Added tests for getdns_dict_set_list() 2014-01-10 13:50:31 -05:00
check_getdns_general.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_general_sync.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_libevent.h A little cleanup to eliminate some compile warnings. 2013-12-20 00:00:41 -05:00
check_getdns_list_get_bindata.h add new test for getdns_list 2014-01-23 10:26:13 -05:00
check_getdns_list_get_data_type.h add new test for getdns_list 2014-01-23 10:26:13 -05:00
check_getdns_list_get_dict.h add new test for getdns_list 2014-01-23 10:26:13 -05:00
check_getdns_list_get_int.h fix code 2014-01-23 15:52:18 -05:00
check_getdns_list_get_length.h Modify expected return code for INVALID_PARAMETER conditions 2014-01-13 14:13:52 -05:00
check_getdns_list_get_list.h add new test for getdns_list 2014-01-23 10:26:13 -05:00
check_getdns_pretty_print_dict.h add new test for getdns_list 2014-01-23 10:26:13 -05:00
testmessages.c Ran indent with the indent.pro committed 2013-11-05 15:03:44 -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 Remove/add missing prototypes 2013-12-03 16:09:26 +01: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_dict.good OSX. Header more lenient, no linenr in test 2013-12-03 12:13:10 +01:00
tests_dnssec.c Add dnssec test 2014-01-27 10:51:27 +01:00
tests_list.c getdns_list_set_* on list length mean append 2013-12-09 16:26:18 +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_list.good make test and a testscript and output comparisons. 2013-11-29 16:24:39 +01:00
tests_stub_async.c Fix example-reverse (and reverse_address) 2013-12-11 23:41:21 +01:00
tests_stub_async.good make test and a testscript and output comparisons. 2013-11-29 16:24:39 +01:00
tests_stub_sync.c Get rid of typedefs for structs 2013-12-06 15:54:06 +01:00
tests_stub_sync.good make test and a testscript and output comparisons. 2013-11-29 16:24:39 +01:00
testscript.sh Fix shell portability, test succeeds on NetBSD. 2013-11-30 12:32:17 +01: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