[med-svn] [Git][med-team/ghmm][master] 4 commits: Install test as examples

Andreas Tille (@tille) gitlab at salsa.debian.org
Thu Jan 18 10:04:02 GMT 2024



Andreas Tille pushed to branch master at Debian Med / ghmm


Commits:
7cb95b20 by Andreas Tille at 2024-01-18T10:44:27+01:00
Install test as examples

- - - - -
4e718462 by Andreas Tille at 2024-01-18T10:46:01+01:00
Close bug

- - - - -
7f932a50 by Andreas Tille at 2024-01-18T10:51:00+01:00
Really use installed examples

- - - - -
9503d752 by Andreas Tille at 2024-01-18T11:03:31+01:00
Remaining Python3 problem

- - - - -


6 changed files:

- debian/changelog
- + debian/ghmm.docs
- + debian/ghmm.examples
- debian/tests/README.md
- debian/tests/ghmm_test.py
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -6,6 +6,8 @@ ghmm (0.9~rc3-5) UNRELEASED; urgency=medium
   * Fix: SyntaxWarning: "is" with a literal. Did you mean "=="?
   * Fix clean target
     Closes: #1044649
+  * Port to lapacke
+    Closes: #1056673
 
  -- Andreas Tille <tille at debian.org>  Thu, 11 Jan 2024 17:06:32 +0100
 


=====================================
debian/ghmm.docs
=====================================
@@ -0,0 +1 @@
+debian/tests/run-unit-test


=====================================
debian/ghmm.examples
=====================================
@@ -0,0 +1,3 @@
+debian/tests/*.c
+debian/tests/*.py
+


=====================================
debian/tests/README.md
=====================================
@@ -1,7 +1,3 @@
-## Installation
-
-`apt-get install libghmm-dev`
-
 ## GHMM test in python
 
 Test in python can be referenced [here](https://ghmm.sourceforge.net/documentation.html)
@@ -9,23 +5,7 @@ Test in python can be referenced [here](https://ghmm.sourceforge.net/documentati
 ## Executed command
 `python3 ghmm_test.py`
 
-- `ghmm import works fine`
-- `Attributes and methods are not found`
-
-
-## GHMM test in C
-
-Test is referenced from ghmm/tests/two_states_three_symbols.c
-
-
-## Executed commands
-
-- `gcc -c ghmm_test.c -o ghmm_test.o -I/usr/include/ghmm`
-- `gcc ghmm_test.o -o ghmm_test -lghmm -llapack`
-- `./ghmm_test`
-
-#### Error
-- `./ghmm_test: symbol lookup error: /lib/x86_64-linux-gnu/libghmm.so.1: undefined symbol: clapack_dgetrf`
+  NameError: name 'IntegerRange' is not defined
 
 
 


=====================================
debian/tests/ghmm_test.py
=====================================
@@ -1,3 +1,6 @@
+#!/usr/bin/python3
+# https://ghmm.sourceforge.net/documentation.html
+
 from ghmm import *
 
-sigma = IntegerRange(1,7)
\ No newline at end of file
+sigma = IntegerRange(1,7)


=====================================
debian/tests/run-unit-test
=====================================
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/sh -e
 
 pkg=ghmm
 
@@ -9,10 +9,12 @@ if [ "$AUTOPKGTEST_TMP" = "" ]; then
 
 fi
 
-cp debian/tests/ghmm_test.c $AUTOPKGTEST_TMP
+cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
 cd $AUTOPKGTEST_TMP
 
 gcc -c ghmm_test.c -o ghmm_test.o -I/usr/include/ghmm
 gcc ghmm_test.o -o ghmm_test -lghmm -llapack
 
 ./ghmm_test
+
+python3 ghmm_test.py



View it on GitLab: https://salsa.debian.org/med-team/ghmm/-/compare/97e10a4c11185092187ba94d18e6112cb2b11bc7...9503d7527aae433d125cc15d1f83cafc09b6c0e0

-- 
View it on GitLab: https://salsa.debian.org/med-team/ghmm/-/compare/97e10a4c11185092187ba94d18e6112cb2b11bc7...9503d7527aae433d125cc15d1f83cafc09b6c0e0
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/20240118/72603371/attachment-0001.htm>


More information about the debian-med-commit mailing list