[med-svn] [Git][med-team/mencal][master] 5 commits: Add autopkgtests
Nilesh Patra
gitlab at salsa.debian.org
Mon Jun 8 19:21:29 BST 2020
Nilesh Patra pushed to branch master at Debian Med / mencal
Commits:
8a40227e by Nilesh Patra at 2020-06-08T23:36:02+05:30
Add autopkgtests
- - - - -
c2491825 by Nilesh Patra at 2020-06-08T23:37:36+05:30
s/http/https/
- - - - -
de890535 by Nilesh Patra at 2020-06-08T18:12:56+00:00
Fix with cme
- - - - -
5534f73c by Nilesh Patra at 2020-06-08T23:47:00+05:30
Add upstream/metadata
- - - - -
a4a80f2a by Nilesh Patra at 2020-06-08T23:47:20+05:30
Fix test
- - - - -
9 changed files:
- − debian/compat
- debian/control
- debian/copyright
- + debian/tests/control
- + debian/tests/data/logfile1.txt
- + debian/tests/data/logfile2.txt
- + debian/tests/run-unit-test
- + debian/upstream/metadata
- debian/watch
Changes:
=====================================
debian/compat deleted
=====================================
@@ -1 +0,0 @@
-11
=====================================
debian/control
=====================================
@@ -3,11 +3,12 @@ Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.
Uploaders: Andreas Tille <tille at debian.org>
Section: utils
Priority: optional
-Build-Depends: debhelper (>= 11~)
-Standards-Version: 4.2.1
+Build-Depends: debhelper-compat (= 13)
+Standards-Version: 4.5.0
Vcs-Browser: https://salsa.debian.org/med-team/mencal
Vcs-Git: https://salsa.debian.org/med-team/mencal.git
-Homepage: http://kyberdigi.cz/projects/mencal/
+Homepage: https://kyberdigi.cz/projects/mencal/
+Rules-Requires-Root: no
Package: mencal
Architecture: all
=====================================
debian/copyright
=====================================
@@ -1,6 +1,6 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mencal
-Source: http://kyberdigi.cz/projects/mencal/
+Source: https://kyberdigi.cz/projects/mencal/
Files: *
Copyright: (C) 2001-2012 C. McCohy <mccohy at kyberdigi.cz>
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,4 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
+
=====================================
debian/tests/data/logfile1.txt
=====================================
@@ -0,0 +1,5 @@
+start 20200915
+length 15
+duration 4
+color green
+name test2
=====================================
debian/tests/data/logfile2.txt
=====================================
@@ -0,0 +1,5 @@
+start 20050915
+length 01
+duration 01
+color green
+name test2
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,35 @@
+#!/bin/bash
+set -e
+
+pkg=mencal
+
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+ AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+ trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp /usr/share/doc/${pkg}/* -a "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+gunzip -r *
+
+echo 'Test 1'
+mencal -3
+echo 'PASS'
+echo
+
+echo 'Test 2'
+mencal -c s=0915,l=15,n=test2,c=green,f=logfile1.txt
+mencal -c s=20050915,l=01,n=test2,c=blue,f=logfile2.txt
+echo 'PASS'
+echo
+
+echo 'Test 3'
+mencal logfile1.txt logfile2.txt -i yellow
+echo 'PASS'
+echo
+
+echo 'Test 4'
+mencal mencalrc_example -c s=20050915,l=01,n=test2,c=violet
+echo 'PASS'
+
=====================================
debian/upstream/metadata
=====================================
@@ -0,0 +1,4 @@
+---
+Bug-Submit: mailto:mccohy at kyberdigi.cz
+Repository: https://kyberdigi.cz/projects/mencal/
+
=====================================
debian/watch
=====================================
@@ -1,2 +1,2 @@
version=3
-http://kyberdigi.cz/projects/files.php?mencal (?:|.*/)mencal-(.*)\.tar\.gz
+https://kyberdigi.cz/projects/files.php?mencal (?:|.*/)mencal-(.*)\.tar\.gz
View it on GitLab: https://salsa.debian.org/med-team/mencal/-/compare/b8f5e412e958d500e246216697c04001abb854ff...a4a80f2a58cf39639de562145f3179517cd697c8
--
View it on GitLab: https://salsa.debian.org/med-team/mencal/-/compare/b8f5e412e958d500e246216697c04001abb854ff...a4a80f2a58cf39639de562145f3179517cd697c8
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200608/21e73a30/attachment-0001.html>
More information about the debian-med-commit
mailing list