[libkate] 01/03: Added simple autopkgtest script running the command line tools.

Petter Reinholdtsen pere at moszumanska.debian.org
Tue Feb 16 11:10:35 UTC 2016


This is an automated email from the git hooks/post-receive script.

pere pushed a commit to branch master
in repository libkate.

commit 7fbcbc7a9fefc35ca0643f332da3db5601bd97e7
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Tue Feb 16 11:40:40 2016 +0100

    Added simple autopkgtest script running the command line tools.
---
 debian/tests/control         |  2 ++
 debian/tests/tests-cmd-tools | 49 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..968bb21
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Depends: @
+Tests: test-cmd-tools
diff --git a/debian/tests/tests-cmd-tools b/debian/tests/tests-cmd-tools
new file mode 100755
index 0000000..b98fb49
--- /dev/null
+++ b/debian/tests/tests-cmd-tools
@@ -0,0 +1,49 @@
+#!/bin/sh
+#
+# Test the kate command line tools to ensure they can run without
+# returning an error.
+
+set -e
+
+retval=0
+
+success() { echo "success:" "$@"; }
+error() { echo "error:" "$@"; retval=1; }
+
+cat > input.srt <<EOF
+1
+00:00:08,000 --> 00:00:14,000
+This is a simple subtext block
+that will be encoded into an ogg file.
+
+2
+00:00:15,000 --> 00:00:16,000
+This is the second subtext block.
+
+EOF
+
+if kateenc -t srt -l cy -c SUB -o output.ogg input.srt ; then
+    success "kateenc could encode an SRT file to OGG"
+else
+    error "unable to run kateenc"
+fi
+
+if katalyzer output.ogg ; then
+    success "running katalyzer worked"
+else
+    error "unable to run katalyser"
+fi
+
+if katedec output.ogg ; then
+    success "running katedec worked"
+else
+    error"unable to run katedec"
+fi
+
+if KateDJ  --version ; then
+    success "running KateDJ worked"
+else
+    error "unable to run KateDJ"
+fi
+
+exit $retval

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xiph/libkate.git



More information about the pkg-xiph-commits mailing list