From 11cb023db2dafccf30bec902fc7c8fad64d9ede8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 23 Apr 2019 02:50:13 +0200 Subject: cmake: Add tests. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeLists.txt | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 322d6ec..2772339 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,7 @@ include( TDEMacros ) include( TDESetupPaths ) tde_setup_paths( ) +enable_testing( ) ##### optional stuff @@ -136,6 +137,51 @@ tde_add_library( art_lgpl_2 STATIC_PIC ) +## tests + +tde_add_check_executable( testart + SOURCES + testart.c + + LINK + art_lgpl_2-shared + m +) +add_test( + NAME testart-testpat + COMMAND testart testpat +) +#-- the testart-gradient often ends at sigsegv +#add_test( +# NAME testart-gradient +# COMMAND testart gradient +#) +add_test( + NAME testart-dash + COMMAND testart dash +) +add_test( + NAME testart-dist + COMMAND testart dist +) +add_test( + NAME testart-intersect + COMMAND testart intersect +) + + +tde_add_check_executable( testuta + SOURCES + testuta.c + + LINK + art_lgpl_2-shared + m + + TEST +) + + ##### Headers set( _headers art_affine.h art_alphagamma.h -- cgit v1.2.1