Date: Tue, 11 May 2010 19:57:22 GMT From: Garrett Cooper <gcooper@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 178114 for review Message-ID: <201005111957.o4BJvM06062049@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@178114?ac=10 Change 178114 by gcooper@starr-bastion on 2010/05/11 19:56:31 Add conflicts and mtree testcases. Affected files ... .. //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/tools/regression/usr.sbin/pkg_install/create/testplan#3 edit Differences ... ==== //depot/projects/soc2007/gcooper-pkg_install-enhancements-simplified/tools/regression/usr.sbin/pkg_install/create/testplan#3 (text+ko) ==== @@ -20,6 +20,94 @@ files will be added to the package with the appropriate modes (00644). +Optional package contents. + +Mtree file: + + Mtree file - no action: + - Type: Positive + - Setup: Create basic comments, description, and mtree files; create + dummy files; add dummy files to package list. + - Test: Attempt to create package. + - PF Criteria: Package will be created with a package list containing + the dummy files, and the mtree file; the associated + comments, description, and mtree files will be added to + the package with the appropriate modes (00644). + + Mtree file - ownership and permissions modifications: + - Type: Positive + - Setup: Create basic comments, description, and mtree files (in + particular add particular user and group ownership bits, mode + bits, etc); create dummy files; add dummy files to package + list. + - Test: Attempt to create package. + - PF Criteria: Package will be created with a package list containing + the dummy files, and the mtree file; the associated + comments, description, and mtree files will be added to + the package with the ownership and appropriate modes + according to the mtree file. + + Mtree file - missing files: + - Type: Positive + - Setup: Create basic comments, description, and mtree files (in + particular add a directory that isn't actually present in + the package itself); create dummy files; add dummy files to + package list. Create package. + - Test: Install package. + - PF Criteria: Package will be created with a package list containing + the dummy files, and the mtree file; the associated + comments, description, and mtree files will be added to + the package with the sane default mode (00644). The + missing directory will be created when the mtree file + is parsed and evaluated. + +Conflicts. + + Conflicts - No install: + - Type: Positive + - Setup: Create basic comments and description files. Add conflict for + package A to package B. + - Test: Attempt to create package A. + - PF Criteria: Package will be created with the associated comments and + description. + + Conflicts - conflict not present install: + - Type: Positive + - Setup: Create basic comments and description files. Add conflict for + package A to package B. Create both packages B and C. + - Test: Attempt to install packages B and C. + - PF Criteria: Package will be created with the appropriate data. + Installing package B will work, and installing package C + will work as well. + + Conflicts - Present conflict: + - Type: Positive + - Setup: Create basic comments and description files. Add conflict for + package A to package B. Create both packages A and B. + - Test: Attempt to install packages A and B. + - PF Criteria: Package will be created with the appropriate data. + Installing package A will work, and installing package B + will fail. + + Conflicts - Indirect conflict: + - Type: Positive + - Setup: Create packages A, B, and C. Add conflict for package A to + package C. Make package A dependent on package B, and make + package B dependent on package C. + - Test: Attempt to install packages A and B. + - PF Criteria: Packages will be created with the appropriate data. + Installing package A will work, and installing package B + will fail due to the indirect conflict between packages A + and C. + + Conflicts - self-conflicted: + - Type: Negative + - Setup: Create basic comments and description files. Add conflict for + package A to package A. + - Test: Attempt to create package A. + - PF Criteria: Package A won't be created because of the circular + self-conflict. + Tertiary functionality Backup package...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005111957.o4BJvM06062049>