build: Adjust lint tests for latest rules.

* tests/guix-lint.sh (dummy)[description]: Add failing case.
  [doc]: Adjust.
This commit is contained in:
Eric Bavier 2014-10-28 09:28:29 -05:00
parent bc36105651
commit 791e0126ae

View file

@ -37,7 +37,7 @@ cat > "$module_dir/foo.scm"<<EOF
(name "dummy") (name "dummy")
(version "42") (version "42")
(synopsis "dummy package") (synopsis "dummy package")
(description "dummy package only used for testing purposes."))) (description "dummy package. Only used for testing purposes.")))
EOF EOF
export GUIX_PACKAGE_PATH=$module_dir export GUIX_PACKAGE_PATH=$module_dir
@ -52,7 +52,7 @@ grep_warning ()
# Three issues with the dummy package: # Three issues with the dummy package:
# 1) the synopsis starts with the package name; # 1) the synopsis starts with the package name;
# 2) the synopsis starts with a lower-case letter; # 2) the synopsis starts with a lower-case letter;
# 3) the description starts with a lower-case letter. # 3) the description has a single space following the end-of-sentence period.
out=`guix lint dummy 2>&1` out=`guix lint dummy 2>&1`
if [ `grep_warning "$out"` -ne 3 ] if [ `grep_warning "$out"` -ne 3 ]