From owner-p4-projects@FreeBSD.ORG Sun Apr 11 11:25:35 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 53C6D1065670; Sun, 11 Apr 2010 11:25:35 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 186DA106566B for ; Sun, 11 Apr 2010 11:25:35 +0000 (UTC) (envelope-from gcooper@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id DE4F48FC18 for ; Sun, 11 Apr 2010 11:25:34 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o3BBPY9e024365 for ; Sun, 11 Apr 2010 11:25:34 GMT (envelope-from gcooper@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o3BBPYN8024362 for perforce@freebsd.org; Sun, 11 Apr 2010 11:25:34 GMT (envelope-from gcooper@FreeBSD.org) Date: Sun, 11 Apr 2010 11:25:34 GMT Message-Id: <201004111125.o3BBPYN8024362@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gcooper@FreeBSD.org using -f From: Garrett Cooper To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 176786 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Apr 2010 11:25:35 -0000 http://p4web.freebsd.org/@@176786?ac=10 Change 176786 by gcooper@gcooper-bayonetta on 2010/04/11 11:24:37 Checkpoint one more time for tonight. Affected files ... .. //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/tools/regression/usr.sbin/pkg_install/add/testplan#3 edit Differences ... ==== //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/tools/regression/usr.sbin/pkg_install/add/testplan#3 (text+ko) ==== @@ -114,8 +114,41 @@ be rejected due to the conflict between package A and package B noted in package A. + Incomplete payload: + - Type: Negative + - Setup: Create package, but modify +CONTENTS to add more entries than + are actually present in the package. + - Test: Attempt to install package. + - PF Criteria: package will fail to install because of missing payload + entries. All of the files staged or installed will be rolled back. + + Corrupt payload: + - Type: Negative + - Setup: Create package. Flip some bits in one of the files, + effectively changing the unique signature. Repackage. + - Test: Attempt to install package. + - PF Criteria: package will fail to install because of a checksum + mismatch. All of the files staged or installed will be rolled back. + Tertiary functionality + Install into prefix... + - Precondition: the user must request that the package be installed in + a non-standard location. + + ... package exists: + - Setup: Create package which would install in /usr/local by default. + Create a directory called /tmp/package . + - Test: Install package in /tmp/package . + - PF Criteria: package contents will be installed in a path rooted at + /tmp/package + + ... non-existent prefix: + - Setup: Create package which would install in /usr/local by default. + - Test: Attempt to install package in /i/dont/exist . + - PF Criteria: package will fail to install because /i/dont/exist + doesn't exist :). + Keep remote package... - Precondition: the specified package has a valid libfetch supported URI (ftp://, http://), or a package origin / basename is specified