# Openswan testing makefile
# Copyright (C) 2002 Michael Richardson <mcr@freeswan.org>
# 
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
# 
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.

OPENSWANSRCDIR?=$(shell cd ../..; pwd)
srcdir:=./
export OPENSWANSRCDIR
include $(OPENSWANSRCDIR)/Makefile.inc

SUBDIRS=
UTILS=${OPENSWANSRCDIR}/testing/utils

def:
	@echo "Please read doc/intro.html or INSTALL before running make"
	@false

check: 	${OPENSWANSRCDIR}/umlsetup.sh
	. ${OPENSWANSRCDIR}/umlsetup.sh; . ./setup.sh; . ${UTILS}/functions.sh; . ./TESTLIST

spotcheck:
	@. ${OPENSWANSRCDIR}/umlsetup.sh; . ./setup.sh; . $${UTILS}/functions.sh; eval `sed -e '/^#/d' ${srcdir}TESTLIST | perl $${UTILS}/shuffle.pl 1`

install install_file_list checkprograms programs:
	@true

clean:
	grep -v '^#' ${srcdir}TESTLIST | while read testtype name status; \
	do\
		rm -rf $$name/OUTPUT; \
	done

cleanall: clean

distclean: clean

mostlyclean: clean

realclean: clean

#
# $Log: Makefile,v $
# Revision 1.9  2005/09/29 02:05:50  mcr
# 	adjusted to make srcdir work right for tests
#
# Revision 1.8  2005/08/25 18:17:54  mcr
# 	added ${srcdir} to find TESTLIST.
#
# Revision 1.7  2004/12/18 18:13:45  mcr
# 	adjusted Makefiles so that ${OBJDIR} builds work.
#
# Revision 1.6  2004/04/03 19:44:51  ken
# FREESWANSRCDIR -> OPENSWANSRCDIR (patch by folken)
#
# Revision 1.5  2003/02/17 02:34:38  mcr
# 	adjusted "make clean" target in Makefiles.
#
# Revision 1.4  2002/11/01 02:28:29  mcr
# 	added "make spotcheck" which runs a randomly selected
# 	test from the TESTLIST.
#
# Revision 1.3  2002/08/08 01:52:32  mcr
# 	the "make clean" script should ignore comments in the TESTLIST.
#
# Revision 1.2  2002/06/19 09:22:23  mcr
# 	enable pluto tests by default.
#
# Revision 1.1  2002/06/19 07:16:23  mcr
# 	first prototype of 2-UML tests for pluto.
#
# Revision 1.1  2002/06/08 17:41:22  mcr
# 	library test routines.
#
# 



