[med-svn] [Git][med-team/hmmer2][master] Fixup autopkgtests

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Mon Mar 25 12:38:07 GMT 2024



Nilesh Patra pushed to branch master at Debian Med / hmmer2


Commits:
4429e204 by Nilesh Patra at 2024-03-25T18:07:42+05:30
Fixup autopkgtests

- - - - -


2 changed files:

- + debian/tests/Makefile.test
- debian/tests/run-unit-test


Changes:

=====================================
debian/tests/Makefile.test
=====================================
@@ -0,0 +1,79 @@
+################################################################
+# Makefile for HMMER testsuite
+# CVS $Id: Makefile.in,v 1.18 2003/06/13 20:05:31 eddy Exp $
+##########
+# HMMER - Biological sequence analysis with profile HMMs
+# Copyright (C) 1992-2003 Washington University School of Medicine
+# All Rights Reserved
+# 
+#     This source code is distributed under the terms of the
+#     GNU General Public License. See the files COPYING and LICENSE
+#     for details.
+###########
+
+CC        = gcc
+CFLAGS    = -g -O2 -ffile-prefix-map=.=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection
+CPPFLAGS  = -Wdate-time -D_FORTIFY_SOURCE=2
+LDFLAGS   = -Wl,-z,relro -Wl,-z,now
+DEFS      = -DHAVE_CONFIG_H
+LIBS      =  -lm
+MYLIBS    = -lhmmer `pkg-config --libs libsquid`
+
+# Configuration for optional pthreads multiprocessor support
+#
+PTHREAD_LIBS   = 
+PTHREAD_CFLAGS = 
+
+SHELL     = /bin/sh
+
+SHIVA = alignalign_test\
+	evd_test\
+	masks_test\
+	parsingviterbi_test\
+	tophits_test\
+	trace_test\
+	viterbi_exercise\
+	weeviterbi_test
+
+#######
+## Targets defining how to make Shiva executables.
+#######
+
+.c.o:
+	$(CC) $(CFLAGS) $(PTHREAD_CFLAGS) ${CPPFLAGS} $(DEFS) `pkg-config --cflags libsquid` -I../src -I/usr/include/hmmer2 -c $<		
+
+all: 	$(SHIVA)
+
+$(SHIVA): %: %.o
+	$(CC) $(CFLAGS) $(PTHREAD_CFLAGS) ${LDFLAGS} $(DEFS) -o $@ -L../src $@.o $(MYLIBS) $(PTHREAD_LIBS) $(LIBS)
+
+#######
+## `make check` actually runs the tests.
+#######
+
+check: 
+	@echo 
+	@echo Running test suite exercises.
+	@echo Warning: some tests may take several minutes to complete. 
+	@echo 
+	./sqc 2 exercises.sqc . ../src
+
+
+#######
+## Miscellaneous
+#######
+
+clean:
+	-rm -f *.o *~ Makefile.bak core $(SHIVA) TAGS gmon.out
+
+distclean:
+	make clean
+	-rm -f Makefile
+
+binclean:
+	-rm -f *.o *~ Makefile.bak core TAGS gmon.out
+
+TAGS:
+	etags -t *.c *.h Makefile.in
+
+


=====================================
debian/tests/run-unit-test
=====================================
@@ -8,12 +8,12 @@ if [ "$AUTOPKGTEST_TMP" = "" ] ; then
 fi
 
 cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
+cp debian/tests/Makefile.test $AUTOPKGTEST_TMP
 
 cd $AUTOPKGTEST_TMP
 
 find . -name "*.gz" -exec gunzip \{\} \;
-sed -i 's|$(CC) $(CFLAGS) $(PTHREAD_CFLAGS) ${CPPFLAGS} $(DEFS) `pkg-config --cflags libsquid` -I../src -c $<|$(CC) $(CFLAGS) $(PTHREAD_CFLAGS) ${CPPFLAGS} $(DEFS) `pkg-config --cflags libsquid` -I../src -I/usr/include/hmmer2 -c $<|' Makefile 
-make
+make -f Makefile.test
 testnames=`cut -f2 -d '@' ./exercises.sqc | grep "_test\|_exercise"`
 
 chmod +x $testnames



View it on GitLab: https://salsa.debian.org/med-team/hmmer2/-/commit/4429e2043d2b33652d6ad3430e84cac8d2d5e938

-- 
View it on GitLab: https://salsa.debian.org/med-team/hmmer2/-/commit/4429e2043d2b33652d6ad3430e84cac8d2d5e938
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/20240325/c1fabc16/attachment-0001.htm>


More information about the debian-med-commit mailing list