v31.1-roots.1 · Commit 1: [PATCH 01/17] build(roots): establish v31 portability foundation
test/CMakeLists.txt
Before: test/CMakeLists.txt · After: test/CMakeLists.txt
File metadata
index eac3ec5942f7445245cd8a033e7094967da6cda2..ee085652897deb5dac5a0afaaec39d61df68a376 100644
Download original patch · Release notes
Diff rows 1–17 of 17. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
test/CMakeLists.txt
CHANGED
|
@@ -35,6 +35,17 @@ endfunction()
|
|
| 35 |
|
| 36 |
create_test_config()
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
function(create_test_directory_links)
|
| 40 |
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/functional)
|
|
|
|
| 35 |
|
| 36 |
create_test_config()
|
| 37 |
|
| 38 |
+
if(BUILD_TESTS AND NOT CMAKE_CROSSCOMPILING)
|
| 39 |
+
find_package(Python3 COMPONENTS Interpreter REQUIRED)
|
| 40 |
+
add_test(NAME roots_leveldb_finder
|
| 41 |
+
COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/test_leveldb.py
|
| 42 |
+
--cmake ${CMAKE_COMMAND}
|
| 43 |
+
--compiler ${CMAKE_CXX_COMPILER}
|
| 44 |
+
--generator "${CMAKE_GENERATOR}"
|
| 45 |
+
--modules ${PROJECT_SOURCE_DIR}/cmake/module
|
| 46 |
+
)
|
| 47 |
+
endif()
|
| 48 |
+
|
| 49 |
|
| 50 |
function(create_test_directory_links)
|
| 51 |
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/functional)
|