From ffa8e7a9986260280b5a3f415f73b47a53ba25c3 Mon Sep 17 00:00:00 2001 From: Kane York Date: Mon, 3 Aug 2020 06:43:22 -0700 Subject: feat(3p/nix): add tests for BinaryCacheStore These tests are in preparation for factoring the Store away from libutil's Callback to absl::StatusOr. They use the newly added MockBinaryCacheStore. Updates: #25 Change-Id: I30c207589ec38254806ebc9a983f35668e353ae9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1595 Tested-by: BuildkiteCI Reviewed-by: glittershark --- third_party/nix/src/tests/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'third_party/nix/src/tests/CMakeLists.txt') diff --git a/third_party/nix/src/tests/CMakeLists.txt b/third_party/nix/src/tests/CMakeLists.txt index 33f4f774a61b..929acc5ea671 100644 --- a/third_party/nix/src/tests/CMakeLists.txt +++ b/third_party/nix/src/tests/CMakeLists.txt @@ -30,6 +30,15 @@ target_link_libraries(hash_test gtest_discover_tests(hash_test) +add_executable(store_test store_tests.cc) +target_link_libraries(store_test + nixstore + nixstoremock + GTest::gtest_main +) + +gtest_discover_tests(store_test) + add_executable(value-to-json value-to-json.cc) target_link_libraries(value-to-json nixexpr -- cgit 1.4.1