getdns/src/test
Neel Goyal 8e144d5648 Convert test programs to not use libevent. 2014-03-07 14:32:35 -05:00
..
Makefile.in Convert test programs to not use libevent. 2014-03-07 14:32:35 -05:00
README list data type partially implemented, unit test framework started 2013-07-19 16:19:22 -04:00
check_getdns.c Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_address.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_address_sync.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_cancel_callback.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_common.c Add return code to _destroy methods. Prevent destroy in callbacks for the context firing them 2014-03-07 10:42:37 -05:00
check_getdns_common.h Add return code to _destroy methods. Prevent destroy in callbacks for the context firing them 2014-03-07 10:42:37 -05:00
check_getdns_context_create.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_context_destroy.h Add return code to _destroy methods. Prevent destroy in callbacks for the context firing them 2014-03-07 10:42:37 -05:00
check_getdns_context_set_context_update_callback.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_context_set_dns_transport.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_context_set_timeout.c Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_context_set_timeout.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_context_set_upstream_recursive_servers.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_convert_alabel_to_ulabel.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_convert_ulabel_to_alabel.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_destroy.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_get_bindata.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_get_data_type.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_get_dict.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_get_int.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_get_list.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_get_names.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_set_bindata.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_set_dict.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_set_int.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_dict_set_list.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_display_ip_address.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_eventloop.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_general.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_general_sync.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_hostname.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_hostname_sync.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_libev.c Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_libevent.c Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_libevent.h Define u_char if including event.h for libevent1 2014-02-25 14:21:44 -05:00
check_getdns_libuv.c Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_list_get_bindata.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_list_get_data_type.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_list_get_dict.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_list_get_int.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_list_get_length.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_list_get_list.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_pretty_print_dict.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_selectloop.c Fix for issue #18 - allow destroy in callback 2014-03-04 17:00:18 -05:00
check_getdns_service.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
check_getdns_service_sync.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
testmessages.c Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
testmessages.h Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
tests_dict.c Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
tests_dict.good update testscript, check_dns is much better than diff. 2014-02-04 11:35:28 +01:00
tests_dnssec.c Convert test programs to not use libevent. 2014-03-07 14:32:35 -05:00
tests_list.c Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
tests_list.good update testscript, check_dns is much better than diff. 2014-02-04 11:35:28 +01:00
tests_stub_async.c Convert test programs to not use libevent. 2014-03-07 14:32:35 -05:00
tests_stub_async.good update testscript, check_dns is much better than diff. 2014-02-04 11:35:28 +01:00
tests_stub_sync.c Fill in <organization> place holder. 2014-02-25 14:23:19 +01:00
tests_stub_sync.good update testscript, check_dns is much better than diff. 2014-02-04 11:35:28 +01:00
testscript.sh Fill in <organization> place holder. 2014-02-25 14:23:19 +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