freebsd-dev/usr.bin/diff/tests/Makefile
Kyle Evans e68edb8cf0 diff(1): Implement -B/--ignore-blank-lines
As noted by cem in r338035, coccinelle invokes diff(1) with the -B flag.
This was not previously implemented here, so one was forced to create a link
for GNU diff to /usr/local/bin/diff

Implement the -B flag and add some primitive tests for it. It is implemented
in the same fashion that -I is implemented; each chunk's lines are scanned,
and if a non-blank line is encountered then the chunk will be output.
Otherwise, it's skipped.

MFC after:	2 weeks
2018-08-19 03:57:20 +00:00

43 lines
684 B
Makefile

# $FreeBSD$
PACKAGE= tests
ATF_TESTS_SH= diff_test
${PACKAGE}FILES+= \
Bflag_C.out \
Bflag_D.out \
Bflag_F.out \
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/`basename $$0`/g'
ATF_TESTS_SH_SRC_netbsd_diff_test= t_diff.sh
.include <netbsd-tests.test.mk>
.include <bsd.test.mk>