Date: Mon, 17 Jul 2017 18:07:54 +0000 (UTC) From: Ngie Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r321079 - head/usr.bin/diff/tests Message-ID: <201707171807.v6HI7sax078334@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Mon Jul 17 18:07:53 2017 New Revision: 321079 URL: https://svnweb.freebsd.org/changeset/base/321079 Log: Add tests that exercise -q, like -rq and add tests that test -q like -Nrq MFC after: 2 months MFC with: r321076, r321077, r321078 Modified: head/usr.bin/diff/tests/diff_test.sh Modified: head/usr.bin/diff/tests/diff_test.sh ============================================================================== --- head/usr.bin/diff/tests/diff_test.sh Mon Jul 17 18:06:42 2017 (r321078) +++ head/usr.bin/diff/tests/diff_test.sh Mon Jul 17 18:07:53 2017 (r321079) @@ -118,13 +118,26 @@ brief_format_body() atf_check -x "echo 2 > B/test-file" atf_check cp -Rf A C + atf_check cp -Rf A D + atf_check -x "echo 3 > D/another-test-file" + atf_check \ -s exit:1 \ -o inline:"Files A/test-file and B/test-file differ\n" \ - diff -Nrq A B + diff -rq A B - atf_check diff -Nrq A C + atf_check diff -rq A C + + atf_check \ + -s exit:1 \ + -o inline:"Only in D: another-test-file\n" \ + diff -rq A D + + atf_check \ + -s exit:1 \ + -o inline:"Files A/another-test-file and D/another-test-file differ\n" \ + diff -Nrq A D } atf_init_test_cases()
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707171807.v6HI7sax078334>