summaryrefslogtreecommitdiffstats
path: root/tools/regression/nfsmmap/test1/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/nfsmmap/test1/Makefile')
-rw-r--r--tools/regression/nfsmmap/test1/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/regression/nfsmmap/test1/Makefile b/tools/regression/nfsmmap/test1/Makefile
new file mode 100644
index 0000000..54a7b9d
--- /dev/null
+++ b/tools/regression/nfsmmap/test1/Makefile
@@ -0,0 +1,25 @@
+PROG= test1
+NOMAN= t
+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