From e7ef3464450bfa60bcad7474a2e51ea71aa4916c Mon Sep 17 00:00:00 2001 From: Aleksey Cheusov Date: Thu, 25 Mar 2010 21:00:29 +0000 Subject: [PATCH] regression test for "pkg_grep_summary -S" --- pkg_summary-utils/files/tests/test.out | 36 ++++++++++++++++++++++++++ pkg_summary-utils/files/tests/test.sh | 8 +++--- 2 files changed, 40 insertions(+), 4 deletions(-) diff --git a/pkg_summary-utils/files/tests/test.out b/pkg_summary-utils/files/tests/test.out index 02474784bb..b53cd870d3 100644 --- a/pkg_summary-utils/files/tests/test.out +++ b/pkg_summary-utils/files/tests/test.out @@ -248,6 +248,42 @@ COMMENT=Apache 2 module LDAP Virtual Hosts support MAINTAINER=imil@gcu.info CATEGORIES=www databases +-------------------------------------------------- +------- args: 'pkg_grep_summary' '-S' 'PKGPATH' 'pkgs.txt' +PKGNAME=distbb-0.22.0 +PKGPATH=wip/distbb +DEPENDS=pkg_summary-utils>=0.18.1:../../wip/pkg_summary-utils paexec>=0.10.0:../../wip/paexec runawk>=0.13.0:../../wip/runawk +BUILD_DEPENDS= checkperms>=1.1:../../sysutils/checkperms +HOMEPAGE=http://mova.org/~cheusov/pub/distbb/ +COMMENT=DISTributed Bulk Build tool for pkgsrc +MAINTAINER=cheusov@tut.by +CATEGORIES=pkgtools +EXFIELD=XVALUE1 + +BUILD_DEPENDS= libtool-base>=1.5.18nb5:../../devel/libtool-base gmake>=3.81:../../devel/gmake checkperms>=1.1:../../sysutils/checkperms +PKGNAME=dict-server-1.10.11nb2 +PKGPATH=wip/dict-server +DEPENDS= libmaa>=1.2:../../devel/libmaa +HOMEPAGE=http://www.dict.org/ +COMMENT=Dictionary Service Protocol server +MAINTAINER=cheusov@tut.by +CATEGORIES=textproc + +PKGNAME=png-1.2.32beta01 +PKGPATH=graphics/png +BUILD_DEPENDS= libtool-base>=1.5.18nb5:../../devel/libtool-base checkperms>=1.1:../../sysutils/checkperms +HOMEPAGE=http://www.libpng.org/pub/png/ +COMMENT=Library for manipulating PNG images +MAINTAINER=wiz@NetBSD.org +CATEGORIES=graphics + +PKGNAME=ap2-vhost-ldap-1.2.0nb1 +PKGPATH=www/ap2-vhost-ldap:PKG_APACHE=apache2 +HOMEPAGE=http://packages.qa.debian.org/m/mod-vhost-ldap.html +COMMENT=Apache 2 module LDAP Virtual Hosts support +MAINTAINER=imil@gcu.info +CATEGORIES=www databases + -------------------------------------------------- ------- pkg_cmp_summary #1.1 - ap2-vhost-ldap 1.2.0nb1 diff --git a/pkg_summary-utils/files/tests/test.sh b/pkg_summary-utils/files/tests/test.sh index 87bb5fca56..86268586ef 100755 --- a/pkg_summary-utils/files/tests/test.sh +++ b/pkg_summary-utils/files/tests/test.sh @@ -65,10 +65,10 @@ runtest pkg_grep_summary -s PKGPATHe www/ap22-vhost-ldap:PKG_APACHE=apache22 \ runtest pkg_grep_summary -s PKGPATHe www/ap2-vhost-ldap:PKG_APACHE=apache2 \ < src_summary.txt -runtest pkg_grep_summary -s PKGPATH www/ap22-vhost-ldap \ - < src_summary.txt -runtest pkg_grep_summary -s PKGPATH www/ap2-vhost-ldap \ - < src_summary.txt +runtest pkg_grep_summary -s PKGPATH www/ap22-vhost-ldap < src_summary.txt +runtest pkg_grep_summary -s PKGPATH www/ap2-vhost-ldap < src_summary.txt + +runtest pkg_grep_summary -S PKGPATH pkgs.txt < src_summary.txt