From: Marek VavruĊĦa Date: Sat, 9 May 2015 19:48:49 +0000 (+0200) Subject: tests: added pktcache X-Git-Tag: v1.0.0-beta1~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0cebd5fa46d98c4d39914a18085d870a1444284;p=thirdparty%2Fknot-resolver.git tests: added pktcache --- diff --git a/tests/test_integration.c b/tests/test_integration.c index 2ccc50d38..e1bb42f01 100644 --- a/tests/test_integration.c +++ b/tests/test_integration.c @@ -52,13 +52,14 @@ static PyObject* init(PyObject* self, PyObject* args) /* Load basic modules. */ array_init(global_modules); - int ret = array_reserve(global_modules, 2); + int ret = array_reserve(global_modules, 3); if (ret < 0) { return NULL; } kr_module_load(&global_modules.at[0], "iterate", NULL); kr_module_load(&global_modules.at[1], "rrcache", NULL); - global_modules.len = 2; + kr_module_load(&global_modules.at[2], "pktcache", NULL); + global_modules.len = 3; /* Initialize resolution context */ mm_ctx_init(&global_mm); @@ -72,6 +73,7 @@ static PyObject* init(PyObject* self, PyObject* args) memset(&opts, 0, sizeof(opts)); opts.path = global_tmpdir; opts.mapsize = 100 * 4096; + kr_cache_storage_set(namedb_lmdb_api); global_context.cache = kr_cache_open(&opts, &global_mm); assert(global_context.cache);