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 <grfn@gws.fyi>
This commit is contained in:
parent
3c3527e16b
commit
ffa8e7a998
2 changed files with 106 additions and 0 deletions
9
third_party/nix/src/tests/CMakeLists.txt
vendored
9
third_party/nix/src/tests/CMakeLists.txt
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue