diff options
author | Ruben Undheim <ruben.undheim@gmail.com> | 2018-09-22 15:35:38 +0200 |
---|---|---|
committer | Ruben Undheim <ruben.undheim@gmail.com> | 2018-09-22 15:37:06 +0200 |
commit | 84676a7f41c1d945f6e05f77e8f1df9adfd2264a (patch) | |
tree | 180da5d132ae2e0a515049b73e7e0add1628cf38 | |
parent | a5c3679615022e78503e8a8a4150786a3d8513de (diff) |
Added autopkgtest, prepare package for upload
-rw-r--r-- | debian/changelog | 9 | ||||
-rw-r--r-- | debian/compat | 2 | ||||
-rw-r--r-- | debian/control | 2 | ||||
-rw-r--r-- | debian/source/lintian-overrides | 3 | ||||
-rwxr-xr-x | debian/tests/basic | 15 | ||||
-rw-r--r-- | debian/tests/control | 2 | ||||
-rw-r--r-- | debian/tests/example.sos | 36 |
7 files changed, 63 insertions, 6 deletions
diff --git a/debian/changelog b/debian/changelog index 4875fa6..793c6fe 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,9 +1,16 @@ sosi2osm (1.0.0-5) UNRELEASED; urgency=medium + [ Bas Couwenberg ] * Bump Standards-Version to 4.2.1, no changes. * Update watch file to handle common issues. - -- Bas Couwenberg <sebastic@debian.org> Sun, 05 Aug 2018 21:00:14 +0200 + [ Ruben Undheim ] + * debian/compat: level 11 + * debian/control: debhelper >= 11 + * debian/tests: added autopkgtest + * Remove lintian override for testsuite-autopkgtest-missing. + + -- Ruben Undheim <ruben.undheim@gmail.com> Sat, 22 Sep 2018 15:34:29 +0200 sosi2osm (1.0.0-4) unstable; urgency=medium diff --git a/debian/compat b/debian/compat index ec63514..b4de394 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -9 +11 diff --git a/debian/control b/debian/control index 8761260..c1ea2e9 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Maintainer: Debian GIS Project <pkg-grass-devel@lists.alioth.debian.org> Uploaders: Ruben Undheim <ruben.undheim@gmail.com> Section: utils Priority: optional -Build-Depends: debhelper (>= 9), +Build-Depends: debhelper (>= 11), liblua5.1-0-dev, libfyba-dev, pkg-config, diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides deleted file mode 100644 index d9d9775..0000000 --- a/debian/source/lintian-overrides +++ /dev/null @@ -1,3 +0,0 @@ -# Not worth the effort -testsuite-autopkgtest-missing - diff --git a/debian/tests/basic b/debian/tests/basic new file mode 100755 index 0000000..f29e9a2 --- /dev/null +++ b/debian/tests/basic @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e +WORKDIR=$(mktemp -d) +trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM + + +echo "" +echo "Testing with adresser.lua:" +sosi2osm debian/tests/example.sos adresser.lua +echo "" +echo "Testing with default.lua:" +sosi2osm debian/tests/example.sos default.lua +echo "" +echo "run: OK" diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..a24d056 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,2 @@ +Tests: basic +Depends: sosi2osm diff --git a/debian/tests/example.sos b/debian/tests/example.sos new file mode 100644 index 0000000..315523a --- /dev/null +++ b/debian/tests/example.sos @@ -0,0 +1,36 @@ +.HODE +..TEGNSETT LATIN1 +..TRANSPAR +...KOORDSYS 23 +...ORIGO-NØ 0 0 +...ENHET 0.01 +..OMRÅDE +...MIN-NØ 6781600 163696 +...MAX-NØ 6826703 203546 +..SOSI-VERSJON 4.5 +..SOSI-NIVÅ 2 +..PRODUSENT "Kartverket" +..EIER "Kommunen og Kartverket" +..OBJEKTKATALOG +...KORTNAVN "Matrikkel-ADR0006" +...OBJEKTKATALOG_FULLT_NAVN "Adresse - enkel - SOSI" +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.PUNKT 1: +..OBJTYPE Vegadresse +..VEGADRESSEIDENT +...KOMM 0544 +...ADRESSENAVN "Øvrebygdvegen" +...ADRESSEKODE 1002 +...NUMMER 352 +..POSTNUMMEROMRÅDE +...POSTNUMMER 2943 +...POSTSTED "ROGNE" +..ADRESSETEKST "Øvrebygdvegen 352" +..OPPDATERINGSDATO 20160929 +..KOPIDATA +...OMRÅDEID 0544 +...ORIGINALDATAVERT "Matrikkelen" +...KOPIDATO 20170626 +..NØ +678821200 18354378 +.SLUTT |