automake-patches
[Top][All Lists]
Advanced

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

FYI: rewrite mkinst2.test


From: Alexandre Duret-Lutz
Subject: FYI: rewrite mkinst2.test
Date: Thu, 13 Nov 2003 20:27:04 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

This test was succeeding for the wrong reason.

+ make -s -f Makefile.in installdirs
Makefile.in:15: *** missing separator.  Stop.
+ grep man

2003-11-13  Alexandre Duret-Lutz  <address@hidden>

        * tests/mkinst2.test: Rewrite.

Index: tests/mkinst2.test
===================================================================
RCS file: /cvs/automake/automake/tests/mkinst2.test,v
retrieving revision 1.4
diff -u -r1.4 mkinst2.test
--- tests/mkinst2.test  8 Sep 2002 13:07:55 -0000       1.4
+++ tests/mkinst2.test  13 Nov 2003 19:25:13 -0000
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 1996, 1997, 2001, 2002  Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997, 2001, 2002, 2003  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -22,6 +22,10 @@
 
 . ./defs || exit 1
 
+set -e
+
+echo AC_OUTPUT >> configure.in
+
 cat > Makefile.am << 'END'
 AUTOMAKE_OPTIONS = no-installman
 man_MANS = foo.1
@@ -29,14 +33,10 @@
 
 : > foo.1
 
-cat > mkinstalldirs << 'END'
-echo "$@"
-END
-
-chmod +x mkinstalldirs
-
-$ACLOCAL || exit 1
-$AUTOMAKE || exit 1
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE
+./configure --prefix `pwd`/sub
 
-($MAKE -s -f Makefile.in installdirs | grep man) && exit 1
-exit 0
+$MAKE installdirs
+test ! -d sub/man

-- 
Alexandre Duret-Lutz





reply via email to

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