opnsense-src/usr.bin/diff/tests
Dag-Erling Smørgrav d9a9f23d0b diff: Integrate libdiff from OpenBSD GoT.
This adds support for two new diff algorithms, Myers diff and Patience
diff.

These algorithms perform a different form of search compared to the
classic Stone algorithm and support escapes when worst case scenarios
are encountered.

Add the -A flag to allow selection of the algorithm, but default to
using the new Myers diff implementation.

The libdiff implementation currently only supports a subset of input and
output options supported by diff.  When these options are used, but the
algorithm is not selected, automatically fallback to the classic Stone
algorithm until support for these modes can be added.

Based on work originally done by thj@ with contributions from kevans@.

Sponsored by:	Klara, Inc.
Reviewed by:	thj
Differential Revision:	https://reviews.freebsd.org/D44302
2024-03-27 11:03:33 +01:00
..
Bflag_C.out diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
Bflag_D.out diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
Bflag_F.out diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diff_test.sh diff: Integrate libdiff from OpenBSD GoT. 2024-03-27 11:03:33 +01:00
functionname.in diff: Detect Objective-C methods 2022-02-18 15:09:57 +00:00
functionname_c.in diff: Detect Objective-C methods 2022-02-18 15:09:57 +00:00
functionname_c.out diff: Detect Objective-C methods 2022-02-18 15:09:57 +00:00
functionname_objcclassm.in diff: Detect Objective-C methods 2022-02-18 15:09:57 +00:00
functionname_objcclassm.out diff: Detect Objective-C methods 2022-02-18 15:09:57 +00:00
functionname_objcm.in diff: Detect Objective-C methods 2022-02-18 15:09:57 +00:00
functionname_objcm.out diff: Detect Objective-C methods 2022-02-18 15:09:57 +00:00
group-format.out Implement a basic --changed-group-format 2017-04-20 14:22:33 +00:00
header.out diff: Fix mtime of file1 in -u/-c header line. 2017-03-26 14:09:25 +00:00
header_ns.out diff: Show nanoseconds in -u/-c header line. 2017-03-26 19:47:43 +00:00
ifdef.out Add a regression test for diff -D 2017-04-20 11:32:18 +00:00
input1.in
input2.in
input_c1.in
input_c2.in
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
side_by_side_tabbed_a.in diff: fix side-by-side output with tabbed input 2022-12-13 19:31:21 -06:00
side_by_side_tabbed_b.in diff: fix side-by-side output with tabbed input 2022-12-13 19:31:21 -06:00
simple.out
simple_b.out
simple_e.out
simple_i.out
simple_n.out
simple_p.out
simple_u.out
simple_w.out
strip_o.out diff: don't output carriage returns that were stripped on input 2021-08-23 07:04:28 +02:00
unified_9999.out
unified_c9999.out
unified_p.out