-# $OpenBSD: Makefile,v 1.26 2008/03/10 20:03:21 tobias Exp $
+# $OpenBSD: Makefile,v 1.27 2010/07/13 20:47:56 nicm Exp $
# Regression tests by Niall O'Higgins <niallo@openbsd.org> and
# Tobias Stoeckmann <tobias@openbsd.org>.
cvs-log \
cvs-rlog \
cvs-rtag-one_more_branch \
- cvs-export
+ cvs-export \
+ cvs-merge
# Known to fail.
# cvs-update-for_subdir
# cvs-release-dflag
test ! -f ${REGRESS_SEED}/seed1.txt && \
test ! -f ${REGRESS_SEED}/seed2.txt
+test-cvs-merge:
+ @rm -rf ${REGRESS_WCOPY}
+ @mkdir -p ${REGRESS_WCOPY}/a ${REGRESS_WCOPY}/b
+ @cd ${REGRESS_WCOPY}/a; \
+ ${CVSCMD} -Q -d ${MYCVSROOT} co seed > /dev/null
+ @cd ${REGRESS_WCOPY}/b; \
+ ${CVSCMD} -Q -d ${MYCVSROOT} co seed > /dev/null
+ @echo "modified text" > ${REGRESS_WCOPY}/a/seed/seed1.txt
+ @cd ${REGRESS_WCOPY}/a/seed && ${CVSCMD} -Q com -m 'a' > /dev/null
+ @echo "modified text 2" > ${REGRESS_WCOPY}/b/seed/seed1.txt
+ @cd ${REGRESS_WCOPY}/b/seed && ${CVSCMD} -Q up > /dev/null 2>&1
+ @echo "modified text" > ${REGRESS_WCOPY}/b/seed/seed1.txt
+ @cd ${REGRESS_WCOPY}/b/seed && test `${CVSCMD} -q up | wc -l` -eq 0
+
clean:
@rm -rf ${CLEANFILES}