]> sourceware.org Git - automake.git/commitdiff
* tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
authorAlexandre Duret-Lutz <adl@gnu.org>
Mon, 13 Jan 2003 11:06:38 +0000 (11:06 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Mon, 13 Jan 2003 11:06:38 +0000 (11:06 +0000)
Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when
testing for programs.
Reported by Richard Dawe.

ChangeLog
tests/gnits2.test
tests/pr300-prog.test
tests/transform.test

index fc702e2d1eca3f07d1496c808b8b40fadb8bf69c..3b3a1b6202ed1b0757ca692c67ab737664a8f575 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-01-13  Alexandre Duret-Lutz  <adl@gnu.org>
+
+       * tests/gnits2.test, tests/pr300-prog.test, tests/transform.test:
+       Move all `test -f' into Makefiles, so we can honor $(EXEEXT) when
+       testing for programs.
+       Reported by Richard Dawe.
+
 2003-01-10  Alexandre Duret-Lutz  <adl@gnu.org>
 
        * Makefile.am (maintainer-check): Suggest using $sleep instead of
index e3484f92b8715b925eae3968668ed0d4f52743cd..8b32f1f3a77fc918854a23ecdd8cf6176c2862d5 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2002  Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -46,6 +46,10 @@ grep-stderr:
 ## Only three failures please.
        test `grep 'does not support --help' stderr | wc -l` = 3
        test `grep 'does not support --version' stderr | wc -l` = 3
+
+test-install: install
+       test -f ../inst-dir/bin/pfine$(EXEEXT)
+       test ! -f ../inst-dir/bin/fine$(EXEEXT)
 END
 
 echo 'int main () { return 0; }' > fubar.c
@@ -96,9 +100,7 @@ cd build
 # Use --program-prefix to make sure the std-options check honors it.
 ../configure --prefix=`pwd`/../inst-dir --program-prefix=p
 $MAKE all
-$MAKE install
-test -f ../inst-dir/bin/pfine
-test ! -f ../inst-dir/bin/fine
+$MAKE test-install
 $MAKE -k installcheck 2>stderr || : # Never trust the exit status of make -k.
 cat stderr
 $MAKE grep-stderr
index 29e2eea3095dbe013eba74283cc5495e5b9743f2..a593cd2401ddac8d708121d8ae2fefb0d2c34caf 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2002  Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -37,6 +37,19 @@ subdir_wish_SOURCES = a.c
 
 nobase_bin_PROGRAMS = subdir/want
 subdir_want_SOURCES = a.c
+
+test-all: all
+       test -f subdir/wish$(EXEEXT)
+       test -f subdir/want$(EXEEXT)
+test-install: install
+       test -f inst/bin/wish$(EXEEXT)
+       test -f inst/bin/subdir/want$(EXEEXT)
+test-uninstall: uninstall
+       test ! -f inst/bin/wish$(EXEEXT)
+       test ! -f inst/bin/subdir/want$(EXEEXT)
+test-install-strip: install-strip
+       test -f inst/bin/wish$(EXEEXT)
+       test -f inst/bin/subdir/want$(EXEEXT)
 END
 
 cat > a.c << 'END'
@@ -55,22 +68,7 @@ $ACLOCAL
 $AUTOCONF
 $AUTOMAKE --copy --add-missing
 ./configure --prefix `pwd`/inst
-$MAKE
-
-test -f subdir/wish
-test -f subdir/want
-
-$MAKE install
-
-test -f inst/bin/wish
-test -f inst/bin/subdir/want
-
-$MAKE uninstall
-
-test -f inst/bin/wish && exit 1
-test -f inst/bin/subdir/want && exit 1
-
-$MAKE install-strip
-
-test -f inst/bin/wish
-test -f inst/bin/subdir/want
+$MAKE test-all
+$MAKE test-install
+$MAKE test-uninstall
+$MAKE test-install-strip
index 66a54ba8c4cd42ea28c8e0a5f1369d41d7570086..c368b0f09f9b67eeb2caff7f90088f9355ff2728 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2002  Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -34,6 +34,11 @@ cat >Makefile.am <<'EOF'
 bin_PROGRAMS = h
 bin_SCRIPTS = h.sh
 man_MANS = h.1
+
+test-install: install
+       test -f inst/bin/gnu-h$(EXEEXT)
+       test -f inst/bin/gnu-h.sh
+       test -f inst/man/man1/gnu-h.1
 EOF
 
 cat >h.c <<'EOF'
@@ -53,9 +58,6 @@ $AUTOMAKE
 
 ./configure --program-prefix=gnu- --prefix `pwd`/inst
 $MAKE
-$MAKE install
-test -f inst/bin/gnu-h
-test -f inst/bin/gnu-h.sh
-test -f inst/man/man1/gnu-h.1
+$MAKE test-install
 $MAKE uninstall
 test `find inst/foo -type f -print | wc -l` = 0
This page took 0.034888 seconds and 5 git commands to generate.