[med-svn] [Git][med-team/libbigwig][master] 3 commits: Add autopkgtests
Mohd Bilal (@rmb)
gitlab at salsa.debian.org
Mon Aug 29 18:38:09 BST 2022
Mohd Bilal pushed to branch master at Debian Med / libbigwig
Commits:
a7489241 by Mohammed Bilal at 2022-08-29T22:53:49+05:30
Add autopkgtests
- - - - -
0921a5e7 by Mohammed Bilal at 2022-08-29T17:34:49+00:00
add flag to fix blhc
- - - - -
c787c7d0 by Mohammed Bilal at 2022-08-29T17:37:13+00:00
Update changelog
- - - - -
4 changed files:
- debian/changelog
- debian/rules
- + debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+libbigwig (0.4.7+dfsg-2) UNRELEASED; urgency=medium
+
+ * Team upload.
+ * Add autopkgtests
+ * Fix blhc failure
+
+ -- Mohammed Bilal <mdbilal at disroot.org> Mon, 29 Aug 2022 17:36:17 +0000
+
libbigwig (0.4.7+dfsg-1) unstable; urgency=medium
* Team upload.
=====================================
debian/rules
=====================================
@@ -9,11 +9,10 @@
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
-#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
+export DEB_CFLAGS_MAINT_APPEND = -D_FORTIFY_SOURCE=2
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
-
%:
dh $@
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, libcurl-dev, zlib1g-dev ,gcc
+Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,41 @@
+#!/bin/bash
+set -e
+
+pkg=libbigwig
+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 ${CUR_DIR}/test "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+
+echo "1c52065211fdc44eea45751a9cbfffe0 test/Local.bw" >> checksums
+echo "8e116bd114ffd2eb625011d451329c03 test/Write.bw" >> checksums
+echo "ef104f198c6ce8310acc149d0377fc16 test/example_output.bw" >> checksums
+
+LIB_STATIC=`find /usr/lib -name libBigWig.a`
+
+#Compile using installed libbigwig
+echo 'Compiling ...'
+gcc -g -Wall test/testLocal.c ${LIB_STATIC} -lBigWig -lcurl -lm -lz -o testlocal
+gcc -g -Wall test/testWrite.c ${LIB_STATIC} -lBigWig -lm -lz -lcurl -o testWrite
+gcc -g -Wall test/exampleWrite.c ${LIB_STATIC} -lBigWig -lcurl -lm -lz -o examplewrite
+
+echo '------------------------------'
+
+echo -e "Test 1"
+./testlocal test/test.bw > test/Local.bw
+
+echo -e "Test 2"
+./testWrite test/test.bw test/Write.bw
+
+echo -e "Test 3"
+./examplewrite
+
+md5sum --check checksums
+echo -e "PASS"
View it on GitLab: https://salsa.debian.org/med-team/libbigwig/-/compare/0cad870ff2ac4286ec3a19c3a38ff37f53fe3ef0...c787c7d081e1055969043cc7b5fa8bf9effc4446
--
View it on GitLab: https://salsa.debian.org/med-team/libbigwig/-/compare/0cad870ff2ac4286ec3a19c3a38ff37f53fe3ef0...c787c7d081e1055969043cc7b5fa8bf9effc4446
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/20220829/7859bc12/attachment-0001.htm>
More information about the debian-med-commit
mailing list