Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 May 2010 21:51:16 GMT
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 178120 for review
Message-ID:  <201005112151.o4BLpGE1082999@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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...
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005112151.o4BLpGE1082999>