From owner-svn-src-head@freebsd.org Sat Oct 20 18:18:30 2018 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E887BFEFDB7; Sat, 20 Oct 2018 18:18:29 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8EC7A8050F; Sat, 20 Oct 2018 18:18:29 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 69F47219CC; Sat, 20 Oct 2018 18:18:29 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w9KIITuR035271; Sat, 20 Oct 2018 18:18:29 GMT (envelope-from kp@FreeBSD.org) Received: (from kp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w9KIISM0035268; Sat, 20 Oct 2018 18:18:28 GMT (envelope-from kp@FreeBSD.org) Message-Id: <201810201818.w9KIISM0035268@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kp set sender to kp@FreeBSD.org using -f From: Kristof Provost Date: Sat, 20 Oct 2018 18:18:28 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r339466 - in head/sbin/pfctl/tests: . files X-SVN-Group: head X-SVN-Commit-Author: kp X-SVN-Commit-Paths: in head/sbin/pfctl/tests: . files X-SVN-Commit-Revision: 339466 X-SVN-Commit-Repository: base 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.29 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, 20 Oct 2018 18:18:30 -0000 Author: kp Date: Sat Oct 20 18:18:28 2018 New Revision: 339466 URL: https://svnweb.freebsd.org/changeset/base/339466 Log: pfctl tests: Basic test case for PR 231323 PR: 231323 MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D17508 Added: head/sbin/pfctl/tests/files/pf1005.in (contents, props changed) head/sbin/pfctl/tests/files/pf1005.ok (contents, props changed) Modified: head/sbin/pfctl/tests/files/pfctl_test_descr.sh head/sbin/pfctl/tests/pfctl_test.sh Added: head/sbin/pfctl/tests/files/pf1005.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sbin/pfctl/tests/files/pf1005.in Sat Oct 20 18:18:28 2018 (r339466) @@ -0,0 +1,3 @@ +rdr on em0 proto tcp from any to any -> 1.1.1.1 port 2121 +pass out log quick on lo0 route-to lo0 from any to any +pass in log quick on lo0 route-to (lo0 localhost) from any to any Added: head/sbin/pfctl/tests/files/pf1005.ok ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sbin/pfctl/tests/files/pf1005.ok Sat Oct 20 18:18:28 2018 (r339466) @@ -0,0 +1,2 @@ +pass out log quick on lo0 route-to (lo0 ?) all flags S/SA keep state +pass in log quick on lo0 route-to (lo0 ::1) inet6 all flags S/SA keep state Modified: head/sbin/pfctl/tests/files/pfctl_test_descr.sh ============================================================================== --- head/sbin/pfctl/tests/files/pfctl_test_descr.sh Sat Oct 20 18:13:51 2018 (r339465) +++ head/sbin/pfctl/tests/files/pfctl_test_descr.sh Sat Oct 20 18:18:28 2018 (r339466) @@ -79,3 +79,4 @@ pf1001_descr () { echo "Binat" ; } pf1002_descr () { echo "Set timeout interval" ; } pf1003_descr () { echo "ALTQ" ; } pf1004_descr () { echo "ALTQ with Codel" ; } +pf1005_descr () { echo "PR 231323" ; } Modified: head/sbin/pfctl/tests/pfctl_test.sh ============================================================================== --- head/sbin/pfctl/tests/pfctl_test.sh Sat Oct 20 18:13:51 2018 (r339465) +++ head/sbin/pfctl/tests/pfctl_test.sh Sat Oct 20 18:18:28 2018 (r339466) @@ -22,7 +22,7 @@ pftests="0001 0002 0003 0004 0005 0006 0007 0008 0009 0032 0034 0035 0038 0039 0040 0041 0047 0048 0049 0050 0052 0053 0055 0056 0057 0060 0061 0065 0067 0069 0070 0071 0072 0074 0075 0077 0078 0079 0081 0082 0084 0085 0087 0088 0089 0090 0091 0092 0094 0095 0096 -0097 0098 0100 0101 0102 0104 1001 1002 1003 1004" +0097 0098 0100 0101 0102 0104 1001 1002 1003 1004 1005" . $(atf_get_srcdir)/files/pfctl_test_descr.sh