Commit d4f62b91 authored by Axel Beckert's avatar Axel Beckert

Add DEP-8 automatic package testing

parent 9626cbe9
......@@ -5,6 +5,7 @@ since (1.1-4) UNRELEASED; urgency=medium
* Update upstream's e-mail address in debian/copyright.
* Add (a rather minimal) DEP-12 debian/upstream/metadata file.
* Update patch header of hurd-path-max.patch to conform to DEP-3.
* Add DEP-8 automatic package testing.
-- Axel Beckert <> Sat, 29 Mar 2014 02:50:12 +0100
......@@ -7,6 +7,7 @@ Standards-Version: 3.9.5
Vcs-Git: git://
XS-Testsuite: autopkgtest
Package: since
Architecture: any
exec adequate since
Tests: simple
Depends: since
Tests: adequate
Depends: since, adequate
set -e
cd "$ADTTMP"
export HOME="$ADTTMP"
# Cleanup
rm -f .since example.txt example.txt
# Functionality testing
echo TESTING: -z
echo foo > example.txt
echo bar > example2.txt
test -z "`since -z example.txt`"
test -z "`since -z example2.txt`"
echo TESTING: default action
echo bar >> example.txt
test "`since example.txt`" = "bar"
echo TESTING: reset
echo fnord > example.txt
test "`since example.txt 2>&1`" = "since: considering example.txt to be truncated, displaying from start
echo TESTING: -z multiple files
echo hurz >> example.txt
echo bla >> example2.txt
test "`since -z example.txt example2.txt`" = "==> example.txt [discarded] <==
==> example2.txt [discarded] <=="
echo TESTING: default action multiple files
echo flarp >> example.txt
echo gnarz >> example2.txt
test "`since example.txt example2.txt`" = "==> example.txt <==
==> example2.txt <==
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment