PERFORCE change 178119 for review

Garrett Cooper gcooper at FreeBSD.org
Tue May 11 21:23:49 UTC 2010


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

Change 178119 by gcooper at starr-bastion on 2010/05/11 21:22:57

	Add dependency tests.

Affected files ...

.. //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/tools/regression/usr.sbin/pkg_install/create/testplan#4 edit

Differences ...

==== //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/tools/regression/usr.sbin/pkg_install/create/testplan#4 (text+ko) ====

@@ -61,6 +61,46 @@
 		       missing directory will be created when the mtree file
 		       is parsed and evaluated.
 
+Dependencies.
+
+	Dependencies - fulfilled dependency:
+	- Type: Positive
+	- Setup: Create basic comments, description. Set the dependency for
+		 package A on package B. Create packages A and B.
+	- Test: Install package.
+	- PF Criteria: Packages A and B will be created with a package list
+		       containing the dummy files. Package A will be installed
+		       after package B is installed due to the fulfilled
+		       dependency order. The mode will be kosher as usual
+		       (00644).
+
+	Dependencies - missing dependency:
+	- Type: Negative
+	- Setup: Create basic comments, description, etc. Add a dependency on
+		 for package A on package B.
+	- Test: Attempt to install package A.
+	- PF Criteria: The packages will be created with the given prescribed
+		       contents; when the package A install attempt is tried,
+		       the install will fail because the dependency (package B)
+		       is unfulfilled.
+
+	Dependencies - short circular dependency:
+	- Type: Negative
+	- Setup: Create a basic comment, description, etc, and create a
+		 package. Create a dependency with A upon itself.
+	- Test: Attempt to create package.
+	- PF Criteria: Package creation will fail citing the circular
+		       dependency.
+
+	Dependencies - inherited circular dependency:
+	- Type: Negative
+	- Setup: Create packages A, B, and C. Create a dependency with A upon
+		 B, B upon C, and C upon A. Create packages.
+	- Test: Attempt to install packages.
+	- PF Criteria: Package creation will succeed for packages A, B, and C,
+		       but the package installations will fail citing the
+		       circular dependency in the set.
+
 Conflicts.
 
 	Conflicts - No install:


More information about the p4-projects mailing list