pkg_lint_summary: -l is mandatory option
+1 regression test for pkg_lint_summary
This commit is contained in:
parent
a75ea9e8c9
commit
3349d3c2f3
3 changed files with 15 additions and 1 deletions
|
@ -29,6 +29,7 @@
|
|||
#use "power_getopt.awk"
|
||||
#use "psu_funcs.awk"
|
||||
#use "has_prefix.awk"
|
||||
#use "exitnow.awk"
|
||||
|
||||
############################################################
|
||||
#.begin-str help
|
||||
|
@ -37,7 +38,7 @@
|
|||
# pkg_cmp_summary [OPTIONS] [files...]
|
||||
# OPTIONS:
|
||||
# -h|--help display this help
|
||||
# -l checks for REQUIRES/PROVIDES consistency
|
||||
# -l checks REQUIRES/PROVIDES fields
|
||||
#.end-str
|
||||
############################################################
|
||||
|
||||
|
@ -48,6 +49,12 @@ BEGIN {
|
|||
|
||||
opt_l = getarg("l")
|
||||
cnt = 0
|
||||
|
||||
if (!opt_l){
|
||||
print "One of the following options should be applied: -l" \
|
||||
> "/dev/stderr"
|
||||
exitnow(1)
|
||||
}
|
||||
}
|
||||
|
||||
/^PKGNAME=/{
|
||||
|
|
|
@ -1255,6 +1255,9 @@ runawk>=0.14.3 pkg_conflicts-0.4.0
|
|||
runawk>=0.16.0 paexec-0.13.0nb1
|
||||
runawk>=0.16.0 pkg_summary-utils-0.35rc1
|
||||
--------------------------------------------------
|
||||
------- pkg_lint_summary #21.0
|
||||
MandatoryOptionErrorMessage
|
||||
--------------------------------------------------
|
||||
------- pkg_lint_summary #21.1
|
||||
l: not_found /usr/pkg/lib/libmaa.so.2 wip/dict-client:dict-client-1.11.2
|
||||
l: not_found /usr/pkg/lib/libz.so.1 wip/dict-client:dict-client-1.11.2
|
||||
|
|
|
@ -373,6 +373,10 @@ echo '--------------------------------------------------'
|
|||
echo '------- pkg_summary2deps #20.3'
|
||||
pkg_summary2deps -ArR bin_summary1.txt | sort
|
||||
|
||||
echo '--------------------------------------------------'
|
||||
echo '------- pkg_lint_summary #21.0'
|
||||
pkg_lint_summary bin_summary1.txt 2>&1 | sort |
|
||||
sed 's/^One of the.*$/MandatoryOptionErrorMessage/'
|
||||
echo '--------------------------------------------------'
|
||||
echo '------- pkg_lint_summary #21.1'
|
||||
pkg_lint_summary -l bin_summary1.txt | sort
|
||||
|
|
Loading…
Reference in a new issue