[Chinese-commits] [fortune-zh] 07/12: tests: add autopkgtest support
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Fri Oct 7 13:44:51 UTC 2016
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository fortune-zh.
commit 88f2dad1b03e8c367e2eaff7c76e1246c446c5c7
Author: Zhou Mo <cdluminate at gmail.com>
Date: Fri Oct 7 13:07:18 2016 +0000
tests: add autopkgtest support
---
debian/changelog | 1 +
debian/tests/control | 1 +
debian/tests/simply.run | 13 +++++++++++++
3 files changed, 15 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index a261826..e16bab4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ fortune-zh (2.0) UNRELEASED; urgency=low
* Simplify Makefile, removing redundant lines.
* Remove .u8 symlinks. Use fortune-zh.links to make symlinks instead.
* Override false positive lintian: capitalization-error-in-description .
+ * Add autopkgtest support -- test fortune-zh script and cookie files.
-- Zhou Mo <cdluminate at gmail.com> Tue, 24 Feb 2015 04:21:05 +0000
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..6119cf1
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Tests: simply.run
diff --git a/debian/tests/simply.run b/debian/tests/simply.run
new file mode 100755
index 0000000..40a8d42
--- /dev/null
+++ b/debian/tests/simply.run
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+# simple run fortune-zh. Script fortune-zh should be ok if it passes this.
+fortune-zh
+
+# let's see if the three cookies shipped in this package works as expected.
+fortune chinese
+fortune tang300
+fortune song100
+
+# Now I guess this package is ok.
+exit 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/chinese/fortune-zh.git
More information about the Chinese-commits
mailing list