#include <config.h>
#include <atf-c.h>
#include <unistd.h>
#include <stdlib.h>
#include <dns/db.h>
#include <dns/dbiterator.h>
#include <dns/name.h>
#include <dns/journal.h>
#include "dnstest.h"
Go to the source code of this file.
Defines | |
#define | BUFLEN 255 |
#define | BIGBUFLEN (64 * 1024) |
#define | TEST_ORIGIN "test" |
Functions | |
static void | test_create (const atf_tc_t *tc, dns_db_t **old, dns_db_t **new) |
ATF_TC (diffx_same) | |
ATF_TC_HEAD (diffx_same, tc) | |
ATF_TC_BODY (diffx_same, tc) | |
ATF_TC (diffx_add) | |
ATF_TC_HEAD (diffx_add, tc) | |
ATF_TC_BODY (diffx_add, tc) | |
ATF_TC (diffx_remove) | |
ATF_TC_HEAD (diffx_remove, tc) | |
ATF_TC_BODY (diffx_remove, tc) | |
ATF_TP_ADD_TCS (tp) |
Definition in file dbdiff_test.c.
#define BUFLEN 255 |
Definition at line 39 of file dbdiff_test.c.
#define BIGBUFLEN (64 * 1024) |
Definition at line 40 of file dbdiff_test.c.
#define TEST_ORIGIN "test" |
Definition at line 41 of file dbdiff_test.c.
Definition at line 44 of file dbdiff_test.c.
References dns_dbtype_zone, dns_test_loaddb(), ISC_R_SUCCESS, and TEST_ORIGIN.
Referenced by ATF_TC_BODY().
ATF_TC | ( | diffx_same | ) |
ATF_TC_HEAD | ( | diffx_same | , | |
tc | ||||
) |
Definition at line 61 of file dbdiff_test.c.
ATF_TC_BODY | ( | diffx_same | , | |
tc | ||||
) |
Definition at line 65 of file dbdiff_test.c.
References dns_db_detach(), dns_db_diffx(), dns_diff_clear(), dns_diff_init(), dns_test_begin(), dns_test_end(), ISC_FALSE, ISC_LIST_EMPTY, ISC_R_SUCCESS, ISC_TRUE, mctx, and test_create().
ATF_TC | ( | diffx_add | ) |
ATF_TC_HEAD | ( | diffx_add | , | |
tc | ||||
) |
Definition at line 89 of file dbdiff_test.c.
ATF_TC_BODY | ( | diffx_add | , | |
tc | ||||
) |
Definition at line 95 of file dbdiff_test.c.
References dns_db_detach(), dns_db_diffx(), dns_diff_clear(), dns_diff_init(), DNS_DIFFOP_ADD, dns_test_begin(), dns_test_end(), ISC_FALSE, ISC_LIST_EMPTY, ISC_LIST_HEAD, ISC_LIST_NEXT, ISC_R_SUCCESS, mctx, dns_difftuple::op, and test_create().
ATF_TC | ( | diffx_remove | ) |
ATF_TC_HEAD | ( | diffx_remove | , | |
tc | ||||
) |
Definition at line 127 of file dbdiff_test.c.
ATF_TC_BODY | ( | diffx_remove | , | |
tc | ||||
) |
Definition at line 133 of file dbdiff_test.c.
References dns_db_detach(), dns_db_diffx(), dns_diff_clear(), dns_diff_init(), DNS_DIFFOP_DEL, dns_test_begin(), dns_test_end(), ISC_FALSE, ISC_LIST_EMPTY, ISC_LIST_HEAD, ISC_LIST_NEXT, ISC_R_SUCCESS, mctx, dns_difftuple::op, and test_create().
ATF_TP_ADD_TCS | ( | tp | ) |
Definition at line 167 of file dbdiff_test.c.