dejagnu
[Top][All Lists]
Advanced

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

[PATCH] dejagnu : silent global config file warning


From: Gilles Espinasse
Subject: [PATCH] dejagnu : silent global config file warning
Date: Wed, 27 Mar 2013 18:59:31 +0100

While running make check for dejagnu, this remove that line :
WARNING: Couldn't find the global config file.

Signed-off-by: Gilles Espinasse <address@hidden>
---
 Makefile.am               |    4 +++-
 configure.ac              |    6 ++++++
 2 files changed, 9 insertions(+), 1 deletions(-)
 create mode 100644 testsuite/global-conf.exp

diff --git a/Makefile.am b/Makefile.am
index 9ccfbc3..71096eb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,12 +20,14 @@
 # Process this file with automake to generate Makefile.in
 
 AUTOMAKE_OPTIONS = dejagnu
+export DEJAGNU
 
 EXTRA_DIST = ChangeLog-1992 MAINTAINERS runtest site.tmpl \
        $(pkgdata_DATA) $(pkgdata_SCRIPTS) \
        $(config_DATA) $(config_SCRIPTS) \
        $(baseboard_DATA) $(baseboard_SCRIPTS) \
-       $(TESTSUITE_FILES) $(XML) $(CONTRIB)
+       $(TESTSUITE_FILES) $(XML) $(CONTRIB) \
+       testsuite/global-conf.exp
 
 DISTCLEANFILES = xXx.log xXx.sum x.log x.sum testrun.log testrun.sum
 
diff --git a/configure.ac b/configure.ac
index 7ab586d..1c9ce05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -56,5 +56,11 @@ else
   AC_MSG_ERROR([Tcl 8.3 or greater is required])
 fi
 
+if test x"$DEJAGNU" = x
+then
+  DEJAGNU="\$(top_srcdir)/testsuite/global-conf.exp"
+fi
+AC_SUBST(DEJAGNU)
+
 AC_CONFIG_SUBDIRS([example/calc example/mathhelper])
 AC_OUTPUT([Makefile])
diff --git a/testsuite/global-conf.exp b/testsuite/global-conf.exp
new file mode 100644
index 0000000..e69de29
-- 
1.7.2.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]