summaryrefslogtreecommitdiffstats
path: root/tools/regression/nfsmmap/test2/Makefile
blob: 113a3b32defab771168cba2107e35f4b59f7b949 (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= test2
NO_MAN=
NFSSERVER?= herring.nlsystems.com
CLEANFILES= test2.zeros test2.good test2.data test2.scratch

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

test2.zeros: test2.zeros.uu
	uudecode $?

test2.good: test2.good.uu
	uudecode $?

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