[longomatch] Add Moq as a dependency for the tests
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add Moq as a dependency for the tests
- Date: Wed, 18 Mar 2015 14:47:45 +0000 (UTC)
commit e28cc6c15da191ea9906e231b54deecaf358a0bf
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Mar 17 21:15:30 2015 +0100
Add Moq as a dependency for the tests
build/build.environment.mk | 2 ++
configure.ac | 10 ++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/build/build.environment.mk b/build/build.environment.mk
index 9231f83..3931842 100644
--- a/build/build.environment.mk
+++ b/build/build.environment.mk
@@ -22,6 +22,7 @@ LINK_GCONF = $(GCONFSHARP_LIBS)
LINK_DB40 = $(DB4O_LIBS)
LINK_JSON = $(JSON_LIBS)
LINK_NUNIT = $(NUNIT_LIBS)
+LINK_MOQ = $(MOQ_LIBS)
LINK_OSXYPLOT = -r:$(DIR_BIN)/OxyPlotMono.dll
LINK_COUCHBASE = $(COUCHBASE_LIBS)
LINK_LONGOMATCH_ADDINS = -r:$(DIR_BIN)/LongoMatch.Addins.dll
@@ -179,6 +180,7 @@ REF_DEP_TESTS = \
$(LINK_LONGOMATCH_DB) \
$(LINK_JSON) \
$(LINK_COUCHBASE) \
+ $(LINK_MOQ) \
$(LINK_NUNIT)
DIR_BIN = $(top_builddir)/$(DEFAULT_BUILD_DIR)
diff --git a/configure.ac b/configure.ac
index c997fd0..ab6dacb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,6 +67,16 @@ SHAMROCK_FIND_MONO_RUNTIME
dnl NUnit (optional)
SHAMROCK_CHECK_NUNIT
+dnl Moq (optional) disable test if not found
+PKG_CHECK_MODULES(MOQ, moq,
+ do_tests="yes", do_tests="no")
+AC_SUBST(MOQ_LIBS)
+AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
+if test "x$do_tests" = "xno"; then
+ AC_MSG_WARN([Could not find moq: tests will not be available])
+fi
+
+
dnl Covem (optional)
AC_PATH_PROG(COVEM, covem, no)
AC_PATH_PROG(COV_GTK, cov-gtk, no)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]