summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-04-23 02:50:13 +0200
committerSlávek Banko <[email protected]>2019-04-28 16:05:06 +0200
commit7f058ae278483fd054d5aec9ee4b548f73eb4472 (patch)
tree0e4b4746ab7c941f6ebc9e40cc097db2ec8ee3ee
parentb314a5b4a87c2c84b77a801348b05c819a44ef7b (diff)
downloadlibart-lgpl-7f058ae278483fd054d5aec9ee4b548f73eb4472.tar.gz
libart-lgpl-7f058ae278483fd054d5aec9ee4b548f73eb4472.zip
cmake: Add tests.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 11cb023db2dafccf30bec902fc7c8fad64d9ede8)
-rw-r--r--CMakeLists.txt46
1 files changed, 46 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index aaf1a8d..1120a06 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