getdns/src/test
W.C.A. Wijngaards 47f567d57d Fix spaces to tab. 2014-01-31 16:02:58 +01:00
..
Makefile.in Fix spaces to tab. 2014-01-31 16:02:58 +01:00
README list data type partially implemented, unit test framework started 2013-07-19 16:19:22 -04:00
check_getdns.c Merge pull request #80 from verisign/feature/test_ipaddress 2014-01-30 11:26:11 -08:00
check_getdns_address.h update getdns_address cases 2014-01-29 18:53:49 +00:00
check_getdns_address_sync.h update getdns_address cases 2014-01-29 18:53:49 +00:00
check_getdns_cancel_callback.h Fixed memory leaks found within tests 2014-01-08 14:50:43 -05:00
check_getdns_common.c add new test set_timeout and removed printf 2014-01-31 09:59:44 -05:00
check_getdns_common.h added test for display ip addresses and context_set_context_update 2014-01-30 14:24:22 -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_context_set_context_update_callback.h add new test set_timeout and removed printf 2014-01-31 09:59:44 -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_display_ip_address.h added test for display ip addresses and context_set_context_update 2014-01-30 14:24:22 -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 Fixed false negatives in check_getdns_list_get_data_type.h 2014-01-28 10:28:27 -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 removed references to MIT license, replaced with BSD license 2014-01-28 09:37:35 -05:00
testmessages.h removed references to MIT license, replaced with BSD license 2014-01-28 09:37:35 -05:00
tests_dict.c removed references to MIT license, replaced with BSD license 2014-01-28 09:37:35 -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_dict.good OSX. Header more lenient, no linenr in test 2013-12-03 12:13:10 +01:00
tests_dnssec.c removed references to MIT license, replaced with BSD license 2014-01-28 09:37:35 -05:00
tests_list.c removed references to MIT license, replaced with BSD license 2014-01-28 09:37:35 -05: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 removed references to MIT license, replaced with BSD license 2014-01-28 09:37:35 -05: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 removed references to MIT license, replaced with BSD license 2014-01-28 09:37:35 -05: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