aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorRichard Levitte <richard@levitte.org>2021-03-30 20:40:37 +0200
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2021-03-30 23:06:04 +0300
commit09bc339bdce87d513b029b9be91b6cb73b6cc2b7 (patch)
tree21d88754b80643feffa7bc61c2aa4c1102d0cc36 /CMakeLists.txt
parent1864d62c629579be1d2a3c167769082785f079aa (diff)
downloadgost-engine-09bc339bdce87d513b029b9be91b6cb73b6cc2b7.zip
gost-engine-09bc339bdce87d513b029b9be91b6cb73b6cc2b7.tar.gz
gost-engine-09bc339bdce87d513b029b9be91b6cb73b6cc2b7.tar.bz2
Don't put test results or intermediary files in the source tree
When building in a directory that's separate from the source directory, test results should end up in the build directory, not the source directory. Essentially, unless you do build in the source directory, it should be regarded as read-only when building.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c870045..2f6c8b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -312,7 +312,12 @@ add_custom_target(tags
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
add_custom_target(tcl_tests
- COMMAND ENGINE_DIR=${OUTPUT_DIRECTORY} sh ./runtest.sh
+ COMMAND OPENSSL_LIBCRYPTO=${OPENSSL_CRYPTO_LIBRARY}
+ OPENSSL_APP=${OPENSSL_PROGRAM}
+ TESTSRC=${CMAKE_SOURCE_DIR}/tcl_tests
+ TESTDIR=${CMAKE_BINARY_DIR}/tcl_tests
+ ENGINE_DIR=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
+ sh ./runtest.sh
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/tcl_tests)
add_executable(test_tlstree test_tlstree.c)