Eo: add libcheck test
authorcaro <caro>
Sun, 9 Sep 2012 11:11:40 +0000 (11:11 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 9 Sep 2012 11:11:40 +0000 (11:11 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/PROTO/eobj@76354 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

configure.ac
src/tests/eo_suite/Makefile.am

index 68db785..78e4bc1 100644 (file)
@@ -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"
index 3d0a972..53256d4 100644 (file)
@@ -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