From f2d045a359383530d700068fbbb0dc5d4ce1f1da Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Mon, 2 Oct 2006 04:33:54 +0000 Subject: added test target in makefile, scripts return nonzero on failure git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1351 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- nad/Makefile.am | 4 ++++ nad/Makefile.in | 5 +++++ nad/test27 | 2 ++ nad/test83 | 2 ++ nad/testvarious | 2 ++ 5 files changed, 15 insertions(+) (limited to 'nad') diff --git a/nad/Makefile.am b/nad/Makefile.am index 6003b607..00f65136 100644 --- a/nad/Makefile.am +++ b/nad/Makefile.am @@ -29,3 +29,7 @@ install-data-local: done +test: + ./test27 + ./test83 + ./testvarious diff --git a/nad/Makefile.in b/nad/Makefile.in index cf801d50..638788c5 100644 --- a/nad/Makefile.in +++ b/nad/Makefile.in @@ -368,6 +368,11 @@ install-data-local: $(INSTALL_DATA) $$gridfile $(DESTDIR)$(pkgdatadir)/$$gridfile; \ fi; \ done + +test: + ./test27 + ./test83 + ./testvarious # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff --git a/nad/test27 b/nad/test27 index 4ded6904..3774116c 100755 --- a/nad/test27 +++ b/nad/test27 @@ -816,8 +816,10 @@ if [ $? -ne 0 ] ; then echo "" echo "PROBLEMS HAVE OCCURED" echo "test file ${OUT} saved" + exit 100 else echo "TEST OK" echo "test file ${OUT} removed" /bin/rm -f ${OUT} + exit 0 fi diff --git a/nad/test83 b/nad/test83 index 1237a326..6465c183 100755 --- a/nad/test83 +++ b/nad/test83 @@ -696,8 +696,10 @@ if [ $? -ne 0 ] ; then echo "" echo "PROBLEMS HAVE OCCURED" echo "test file ${OUT} saved" + exit 100 else echo "TEST OK" echo "test file ${OUT} removed" /bin/rm -f ${OUT} + exit 0 fi diff --git a/nad/testvarious b/nad/testvarious index 8af592d6..53d36cc5 100755 --- a/nad/testvarious +++ b/nad/testvarious @@ -150,8 +150,10 @@ if [ $? -ne 0 ] ; then echo "" echo "PROBLEMS HAVE OCCURED" echo "test file ${OUT} saved" + exit 100 else echo "TEST OK" echo "test file ${OUT} removed" /bin/rm -f ${OUT} + exit 0 fi -- cgit v1.2.3