From owner-p4-projects@FreeBSD.ORG Tue May 11 21:51:17 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 44059106567D; Tue, 11 May 2010 21:51:17 +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 089201065675 for ; Tue, 11 May 2010 21:51:17 +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 D18588FC0C for ; Tue, 11 May 2010 21:51:16 +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 o4BLpGlV083001 for ; Tue, 11 May 2010 21:51:16 GMT (envelope-from gcooper@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o4BLpGE1082999 for perforce@freebsd.org; Tue, 11 May 2010 21:51:16 GMT (envelope-from gcooper@FreeBSD.org) Date: Tue, 11 May 2010 21:51:16 GMT Message-Id: <201005112151.o4BLpGE1082999@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 178120 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: Tue, 11 May 2010 21:51:17 -0000 http://p4web.freebsd.org/@@178120?ac=10 Change 178120 by gcooper@starr-bastion on 2010/05/11 21:51:11 Add install script testcases. Affected files ... .. //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/tools/regression/usr.sbin/pkg_install/create/testplan#5 edit Differences ... ==== //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/tools/regression/usr.sbin/pkg_install/create/testplan#5 (text+ko) ==== @@ -22,6 +22,45 @@ Optional package contents. +*install scripts: + + *install scripts - the whole enchilada: + - Type: Positive + - Setup: Create basic comments and description files. Create a series + of scripts for testing *install states (preinstall, + postinstall, predeinstall, and postdeinstall). Create package. + - Test: Install package and delete package. + - PF Criteria: Package will be installed, with the preinstall script + being executed prior to install and the postinstall + script being executed after the install. Similarly, + when the package is deleted the predeinstall script will + be executed prior to the delete being executed and the + postdeinstall script will be executed after the package + is deleted. + + *install scripts - missing deinstall scripts: + - Type: Positive + - Setup: Create basic comments and description files. Create a series + of scripts for testing *install states (preinstall, + postinstall, predeinstall, and postdeinstall). Create package. + - Test: Install package. Delete deinstall scripts. Delete package. + - PF Criteria: Package will be installed, with the preinstall script + being executed prior to install and the postinstall + script being executed after the install. The deinstall + will fail though because the deinstall scripts are + missing. + + *install scripts - missing postdeinstall scripts: + - Type: Positive + - Setup: Create basic comments and description files. Create a series + of scripts for testing *install states (preinstall, + postinstall, predeinstall, and postdeinstall). Create package. + - Test: Install package. Delete postdeinstall script. Delete package. + - PF Criteria: Package will be installed, with the preinstall script + being executed prior to install and the postinstall + script being executed after the install. The deinstall + will fail because the deinstall script is missing. + Mtree file: Mtree file - no action: @@ -148,7 +187,7 @@ - PF Criteria: Package A won't be created because of the circular self-conflict. -Tertiary functionality +Tertiary functionality. Backup package...