diff options
author | Clint Adams <clint@debian.org> | 2018-07-04 13:13:10 -0400 |
---|---|---|
committer | Clint Adams <clint@debian.org> | 2018-07-04 13:13:10 -0400 |
commit | a2279b628fb3d71e05e5752c01a1c3676a970b60 (patch) | |
tree | 645466cd4afa6a9376bc3d94fe15d7711b571b75 | |
parent | 9fd2c17dbb24ebf411e716c049edfeca2fbf5896 (diff) |
Add autopkgtest
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | debian/tests/control | 2 | ||||
-rw-r--r-- | debian/tests/sub | 13 |
3 files changed, 16 insertions, 1 deletions
diff --git a/debian/control b/debian/control index 16b7689..a2610ed 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: sed Section: utils Priority: required Maintainer: Clint Adams <clint@debian.org> -Standards-Version: 4.1.3 +Standards-Version: 4.1.5 Build-Depends: texinfo, gettext, libselinux-dev [linux-any], debhelper (>= 10), dh-autoreconf, help2man Vcs-Git: https://salsa.debian.org/debian/sed.git Vcs-Browser: https://salsa.debian.org/debian/sed diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..887bb55 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +Tests: sub +Depends: @ diff --git a/debian/tests/sub b/debian/tests/sub new file mode 100644 index 0000000..b662429 --- /dev/null +++ b/debian/tests/sub @@ -0,0 +1,13 @@ +#!/bin/sh + +newval=$(echo "abc" | sed 's/[bc]/d/g') + +case "${newval}" in + (add) + echo "sub: OK" + ;; + (*) + echo >&2 "unexpected result (${newval}): failure" + exit 1 + ;; +esac |