aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/tests/libstoretests.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-23 11:47:20 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-01-23 11:47:20 -0500
commitc67e0cc58c5a74121d74a3f5cf9f9c2199a87093 (patch)
tree79454c245dbb0330b619bc653332077f04d3100b /src/libstore/tests/libstoretests.hh
parentb3d91239ae9f21a60057b278ceeff663fb786246 (diff)
parent9b56683398de777219627c96be75c0195e630cb7 (diff)
Merge remote-tracking branch 'upstream/master' into path-info
Diffstat (limited to 'src/libstore/tests/libstoretests.hh')
-rw-r--r--src/libstore/tests/libstoretests.hh23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/libstore/tests/libstoretests.hh b/src/libstore/tests/libstoretests.hh
new file mode 100644
index 000000000..05397659b
--- /dev/null
+++ b/src/libstore/tests/libstoretests.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 */