aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/tests/libstore.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/tests/libstore.hh')
-rw-r--r--src/libstore/tests/libstore.hh23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libstore/tests/libstore.hh b/src/libstore/tests/libstore.hh
new file mode 100644
index 000000000..05397659b
--- /dev/null
+++ b/src/libstore/tests/libstore.hh
@@ -0,0 +1,23 @@
+#include <gtest/gtest.h>
+#include <gmock/gmock.h>
+
+#include "store-api.hh"
+
+namespace nix {
+
+class LibStoreTest : public ::testing::Test {
+ public:
+ static void SetUpTestSuite() {
+ initLibStore();
+ }
+
+ protected:
+ LibStoreTest()
+ : store(openStore("dummy://"))
+ { }
+
+ ref<Store> store;
+};
+
+
+} /* namespace nix */