/*
 * Jmakefile for regression test suite.
 */

;# $Id: Jmakefile,v 3.0 1993/11/29 13:49:20 ram Exp $
;#
;#  Copyright (c) 1990-1993, Raphael Manfredi
;#  
;#  You may redistribute only under the terms of the Artistic License,
;#  as specified in the README file that comes with the distribution.
;#  You may reuse parts of this distribution only within the terms of
;#  that same Artistic License; a copy of which may be found at the root
;#  of the source tree for mailagent 3.0.
;#
;# $Log: Jmakefile,v $
;# Revision 3.0  1993/11/29 13:49:20  ram
;# Baseline for mailagent 3.0 netwide release.
;#

>RM
all::
	@echo "The following may take a while..."
	@echo "Don't panic if any of these tests fails and do not stop make."; \
	./TEST
	@if test -f OK; then \
		echo "Failure detected, retrying one more time, just in case..."; \
		echo "Successful tests will not be rerun but flagged as 'done'."; \
		sleep 2; \
		./TEST; \
		if test -f OK; then \
			echo "Hmm... Still failed... There might be a real problem."; \
			echo "I shall be using the plain (non dataloaded) version."; \
			sleep 2;\
			./TEST -n; \
		fi \
	fi

test:
	./TEST -i

local_clean::
	$(RM) -r out
	$(RM) OK
