|
@@ -1,11 +1,23 @@
|
|
|
+#include <stdio.h>
|
|
|
+#include <stdlib.h>
|
|
|
+
|
|
|
#include "test.h"
|
|
|
#include "store_mdb.h"
|
|
|
#include "assets.h"
|
|
|
|
|
|
+
|
|
|
+static void rmdb() {
|
|
|
+ remove("/tmp/testdb/data.mdb");
|
|
|
+ remove("/tmp/testdb/lock.mdb");
|
|
|
+ remove("/tmp/testdb");
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
static int test_triple_store()
|
|
|
{
|
|
|
char *path = "/tmp/testdb";
|
|
|
EXPECT_PASS(LSUP_store_setup(&path));
|
|
|
+ atexit(rmdb);
|
|
|
|
|
|
LSUP_MDBStore *store;
|
|
|
store = LSUP_store_new(path, NULL); // triple store.
|
|
@@ -40,11 +52,13 @@ static int test_triple_store()
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
static int test_quad_store()
|
|
|
{
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
int store_mdb_test()
|
|
|
{
|
|
|
RUN(test_triple_store);
|