[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Test for DejaGnu support that runs DejaGnu [PATCH]
From: |
Richard Dawe |
Subject: |
Test for DejaGnu support that runs DejaGnu [PATCH] |
Date: |
Mon, 14 Apr 2003 13:02:36 +0100 |
Hello.
Below is a ChangeLog and diff to add a test that runs DejaGnu.
Perhaps the check for 'runtest' in tests/defs should be a little
more strict - perhaps it should grep for some string that
'runtest --version' outputs.
iolanthe:~/src/automake =] runtest --version
WARNING: Couldn't find the global config file.
Expect version is 5.28.1
Tcl version is 8.0
Framework version is 1.4.3
Maybe 'Framework version...' or 'Expect version...'.
I haven't asked the DejaGnu folks about the multiple tools in DEJATOOL
thing yet, but I will do that. I was trying to get familiar with DejaGnu
first, to avoid asking stupid questions.
OK to commit?
Thanks, bye, Rich =]
2003-04-14 Richard Dawe <address@hidden>
* tests/defs.in: Handle required=runtest, to detect runtest
from DejaGnu.
* tests/Makefile.am (TESTS): Add dejagnu3.test.
* tests/dejagnu3.test: New test.
Index: tests/Makefile.am
===================================================================
RCS file: /cvs/automake/automake/tests/Makefile.am,v
retrieving revision 1.478
diff -p -u -3 -r1.478 Makefile.am
--- tests/Makefile.am 6 Apr 2003 18:31:12 -0000 1.478
+++ tests/Makefile.am 14 Apr 2003 11:59:08 -0000
@@ -137,6 +137,7 @@ defun.test \
defun2.test \
dejagnu.test \
dejagnu2.test \
+dejagnu3.test \
depacl2.test \
depcomp.test \
depcomp2.test \
Index: tests/defs.in
===================================================================
RCS file: /cvs/automake/automake/tests/defs.in,v
retrieving revision 1.13
diff -p -u -3 -r1.13 defs.in
--- tests/defs.in 10 Apr 2003 23:15:46 -0000 1.13
+++ tests/defs.in 14 Apr 2003 11:59:09 -0000
@@ -133,6 +133,11 @@ then
rm -rf $ro_dir_temp
test $create_status = 0 && exit 77
;;
+ runtest)
+ # DejaGnu's runtest program.
+ echo "$me: running runtest --version"
+ (runtest --version ) || exit 77
+ ;;
tex)
# No all versions of Tex support `--version', so we use
# a configure check.
--- /dev/null Tue May 5 21:32:27 1998
+++ tests/dejagnu3.test Mon Apr 14 12:41:57 2003
@@ -0,0 +1,54 @@
+#! /bin/sh
+# Copyright (C) 2003 Free Software Foundation, Inc.
+#
+# This file is part of GNU Automake.
+#
+# GNU Automake is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# GNU Automake is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with autoconf; see the file COPYING. If not, write to
+# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.
+
+required=runtest
+. ./defs || exit 1
+
+cat > hammer << 'END'
+echo "Everything looks like a nail to me!"
+END
+
+chmod ug+x hammer
+
+echo AC_OUTPUT >> configure.in
+
+cat > Makefile.am << 'END'
+AUTOMAKE_OPTIONS = dejagnu
+
+DEJATOOL = hammer
+END
+
+mkdir testsuite
+mkdir testsuite/hammer.test
+
+cat > testsuite/hammer.test/hammer.exp << 'END'
+set test test
+expect {
+Everything looks like a nail to me! { pass "$test" }
+}
+END
+
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE --add-missing
+
+./configure
+
+$MAKE check
- Test for DejaGnu support that runs DejaGnu [PATCH],
Richard Dawe <=
- Re: Test for DejaGnu support that runs DejaGnu [PATCH], Alexandre Duret-Lutz, 2003/04/14
- Re: Test for DejaGnu support that runs DejaGnu [PATCH], Richard Dawe, 2003/04/15
- Re: Test for DejaGnu support that runs DejaGnu [PATCH], Richard Dawe, 2003/04/17
- Re: Test for DejaGnu support that runs DejaGnu [PATCH], Alexandre Duret-Lutz, 2003/04/17
- Message not available
- FYI: distribute dejagnu test-cases in dejagnu{3,4,5}.test, Alexandre Duret-Lutz, 2003/04/18
- Re: FYI: distribute dejagnu test-cases in dejagnu{3,4,5}.test, Richard Dawe, 2003/04/18
- Re: FYI: distribute dejagnu test-cases in dejagnu{3,4,5}.test, Alexandre Duret-Lutz, 2003/04/18