summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-09-25 19:39:48 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-09-26 01:16:58 +0100
commit86c44593c1e834384749f81b89b99c5a865b4627 (patch)
treec01d7824be0f0cecb763b3601628ee242786bb5e
parent57fe9181f58d6a311dd105283eff2be055de26b6 (diff)
Test suite: Add spelling test
Fail this test if the tree contains the misspelling of "pseudo". Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r--debian/tests/control5
-rwxr-xr-xtests/tests/spelling16
2 files changed, 21 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control
index a312861..e227e2b 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -16,6 +16,11 @@ Tests-Directory: tests/tests
Depends: dgit, dgit-infrastructure, devscripts, sbuild
Restrictions: x-dgit-schroot-build
+Tests: spelling
+Tests-Directory: tests/tests
+Depends: dgit, dgit-infrastructure, devscripts
+Restrictions: x-dgit-git-only
+
Tests: build-modes build-modes-asplit build-modes-gbp-asplit clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast inarchivecopy newtag-clone-nogit oldtag-clone-nogit push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-gbp-build-modes quilt-singlepatch rpush tag-updates test-list-uptodate trustingpolicy-replay
Tests-Directory: tests/tests
Depends: dgit, dgit-infrastructure, devscripts
diff --git a/tests/tests/spelling b/tests/tests/spelling
new file mode 100755
index 0000000..74541b7
--- /dev/null
+++ b/tests/tests/spelling
@@ -0,0 +1,16 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+t-restrict x-dgit-git-only
+
+cd $root
+
+set +e
+git grep -q -i 'ps[u]edo'
+rc=$?
+set -e
+
+test $rc = 1
+
+echo ok.