Skip to content
Snippets Groups Projects
Commit 2249a42c authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Added unit tests for event queue and event scheduler.

Commit refs #799.
parent 22cd2fbf
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,8 @@ src/common/base32hex.h
src/common/base32hex.c
src/common/evqueue.c
src/common/evqueue.h
src/common/evsched.c
src/common/evsched.h
src/common/errors.h
src/common/errors.c
src/dnslib/dnslib-common.h
......@@ -144,6 +146,8 @@ src/knot/conf/logconf.c
src/knot/conf/logconf.h
src/tests/common/da_tests.c
src/tests/common/da_tests.h
src/tests/common/events_tests.c
src/tests/common/events_tests.h
src/tests/common/skiplist_tests.c
src/tests/common/skiplist_tests.h
src/tests/common/slab_tests.c
......
......@@ -47,23 +47,40 @@ knot_zcompile_SOURCES = \
unittests_SOURCES = \
tests/common/da_tests.c \
tests/common/da_tests.h \
tests/common/events_tests.c \
tests/common/events_tests.h \
tests/common/skiplist_tests.c \
tests/common/skiplist_tests.h \
tests/common/slab_tests.c \
tests/common/slab_tests.h \
tests/knot/conf_tests.c \
tests/knot/conf_tests.h \
tests/knot/dthreads_tests.c \
tests/knot/dthreads_tests.h \
tests/knot/server_tests.c \
tests/knot/server_tests.h \
tests/unittests_main.c
unittests_dnslib_SOURCES = \
dnslib/tests/dnslib/cuckoo_tests.c \
dnslib/tests/dnslib/cuckoo_tests.h \
dnslib/tests/dnslib/dname_tests.c \
dnslib/tests/dnslib/dname_tests.h \
dnslib/tests/dnslib/edns_tests.c \
dnslib/tests/dnslib/edns_tests.h \
dnslib/tests/dnslib/node_tests.c \
dnslib/tests/dnslib/node_tests.h \
dnslib/tests/dnslib/rdata_tests.c \
dnslib/tests/dnslib/rdata_tests.h \
dnslib/tests/dnslib/response_tests.c \
dnslib/tests/dnslib/response_tests.h \
dnslib/tests/dnslib/rrset_tests.c \
dnslib/tests/dnslib/rrset_tests.h \
dnslib/tests/dnslib/zone_tests.c \
dnslib/tests/dnslib/zone_tests.h \
dnslib/tests/dnslib/zonedb_tests.c \
dnslib/tests/dnslib/zonedb_tests.h \
dnslib/tests/unittests_dnslib.c
unittests_zcompile_SOURCES = \
......@@ -111,6 +128,8 @@ libknot_la_SOURCES = \
common/base32hex.h \
common/evqueue.h \
common/evqueue.c \
common/evsched.h \
common/evsched.c \
common/errors.h \
common/errors.c \
knot/stat/gatherer.c \
......
......@@ -8,7 +8,7 @@
#include "knot/common.h"
/* Explicitly ask for symbols,
* as the constructor and desctructor
* as the constructor and destructor
* aren't created for test modules.
*/
extern void slab_init();
......
......@@ -5,6 +5,7 @@
// Units to test
#include "tests/common/slab_tests.h"
#include "tests/common/skiplist_tests.h"
#include "tests/common/events_tests.h"
#include "tests/common/da_tests.h"
#include "tests/knot/dthreads_tests.h"
#include "tests/knot/server_tests.h"
......@@ -22,6 +23,7 @@ int main(int argc, char *argv[])
&slab_tests_api, //! SLAB allocator unit
&skiplist_tests_api, //! Skip list unit
&dthreads_tests_api, //! DThreads testing unit
&events_tests_api, //! Events testing unit
&da_tests_api, //! Dynamic array unit
/* Server parts. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment