From owner-p4-projects@FreeBSD.ORG Tue May 11 19:57:22 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B08CA1065670; Tue, 11 May 2010 19:57:22 +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 5CDB71065686 for ; Tue, 11 May 2010 19:57:22 +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 4A44C8FC1D for ; Tue, 11 May 2010 19:57:22 +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 o4BJvMr2062051 for ; Tue, 11 May 2010 19:57:22 GMT (envelope-from gcooper@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o4BJvM06062049 for perforce@freebsd.org; Tue, 11 May 2010 19:57:22 GMT (envelope-from gcooper@FreeBSD.org) Date: Tue, 11 May 2010 19:57:22 GMT Message-Id: <201005111957.o4BJvM06062049@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 178114 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 19:57:22 -0000 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...