Skip to content
Snippets Groups Projects
Commit 00936915 authored by Jan Kadlec's avatar Jan Kadlec
Browse files

Added TSIG tests stub.

Refs #1448 @15m
parent c9c18bc0
Branches
Tags
No related merge requests found
......@@ -253,3 +253,5 @@ src/libknot/tsig-op.c
src/libknot/tsig-op.h
src/libknot/util/conv.c
src/libknot/util/conv.h
src/tests/libknot/libknot/tsig_tests.h
src/tests/libknot/libknot/tsig_tests.c
......@@ -116,6 +116,8 @@ unittests_libknot_SOURCES = \
tests/libknot/libknot/rdata_tests.h \
tests/libknot/libknot/rrset_tests.c \
tests/libknot/libknot/rrset_tests.h \
tests/libknot/libknot/tsig_tests.c \
tests/libknot/libknot/tsig_tests.h \
tests/libknot/libknot/zone_tests.c \
tests/libknot/libknot/zone_tests.h \
tests/libknot/libknot/zone_tree_tests.h\
......
/* Copyright (C) 2011 CZ.NIC, z.s.p.o. <knot-dns@labs.nic.cz>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include "tests/libknot/libknot/rrset_tests.h"
#include "libknot/common.h"
#include "libknot/util/descriptor.h"
#include "libknot/rrset.h"
#include "libknot/dname.h"
#include "libknot/rdata.h"
#include "libknot/util/utils.h"
#include "libknot/zone/node.h"
#include "libknot/util/debug.h"
#include "tsig_tests.h"
static int knot_tsig_tests_count(int argc, char *argv[]);
static int knot_tsig_tests_run(int argc, char *argv[]);
/*! Exported unit API.
*/
unit_api tsig_tests_api = {
"DNS library - tsig", //! Unit name
&knot_tsig_tests_count, //! Count scheduled tests
&knot_tsig_tests_run //! Run scheduled tests
};
static const int KNOT_TSIG_TEST_COUNT = 1;
/*! This helper routine should report number of
* scheduled tests for given parameters.
*/
static int knot_tsig_tests_count(int argc, char *argv[])
{
return KNOT_TSIG_TEST_COUNT;
}
/*! Run all scheduled tests for given parameters.
*/
static int knot_tsig_tests_run(int argc, char *argv[])
{
}
#ifndef TSIH_TESTS_H
#define TSIH_TESTS_H
#include "common/libtap/tap_unit.h"
/* Unit API. */
unit_api tsig_tests_api;
#endif // TSIH_TESTS_H
......@@ -33,6 +33,7 @@
#include "tests/libknot/libknot/query_tests.h"
#include "tests/libknot/libknot/zonedb_tests.h"
#include "tests/libknot/libknot/zone_tree_tests.h"
#include "tests/libknot/libknot/tsig_tests.h"
// Run all loaded units
int main(int argc, char *argv[])
......@@ -58,6 +59,7 @@ int main(int argc, char *argv[])
&query_tests_api,
&zonedb_tests_api, //! DNS library (zonedb) unit
&zone_tree_tests_api,
&tsig_tests_api,
NULL
};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment