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 <abe@debian.org> Sat, 29 Mar 2014 02:50:12 +0100
......
......@@ -7,6 +7,7 @@ Standards-Version: 3.9.5
Vcs-Git: git://anonscm.debian.org/collab-maint/since.git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/since.git
Homepage: http://welz.org.za/projects/since
XS-Testsuite: autopkgtest
Package: since
Architecture: any
......
#!/bin/sh
exec adequate since
Tests: simple
Depends: since
Tests: adequate
Depends: since, adequate
#!/bin/sh
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
fnord"
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 <==
flarp
==> example2.txt <==
gnarz"
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