[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: use $(EXEEXT) in nobase.test
From: |
Alexandre Duret-Lutz |
Subject: |
FYI: use $(EXEEXT) in nobase.test |
Date: |
Sat, 06 Jul 2002 15:06:26 +0200 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) |
I'm installing this on HEAD and branch-1-6.
2002-07-06 Alexandre Duret-Lutz <address@hidden>
* tests/nobase.test (test-install-exec): Move all the `test -f'
tests in the Makefile so we can use $(EXEEXT) on programs.
Reported by Charles Wilson.
Index: tests/nobase.test
===================================================================
RCS file: /cvs/automake/automake/tests/nobase.test,v
retrieving revision 1.5.2.1
diff -u -r1.5.2.1 nobase.test
--- tests/nobase.test 9 Jun 2002 11:12:58 -0000 1.5.2.1
+++ tests/nobase.test 6 Jul 2002 13:02:16 -0000
@@ -39,6 +39,36 @@
nobase_fooexec_LTLIBRARIES = sub/libnobase.la
sub_libbase_la_SOURCES = source2.c
sub_libnobase_la_SOURCES = source2.c
+
+test-install-data: install-data
+ test -f inst/foo/sub/nobase.h
+ test ! -f inst/foo/nobase.h
+ test -f inst/foo/base.h
+ test -f inst/foo/sub/nobase.dat
+ test ! -f inst/foo/nobase.dat
+ test -f inst/foo/base.dat
+ test ! -f inst/foo/sub/nobase.sh
+ test ! -f inst/foo/base.sh
+ test ! -f inst/foo/sub/nobase$(EXEEXT)
+ test ! -f inst/foo/base$(EXEEXT)
+ test ! -f inst/foo/sub/libnobase.a
+ test ! -f inst/foo/libbase.a
+ test ! -f inst/foo/sub/libnobase.la
+ test ! -f inst/foo/libbase.la
+
+test-install-exec: install-exec
+ test -f inst/foo/sub/nobase.sh
+ test ! -f inst/foo/nobase.sh
+ test -f inst/foo/base.sh
+ test -f inst/foo/sub/nobase$(EXEEXT)
+ test ! -f inst/foo/nobase$(EXEEXT)
+ test -f inst/foo/base$(EXEEXT)
+ test -f inst/foo/sub/libnobase.a
+ test ! -f inst/foo/libnobase.a
+ test -f inst/foo/libbase.a
+ test -f inst/foo/sub/libnobase.la
+ test ! -f inst/foo/libnobase.la
+ test -f inst/foo/libbase.la
EOF
mkdir sub
@@ -66,43 +96,8 @@
./configure --prefix `pwd`/inst
$MAKE
-$MAKE install-data
-
-test -f inst/foo/sub/nobase.h
-test ! -f inst/foo/nobase.h
-test -f inst/foo/base.h
-
-test -f inst/foo/sub/nobase.dat
-test ! -f inst/foo/nobase.dat
-test -f inst/foo/base.dat
-
-test ! -f inst/foo/sub/nobase.sh
-test ! -f inst/foo/base.sh
-test ! -f inst/foo/sub/nobase
-test ! -f inst/foo/base
-test ! -f inst/foo/sub/libnobase.a
-test ! -f inst/foo/libbase.a
-test ! -f inst/foo/sub/libnobase.la
-test ! -f inst/foo/libbase.la
-
-$MAKE install-exec
-
-test -f inst/foo/sub/nobase.sh
-test ! -f inst/foo/nobase.sh
-test -f inst/foo/base.sh
-
-test -f inst/foo/sub/nobase
-test ! -f inst/foo/nobase
-test -f inst/foo/base
-
-test -f inst/foo/sub/libnobase.a
-test ! -f inst/foo/libnobase.a
-test -f inst/foo/libbase.a
-
-test -f inst/foo/sub/libnobase.la
-test ! -f inst/foo/libnobase.la
-test -f inst/foo/libbase.la
-
+$MAKE test-install-data
+$MAKE test-install-exec
$MAKE uninstall
test `find inst/foo -type f -print | wc -l` = 0
--
Alexandre Duret-Lutz
- FYI: use $(EXEEXT) in nobase.test,
Alexandre Duret-Lutz <=