]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Add perl test harness to CMakeLists to run on make test
authorVitaly Chikunov <vt@altlinux.org>
Tue, 24 Jul 2018 02:30:25 +0000 (05:30 +0300)
committerGleb Fotengauer-Malinovskiy <glebfm@altlinux.org>
Tue, 21 Aug 2018 16:37:10 +0000 (19:37 +0300)
CMakeLists.txt

index 72fef26583671c8da4e6344ca69a2d7a1ed2a254..6748f45fa0eb2f2c2c07225fef82b53698785986 100644 (file)
@@ -1,6 +1,8 @@
 cmake_minimum_required(VERSION 2.8)
 project(ccgost C)
 
+enable_testing()
+
 if (CMAKE_C_COMPILER_ID MATCHES "Clang")
    message(STATUS "Using Clang and adding -Qunused-arguments flag")
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments")
@@ -93,6 +95,10 @@ set(GOST_ENGINE_SOURCE_FILES
         gost_md2012.c
         gost_pmeth.c)
 
+add_test(NAME engine
+        COMMAND perl run_tests
+        WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test)
+
 add_library(gost STATIC ${GOST_LIB_SOURCE_FILES})
 set_target_properties(gost PROPERTIES POSITION_INDEPENDENT_CODE ON)