[med-svn] [Git][med-team/illustrate][master] 4 commits: Add autopkgtest

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Tue Jun 15 11:21:22 BST 2021



Nilesh Patra pushed to branch master at Debian Med / illustrate


Commits:
22d7ea36 by Nilesh Patra at 2021-06-15T15:37:06+05:30
Add autopkgtest

- - - - -
ebe83fa9 by Nilesh Patra at 2021-06-15T15:37:27+05:30
Add B-D on gfortran

- - - - -
456637b9 by Nilesh Patra at 2021-06-15T10:09:46+00:00
Update d/u/metadata

- - - - -
fbcb9d86 by Nilesh Patra at 2021-06-15T15:50:23+05:30
Propagate hardening options

- - - - -


5 changed files:

- debian/control
- debian/rules
- debian/tests/control
- debian/tests/run-unit-test → debian/tests/run-unit-tests
- debian/upstream/metadata


Changes:

=====================================
debian/control
=====================================
@@ -3,7 +3,7 @@ Section: science
 Priority: optional
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders: Steffen Moeller <moeller at debian.org>
-Build-Depends: debhelper-compat (= 13)
+Build-Depends: debhelper-compat (= 13), gfortran
 Standards-Version: 4.5.1
 Vcs-Browser: https://salsa.debian.org/med-team/illustrate
 Vcs-Git: https://salsa.debian.org/med-team/illustrate.git


=====================================
debian/rules
=====================================
@@ -4,12 +4,13 @@
 export LC_ALL=C.UTF-8
 
 include /usr/share/dpkg/default.mk
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 %:
 	dh $@
 
 override_dh_auto_build:
-	gfortran -g -o illustrate illustrate.f
+	gfortran $(CFLAGS) $(CPPFLAGS) -o illustrate illustrate.f $(LDFLAGS)
 
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))


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


=====================================
debian/tests/run-unit-test → debian/tests/run-unit-tests
=====================================
@@ -1,16 +1,23 @@
 #!/bin/bash
 set -e
 
-pkg=#PACKAGENAME#
+pkg=illustrate
+CUR_DIR=`pwd`
 
-export LC_ALL=C.UTF-8
 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 -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
+cp ${CUR_DIR}/debian/illustrate_sample_cmd.txt "${AUTOPKGTEST_TMP}"
+cp ${CUR_DIR}/2hhb.pdb "${AUTOPKGTEST_TMP}"
 
 cd "${AUTOPKGTEST_TMP}"
 
-#do_stuff_to_test_package#
+echo "Checking functionality"
+illustrate < illustrate_sample_cmd.txt
+for f in *.pnm
+do
+	[ -s $f ] || exit 1
+	rm -f $f
+done


=====================================
debian/upstream/metadata
=====================================
@@ -1,7 +1,14 @@
+---
+Archive: GitHub
+Bug-Database: https://github.com/ccsb-scripps/Illustrate/issues
+Bug-Submit: https://github.com/ccsb-scripps/Illustrate/issues/new
+Changelog: https://github.com/ccsb-scripps/Illustrate/tags
+Repository: https://github.com/ccsb-scripps/Illustrate.git
+Repository-Browse: https://github.com/ccsb-scripps/Illustrate
 Reference:
  - Author: D.S. Goodsell and A.J. Olson
    Title: Molecular Illustration in Black and White
-   Journal: J. Mol. Graphics 
+   Journal: J. Mol. Graphics
    Year: 1992
    Month: Apr
    Volume: 10



View it on GitLab: https://salsa.debian.org/med-team/illustrate/-/compare/57616840ee84cb45680f331f2bce8554dba63b42...fbcb9d8653aad026fe2fc641e844e73fb156a1e6

-- 
View it on GitLab: https://salsa.debian.org/med-team/illustrate/-/compare/57616840ee84cb45680f331f2bce8554dba63b42...fbcb9d8653aad026fe2fc641e844e73fb156a1e6
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/20210615/88ecd715/attachment-0001.htm>


More information about the debian-med-commit mailing list