[med-svn] [Git][med-team/hnswlib][master] 2 commits: Add autopkgtests
Nilesh Patra
gitlab at salsa.debian.org
Sun Sep 6 20:52:34 BST 2020
Nilesh Patra pushed to branch master at Debian Med / hnswlib
Commits:
5b907563 by Nilesh Patra at 2020-09-07T00:59:05+05:30
Add autopkgtests
- - - - -
825ec725 by Nilesh Patra at 2020-09-06T19:41:35+00:00
Use "-shared" while linking
- - - - -
4 changed files:
- debian/patches/series
- + debian/patches/use-shared-while-linking.patch
- debian/tests/control
- debian/tests/run-unit-test
Changes:
=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
cassert.patch
noTwine.patch
+use-shared-while-linking.patch
=====================================
debian/patches/use-shared-while-linking.patch
=====================================
@@ -0,0 +1,14 @@
+Author: Nilesh Patra <npatra974 at gmail.com>
+Description: Enable "-shared" while linking
+Last-Changed: September 7, 2020
+--- a/python_bindings/setup.py
++++ b/python_bindings/setup.py
+@@ -70,7 +70,7 @@
+ link_opts['unix'] += ['-stdlib=libc++', '-mmacosx-version-min=10.7']
+ else:
+ c_opts['unix'].append("-fopenmp")
+- link_opts['unix'].extend(['-fopenmp', '-pthread'])
++ link_opts['unix'].extend(['-fopenmp', '-pthread', '-shared'])
+
+ def build_extensions(self):
+ ct = self.compiler.compiler_type
=====================================
debian/tests/control
=====================================
@@ -1,3 +1,3 @@
Tests: run-unit-test
-Depends: @
+Depends: @, python3-all
Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -1,7 +1,8 @@
#!/bin/bash
set -e
-pkg=#PACKAGENAME#
+pkg=hnswlib
+CUR_DIR=`pwd`
export LC_ALL=C.UTF-8
if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
@@ -9,8 +10,8 @@ if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi
-cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
+cp -a ${CUR_DIR}/python_bindings/* "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"
+python3 -m unittest -v tests/*
-#do_stuff_to_test_package#
View it on GitLab: https://salsa.debian.org/med-team/hnswlib/-/compare/c8e7dc5a6c5341c0466cc419d589e691acefcea5...825ec7253b13ba044e83b47b605a631baa84c2f9
--
View it on GitLab: https://salsa.debian.org/med-team/hnswlib/-/compare/c8e7dc5a6c5341c0466cc419d589e691acefcea5...825ec7253b13ba044e83b47b605a631baa84c2f9
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/20200906/40202857/attachment-0001.html>
More information about the debian-med-commit
mailing list