summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorRyuan Choi <ryuan.choi@gmail.com>2013-11-19 13:18:02 +0000
committerTom Hacohen <tom@stosb.com>2013-11-19 13:18:02 +0000
commit640f687383f5c6d928b562eb323937d3bd07f1ad (patch)
treeb66ed7bf2783ed5c1f07dd3052926bda9a07d152 /configure.ac
parent8419f51ab8928e919d1d58c0690811f0ace132cb (diff)
Introduce check for unit testing framework of Elementary
Reviewers: seoz, tasn CC: tasn, cedric Differential Revision: https://phab.enlightenment.org/D91
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 3358d6e1e..7188d394c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -617,6 +617,17 @@ if test "x$want_elementary_debug" = "xyes"; then
617fi 617fi
618AC_SUBST(ELM_DEBUG_DEF) 618AC_SUBST(ELM_DEBUG_DEF)
619 619
620AC_ARG_WITH([tests],
621 [AC_HELP_STRING([--with-tests=none|regular],
622 [choose elementary testing method: regular or none.(coverage will be supported)@<:@default=none@:>@])],
623 [build_tests=${withval}],
624 [build_tests=none])
625
626if test "${build_tests}" = "regular"; then
627 PKG_CHECK_MODULES([CHECK], [check >= 0.9.5])
628fi
629AM_CONDITIONAL([ENABLE_ELEMENTARY_TESTS], [test "${build_tests}" = "regular"])
630
620ELM_ALLOCA_H_DEF="#undef" 631ELM_ALLOCA_H_DEF="#undef"
621AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"]) 632AC_CHECK_HEADER(alloca.h, [ELM_ALLOCA_H_DEF="#define"])
622AC_SUBST(ELM_ALLOCA_H_DEF) 633AC_SUBST(ELM_ALLOCA_H_DEF)
@@ -714,6 +725,7 @@ src/modules/test_entry/Makefile
714src/modules/test_map/Makefile 725src/modules/test_map/Makefile
715src/edje_externals/Makefile 726src/edje_externals/Makefile
716src/examples/Makefile 727src/examples/Makefile
728src/tests/Makefile
717data/Makefile 729data/Makefile
718data/themes/Makefile 730data/themes/Makefile
719data/images/Makefile 731data/images/Makefile
@@ -777,6 +789,12 @@ echo " CPPFLAGS.................: $CPPFLAGS"
777echo " CFLAGS...................: $CFLAGS" 789echo " CFLAGS...................: $CFLAGS"
778echo " LDFLAGS..................: $LDFLAGS" 790echo " LDFLAGS..................: $LDFLAGS"
779echo 791echo
792if test "${build_tests}" = "none"; then
793echo "Tests......................: no"
794else
795echo "Tests......................: make check"
796fi
797echo
780echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')" 798echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
781echo " prefix...................: $prefix" 799echo " prefix...................: $prefix"
782echo 800echo