summaryrefslogtreecommitdiffstats
path: root/nserver/tests/db_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'nserver/tests/db_tests.c')
-rw-r--r--nserver/tests/db_tests.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/nserver/tests/db_tests.c b/nserver/tests/db_tests.c
new file mode 100644
index 0000000..f97f114
--- /dev/null
+++ b/nserver/tests/db_tests.c
@@ -0,0 +1,21 @@
+#include "minunit.h"
+#include <db.h>
+
+char *test_db_init()
+{
+ int rc = db_init();
+ mu_assert(rc == 0, "db init failed");
+
+ return NULL;
+}
+
+char *all_tests()
+{
+ mu_suite_start();
+
+ mu_run_test(test_db_init);
+
+ return NULL;
+}
+
+RUN_TESTS(all_tests);