summaryrefslogtreecommitdiffstats
path: root/tools/regression/nfsmmap/test1/Makefile
blob: 07c3445fe7c498773d53b92411ea01caf66a67af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $FreeBSD$

PROG= test1
NO_MAN=
NFSSERVER?= herring.nlsystems.com
CLEANFILES= test1.zeros test1.good test1.data test1.scratch

all: test1 test1.zeros test1.good
	@cp ${.OBJDIR}/test1.zeros ${.OBJDIR}/test1.data
	@if [ `hostname` != ${NFSSERVER} ] ; then \
		ssh ${NFSSERVER} touch ${.OBJDIR}/test1.data; \
	fi
	@cd ${.OBJDIR}; ${.OBJDIR}/test1
	@if cmp -s ${.OBJDIR}/test1.data ${.OBJDIR}/test1.good && \
	   cmp -s ${.OBJDIR}/test1.scratch ${.OBJDIR}/test1.good ; then \
		echo passed; \
	else \
		echo failed; \
	fi

test1.zeros: test1.zeros.uu
	uudecode $?

test1.good: test1.good.uu
	uudecode $?

.include <bsd.prog.mk>
OpenPOWER on IntegriCloud