Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/diff/tests/diff_test.sh
| Show First 20 Lines • Show All 376 Lines • ▼ Show 20 Lines | |||||
| { | { | ||||
| atf_check mkdir -p a/foo/bar | atf_check mkdir -p a/foo/bar | ||||
| atf_check ln -s .. a/foo/bar/up | atf_check ln -s .. a/foo/bar/up | ||||
| atf_check cp -a a b | atf_check cp -a a b | ||||
| atf_check \ | atf_check \ | ||||
| -e match:"a/foo/bar/up: Directory loop detected" \ | -e match:"a/foo/bar/up: Directory loop detected" \ | ||||
| -e match:"b/foo/bar/up: Directory loop detected" \ | -e match:"b/foo/bar/up: Directory loop detected" \ | ||||
| diff -r a b | diff -r a b | ||||
| atf_check rm [ab]/foo/bar/up | |||||
| atf_check mkdir -p b/foo/bar | |||||
| atf_check ln -s foo a/baz | |||||
| atf_check ln -s foo b/baz | |||||
| atf_check diff -r a b | |||||
| } | } | ||||
| bigc_head() | bigc_head() | ||||
| { | { | ||||
| atf_set "descr" "Context diff with very large context" | atf_set "descr" "Context diff with very large context" | ||||
| } | } | ||||
| bigc_body() | bigc_body() | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines | |||||