From owner-svn-src-head@FreeBSD.ORG Sat May 2 12:08:30 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 677C1917; Sat, 2 May 2015 12:08:30 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48703128E; Sat, 2 May 2015 12:08:30 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t42C8UXw025575; Sat, 2 May 2015 12:08:30 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t42C8S28025567; Sat, 2 May 2015 12:08:28 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201505021208.t42C8S28025567@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Sat, 2 May 2015 12:08:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r282339 - in head: etc/mtree usr.bin/col usr.bin/col/tests X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 May 2015 12:08:30 -0000 Author: bapt Date: Sat May 2 12:08:28 2015 New Revision: 282339 URL: https://svnweb.freebsd.org/changeset/base/282339 Log: Add regression test about reverse line feed to col(1) Added: head/usr.bin/col/tests/ head/usr.bin/col/tests/Makefile (contents, props changed) head/usr.bin/col/tests/col.sh (contents, props changed) head/usr.bin/col/tests/rlf.in (contents, props changed) head/usr.bin/col/tests/rlf2.in (contents, props changed) Modified: head/etc/mtree/BSD.tests.dist head/usr.bin/col/Makefile Modified: head/etc/mtree/BSD.tests.dist ============================================================================== --- head/etc/mtree/BSD.tests.dist Sat May 2 11:09:58 2015 (r282338) +++ head/etc/mtree/BSD.tests.dist Sat May 2 12:08:28 2015 (r282339) @@ -514,6 +514,8 @@ .. cmp .. + col + .. comm .. cut Modified: head/usr.bin/col/Makefile ============================================================================== --- head/usr.bin/col/Makefile Sat May 2 11:09:58 2015 (r282338) +++ head/usr.bin/col/Makefile Sat May 2 12:08:28 2015 (r282339) @@ -1,6 +1,12 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 # $FreeBSD$ +.include + PROG= col +.if ${MK_TESTS} != "no" +SUBDIR+= tests +.endif + .include Added: head/usr.bin/col/tests/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/col/tests/Makefile Sat May 2 12:08:28 2015 (r282339) @@ -0,0 +1,11 @@ +# $FreeBSD$ + +TESTSDIR= ${TESTSBASE}/usr.bin/col + +ATF_TESTS_SH= col + +FILES= rlf.in \ + rlf2.in +FILESDIR= ${TESTSDIR} + +.include Added: head/usr.bin/col/tests/col.sh ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/col/tests/col.sh Sat May 2 12:08:28 2015 (r282339) @@ -0,0 +1,39 @@ +# $FreeBSD$ + +atf_test_case rlf + +rlf_head() +{ + atf_set "descr" "testing reverse line feed" +} +rlf_body() +{ + atf_check \ + -o inline:"a b\n" \ + -e empty \ + -s exit:0 \ + col < $(atf_get_srcdir)/rlf.in + + atf_check \ + -o inline:"a b3\n" \ + -e empty \ + -s exit:0 \ + col < $(atf_get_srcdir)/rlf2.in + + atf_check \ + -o inline:"a b3\n" \ + -e empty \ + -s exit:0 \ + col -x < $(atf_get_srcdir)/rlf2.in + + atf_check \ + -o inline:"a b3\n" \ + -e empty \ + -s exit:0 \ + col -p < $(atf_get_srcdir)/rlf2.in +} + +atf_init_test_cases() +{ + atf_add_test_case rlf +} Added: head/usr.bin/col/tests/rlf.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/col/tests/rlf.in Sat May 2 12:08:28 2015 (r282339) @@ -0,0 +1,2 @@ +a + 7b Added: head/usr.bin/col/tests/rlf2.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/usr.bin/col/tests/rlf2.in Sat May 2 12:08:28 2015 (r282339) @@ -0,0 +1,2 @@ +a + 7b