about summary refs log tree commit diff
path: root/third_party/nix/src/tests/CMakeLists.txt
blob: f8158d06c3066a144b2a87667fcd4e0be430a6e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# -*- mode: cmake; -*-
include_directories(${PROJECT_BINARY_DIR}) # for 'generated/'

add_executable(attr-set attr-set.cc)
target_link_libraries(attr-set
  nixexpr
  rapidcheck
  rapidcheck_gtest
  GTest::gtest_main
)

gtest_discover_tests(attr-set)

add_executable(derivations_test derivations_test.cc)
target_link_libraries(derivations_test
  nixexpr
  nixstore
  rapidcheck
  rapidcheck_gtest
  GTest::gtest_main
)

gtest_discover_tests(derivations_test)

add_executable(hash_test hash_test.cc)
target_link_libraries(hash_test
  nixutil
  GTest::gtest_main
)

gtest_discover_tests(hash_test)

add_executable(references_test references_test.cc)
target_link_libraries(references_test
  nixstore
  rapidcheck
  rapidcheck_gtest
  GTest::gtest_main
)

gtest_discover_tests(references_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
  nixstore
  GTest::gtest_main
)

gtest_discover_tests(value-to-json)

add_executable(language-tests language-tests.cc)
target_link_libraries(language-tests
  nixexpr
  nixstore
  GTest::gtest_main
)

gtest_discover_tests(language-tests)

add_executable(store-api-test store-api-test.cc)
target_link_libraries(store-api-test
  nixstore
  rapidcheck
  rapidcheck_gtest
  GTest::gtest_main
)

gtest_discover_tests(store-api-test)