File: rules

package info (click to toggle)
virulencefinder 2.0.3%2Bgit20190809.dde157a-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 980 kB
  • sloc: python: 443; sh: 31; makefile: 15
file content (21 lines) | stat: -rwxr-xr-x 534 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

# DH_VERBOSE := 1

export PYBUILD_SYSTEM=custom
export PYBUILD_CLEAN_ARGS=rm -rf test/results_tab.tsv

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	./virulencefinder.py -i test/test.fsa -o test/ -p test/database/ -mp blastn -x -q ; \
	file=test/results_tab.tsv ; \
	DIFF=$$(diff "$$file" test/test_results.tsv) ; \
	if [ "$$DIFF" = "" ] && [ -s "$$file" ] ; then \
	    echo "TEST SUCCEEDED" ; \
	else \
	   echo "TEST FAILED"; \
	fi
endif