[med-svn] [Git][med-team/edfbrowser][master] 3 commits: initialize changelog

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Mon Jun 27 21:53:49 BST 2022



Étienne Mollier pushed to branch master at Debian Med / edfbrowser


Commits:
88073bf0 by Étienne Mollier at 2022-06-27T22:44:35+02:00
initialize changelog

- - - - -
6322727d by Étienne Mollier at 2022-06-27T22:52:47+02:00
d/tests/: add superficial autopkgtest to avoid obvious issues.

- - - - -
81626ad2 by Étienne Mollier at 2022-06-27T22:53:33+02:00
update changelog

- - - - -


3 changed files:

- debian/changelog
- + debian/tests/control
- + debian/tests/run-unit-tests


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+edfbrowser (1.94+dfsg-2) UNRELEASED; urgency=medium
+
+  * d/tests/: add superficial autopkgtest to avoid obvious issues.
+
+ -- Étienne Mollier <emollier at debian.org>  Mon, 27 Jun 2022 22:53:12 +0200
+
 edfbrowser (1.94+dfsg-1) unstable; urgency=medium
 
   * New upstream version


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, xvfb
+Restrictions: allow-stderr, superficial


=====================================
debian/tests/run-unit-tests
=====================================
@@ -0,0 +1,41 @@
+#!/bin/sh
+set -e
+
+bin="edfbrowser"
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+  AUTOPKGTEST_TMP=`mktemp -d /tmp/${bin}-test.XXXXXX`
+  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
+fi
+
+check_n_cleanup () {
+	local gdpc_pids="$(
+		ps aux \
+		| awk "/^$USER"'.*bin[/]'"$bin"'/ {print$2}' \
+		| xargs
+	)"
+
+	local xvfb_pids="$(
+		ps aux \
+		| awk -vORS=' ' "/^$USER"'.*[X]vfb/ {print$2}' \
+		| xargs
+	)"
+
+	if [ -n "$gdpc_pids" ]
+	then
+		kill $gdpc_pids
+	else
+		printf -- "error: $bin crashed before the end of the test\n" >&2
+		exit 1
+	fi
+	test -n "$xvfb_pids" && kill $xvfb_pids
+}
+
+cd "$AUTOPKGTEST_TMP"
+
+set -v
+xvfb-run --auto-servernum \
+	"/usr/bin/$bin" 2>&1 \
+	| tee --append test.log &
+sleep 10
+check_n_cleanup



View it on GitLab: https://salsa.debian.org/med-team/edfbrowser/-/compare/029f4b8c96b45a042dab9230974266913d1e2df3...81626ad279f5386ac09ce5a08ebd621dcf68962d

-- 
View it on GitLab: https://salsa.debian.org/med-team/edfbrowser/-/compare/029f4b8c96b45a042dab9230974266913d1e2df3...81626ad279f5386ac09ce5a08ebd621dcf68962d
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/20220627/a2edf6fb/attachment-0001.htm>


More information about the debian-med-commit mailing list