Israel Komolehin pushed to branch master at Debian Med / ghmm
Commits: 05107096 by Komolehin Israel Timilehin at 2024-01-18T17:29:32+00:00 Added Makefile to run working upstream tests - - - - - 5db04538 by Komolehin Israel Timilehin at 2024-01-18T17:31:03+00:00 Updated README with list of missing files in libghmm - - - - - 7915b392 by Komolehin Israel Timilehin at 2024-01-18T17:34:25+00:00 Updated ghmm.examples - - - - - 4 changed files: - debian/ghmm.examples - + debian/tests/Makefile - debian/tests/README.md - debian/tests/run-unit-test Changes: ===================================== debian/ghmm.examples ===================================== @@ -1,3 +1,2 @@ -debian/tests/*.c debian/tests/*.py - +tests/*.c ===================================== debian/tests/Makefile ===================================== @@ -0,0 +1,35 @@ +CC=gcc +CFLAGS=-I/usr/include/ghmm +LDFLAGS=-lghmm -llapack + + +all: test_label_higher_order test_two_states_three_symbols test_libxml test_read_fa test_sequences + +test_label_higher_order: label_higher_order_test.o + $(CC) $^ -o $@ $(LDFLAGS) -lm + +test_two_states_three_symbols: two_states_three_symbols.o + $(CC) $^ -o $@ $(LDFLAGS) + +test_libxml: libxml-test.o + $(CC) $^ -o $@ $(LDFLAGS) + +test_read_fa: read_fa.o + $(CC) $^ -o $@ $(LDFLAGS) + +test_sequences: sequences_test.o + $(CC) $^ -o $@ $(LDFLAGS) + +%.o: %.c + $(CC) -c $< -o $@ $(CFLAGS) + +clean: + rm -f *.o test_two_sates_three_symbols test_libxml + +run: all + ./test_label_higher_order + ./test_two_states_three_symbols + ./test_libxml + ./test_sequences + # read_fa needs seqence and model to be passed as arguments + # ./test_read_fa \ No newline at end of file ===================================== debian/tests/README.md ===================================== @@ -2,10 +2,16 @@ Test in python can be referenced [here](https://ghmm.sourceforge.net/documentation.html) -## Executed command -`python3 ghmm_test.py` - NameError: name 'IntegerRange' is not defined +## Executed commands +#### Error +##### Missing files in installed libghmm. These missing files are blockers for some tests + +- `ghmm/matrix.h` +- `ghmm/matrixop.h` +- `ghmm_internals.h` +- `randvar.h` +- `mes.h` \ No newline at end of file ===================================== debian/tests/run-unit-test ===================================== @@ -10,11 +10,10 @@ if [ "$AUTOPKGTEST_TMP" = "" ]; then fi cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}" -cd $AUTOPKGTEST_TMP +cp -a debian/tests/Makefile "${AUTOPKGTEST_TMP}" -gcc -c ghmm_test.c -o ghmm_test.o -I/usr/include/ghmm -gcc ghmm_test.o -o ghmm_test -lghmm -llapack +cd $AUTOPKGTEST_TMP -./ghmm_test +make run -python3 ghmm_test.py +python3 ghmm_test.py \ No newline at end of file View it on GitLab: https://salsa.debian.org/med-team/ghmm/-/compare/2845f134775c316423398c158fc93f842709a179...7915b392555252ac5ff82bb01fe3e81549ab2c0f -- View it on GitLab: https://salsa.debian.org/med-team/ghmm/-/compare/2845f134775c316423398c158fc93f842709a179...7915b392555252ac5ff82bb01fe3e81549ab2c0f You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
