PERFORCE change 178120 for review

Garrett Cooper gcooper at FreeBSD.org
Tue May 11 21:51:17 UTC 2010


http://p4web.freebsd.org/@@178120?ac=10

Change 178120 by gcooper at 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...
 


More information about the p4-projects mailing list