[gbrainy] Check for nunit console too if enable-tests is requested



commit c4da5401f295188f7f41940df2b06689704f79b7
Author: Jordi Mas <jmas softcatala org>
Date:   Tue Jun 29 21:58:46 2010 +0200

    Check for nunit console too if enable-tests is requested

 configure.ac |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6183bf7..52623e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -113,6 +113,11 @@ else
 
 	AC_SUBST(NUNIT_LIBS)
 	AC_PATH_PROG(NUNIT, nunit-console)
+
+	if test ! -x "$NUNIT"; then
+		AC_MSG_ERROR([Could not find nunit console binary])
+	fi
+
 	AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
 
 	if test "x$do_tests" = "xno"; then
@@ -123,7 +128,8 @@ else
 		AM_CONDITIONAL(ENABLE_TESTS, test "x$do_tests" = "xyes")
 
 		if test "x$do_tests" = "xno"; then
-			AC_MSG_WARN([Could not find nunit: tests will not be available])			fi
+			AC_MSG_WARN([Could not find nunit: tests will not be available])
+		fi
 	fi
 fi
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]