Package: lagan / 2.0-3

addTest.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Steffen Moeller
Last-Update: 2018-09-07 15:08:19 +0200
Description: Add primitive build time test

Index: lagan/Makefile
===================================================================
--- lagan.orig/Makefile
+++ lagan/Makefile
@@ -1,5 +1,8 @@
 all:
-	(cd src; $(MAKE))
+	$(MAKE) -C src
 clean:
 	rm -f chaos anchors order glocal utils/bin2bl mlagan utils/cstat utils/bin2mf utils/rc *~ utils/contigorder utils/getbounds utils/cextract utils/seqmerge utils/getlength utils/getoverlap utils/*~ utils/scorealign utils/scorecontigs mlagan.purify utils/getcontigpos utils/fa2xfa utils/Glue utils/dotplot utils/overlay
-	(cd src; $(MAKE) clean)
+	$(MAKE) -C src clean
+
+test:	all
+	(LAGAN_DIR="." ./mlagan -h || true) | grep -q version && echo "[ok]" || echo "[fail]"