From owner-svn-src-stable-11@freebsd.org Wed Mar 22 01:04:22 2017 Return-Path: Delivered-To: svn-src-stable-11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 454B0D1691A; Wed, 22 Mar 2017 01:04:22 +0000 (UTC) (envelope-from ngie@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 mx1.freebsd.org (Postfix) with ESMTPS id EBE6012E2; Wed, 22 Mar 2017 01:04:21 +0000 (UTC) (envelope-from ngie@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v2M14L5P020488; Wed, 22 Mar 2017 01:04:21 GMT (envelope-from ngie@FreeBSD.org) Received: (from ngie@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v2M14Ke7020487; Wed, 22 Mar 2017 01:04:20 GMT (envelope-from ngie@FreeBSD.org) Message-Id: <201703220104.v2M14Ke7020487@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ngie set sender to ngie@FreeBSD.org using -f From: Ngie Cooper Date: Wed, 22 Mar 2017 01:04:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r315695 - in stable/11: etc/mtree lib/libcam lib/libcam/tests X-SVN-Group: stable-11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-11@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for only the 11-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2017 01:04:22 -0000 Author: ngie Date: Wed Mar 22 01:04:20 2017 New Revision: 315695 URL: https://svnweb.freebsd.org/changeset/base/315695 Log: MFC r315320: Start adding basic tests for cam(3) This change contains several negative and positive tests for: - cam_open_device - cam_close_device - cam_getccb - cam_freeccb This also contains a test for the failure case noted in bug 217649, i.e., O_RDWR must be specified because pass(4) requires it. This test unfortunately cannot assume that cam-capable devices are present, so the user must explicitly provide a device via `test_suites.FreeBSD.cam_test_device`. In the future, a test kernel module might be shipped, or ctl(4) might be used, as a test device when testing out libcam, which will allow the tests to do away with having to specify an explicit test device. Added: stable/11/lib/libcam/tests/ - copied from r315320, head/lib/libcam/tests/ Modified: stable/11/etc/mtree/BSD.tests.dist stable/11/lib/libcam/Makefile Directory Properties: stable/11/ (props changed) Modified: stable/11/etc/mtree/BSD.tests.dist ============================================================================== --- stable/11/etc/mtree/BSD.tests.dist Wed Mar 22 00:50:36 2017 (r315694) +++ stable/11/etc/mtree/BSD.tests.dist Wed Mar 22 01:04:20 2017 (r315695) @@ -308,6 +308,8 @@ ttyio .. .. + libcam + .. libcrypt .. libdevdctl Modified: stable/11/lib/libcam/Makefile ============================================================================== --- stable/11/lib/libcam/Makefile Wed Mar 22 00:50:36 2017 (r315694) +++ stable/11/lib/libcam/Makefile Wed Mar 22 01:04:20 2017 (r315695) @@ -43,4 +43,10 @@ CFLAGS+= -I${.CURDIR} -I${SRCTOP}/sys SHLIB_MAJOR= 7 +.include + +.if ${MK_TESTS} != "no" +SUBDIR+= tests +.endif + .include