xref: /freebsd/tools/regression/nfsmmap/test2/Makefile (revision e9ac41698b2f322d55ccf9da50a3596edb2c1800)
16527fda5SDoug RabsonPROG= test2
2*3bdf7758SWarner LoshMAN=
36527fda5SDoug RabsonNFSSERVER?= herring.nlsystems.com
46527fda5SDoug RabsonCLEANFILES= test2.zeros test2.good test2.data test2.scratch
56527fda5SDoug Rabson
66527fda5SDoug Rabsonall: test2 test2.zeros test2.good
76527fda5SDoug Rabson	@cp ${.OBJDIR}/test2.zeros ${.OBJDIR}/test2.data
86527fda5SDoug Rabson	@if [ `hostname` != ${NFSSERVER} ] ; then \
96527fda5SDoug Rabson		ssh ${NFSSERVER} touch ${.OBJDIR}/test2.data; \
106527fda5SDoug Rabson	fi
116527fda5SDoug Rabson	@cd ${.OBJDIR}; ${.OBJDIR}/test2
126527fda5SDoug Rabson	@if cmp -s ${.OBJDIR}/test2.data ${.OBJDIR}/test2.good && \
136527fda5SDoug Rabson	   cmp -s ${.OBJDIR}/test2.scratch ${.OBJDIR}/test2.good ; then \
146527fda5SDoug Rabson		echo passed; \
156527fda5SDoug Rabson	else \
166527fda5SDoug Rabson		echo failed; \
176527fda5SDoug Rabson	fi
186527fda5SDoug Rabson
196527fda5SDoug Rabsontest2.zeros: test2.zeros.uu
206527fda5SDoug Rabson	uudecode $?
216527fda5SDoug Rabson
226527fda5SDoug Rabsontest2.good: test2.good.uu
236527fda5SDoug Rabson	uudecode $?
246527fda5SDoug Rabson
256527fda5SDoug Rabson.include <bsd.prog.mk>
26