From 372b6f5c8724d0776f59e0b43461f546018d52f7 Mon Sep 17 00:00:00 2001 From: caro Date: Sun, 9 Sep 2012 11:11:40 +0000 Subject: [PATCH] Eo: add libcheck test git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@76354 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- configure.ac | 11 +++++++++-- src/tests/eo_suite/Makefile.am | 4 ++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 68db785..78e4bc1 100644 --- a/configure.ac +++ b/configure.ac @@ -127,6 +127,12 @@ PKG_CHECK_MODULES([EO], [${requirements_pc_eo}]) PKG_CHECK_MODULES([ELM], [elementary >= 1.7.0], [have_elm="yes"], [have_elm="no"]) +PKG_CHECK_MODULES([CHECK], + [check >= 0.9.5], + [_efl_enable_tests="yes"], + [_efl_enable_tests="no"]) + +AM_CONDITIONAL([EO_BUILD_UNIT_TEST], [test "x${_efl_enable_tests}" = "xyes"]) AM_CONDITIONAL([EO_BUILD_EXAMPLE_EVAS], [test "x${have_elm}" = "xyes"]) @@ -213,10 +219,11 @@ echo "Configuration Options Summary:" echo echo " Documentation........: ${build_doc}" echo " Unit Tests...........:" +echo " unit testing.......: ${_efl_enable_tests}" echo " build..............: make check" echo " coverage...........: ${_efl_enable_coverage}" -echo " Examples.............: ${enable_build_examples}" -echo " Benchmark............: ${enable_benchmark}" +echo " Examples.............: make examples" +echo " Benchmark............: make benchmark" echo echo "Compilation............: make (or gmake)" echo " CPPFLAGS.............: $CPPFLAGS" diff --git a/src/tests/eo_suite/Makefile.am b/src/tests/eo_suite/Makefile.am index 3d0a972..53256d4 100644 --- a/src/tests/eo_suite/Makefile.am +++ b/src/tests/eo_suite/Makefile.am @@ -8,6 +8,8 @@ AM_CPPFLAGS = \ @EO_CFLAGS@ \ @CHECK_CFLAGS@ +if EO_BUILD_UNIT_TEST + check_PROGRAMS = eo_suite eo_suite_SOURCES = \ @@ -20,3 +22,5 @@ eo_test_general.c \ eo_test_init.c eo_suite_LDADD = $(top_builddir)/src/lib/libeo.la @EO_LIBS@ @CHECK_LIBS@ + +endif -- 2.7.4