Baptiste Daroussin fddcb7b82f Implement a basic --changed-group-format
etcupdate(8) requires that option, while GNU diff supports many more variation
of that options, their behaviour beside the simple verion implemented here are
quite inconsistent as such I do not plan to implement those.

The only special keyword supported by this implementation are: %< and %>
%= is not implemented as the documentation of GNU diff says: common lines, but
it actually when tested print the changes from the first file
2017-04-20 14:22:33 +00:00

40 lines
641 B
Makefile

# $FreeBSD$
PACKAGE= tests
ATF_TESTS_SH= diff_test
${PACKAGE}FILES+= \
input1.in \
input2.in \
input_c1.in \
input_c2.in \
simple.out \
simple_e.out \
simple_n.out \
simple_u.out \
simple_i.out \
simple_w.out \
simple_b.out \
simple_p.out \
unified_p.out \
unified_c9999.out \
unified_9999.out \
header.out \
header_ns.out \
ifdef.out \
group-format.out
NETBSD_ATF_TESTS_SH+= netbsd_diff_test
${PACKAGE}FILES+= \
d_mallocv1.in \
d_mallocv2.in
ATF_TESTS_SH_SED_netbsd_diff_test+= -e 's,t_diff,netbsd_diff_test,g'
ATF_TESTS_SH_SRC_netbsd_diff_test= t_diff.sh
.include <netbsd-tests.test.mk>
.include <bsd.test.mk>