From: Johannes Schauer <josch@debian.org>
Subject: print a keepalive message to not abort builds on slow architectures without native ocaml

--- a/Makefile
+++ b/Makefile
@@ -185,13 +185,27 @@ test-misc: $(OCAML_BEST)
 .PHONY: test-default
 test-default: $(OCAML_BEST)
 	rm -rf tmp out
-	./tools/native.sh --debug --verbose --develop --output out --tmp tmp --jobs=2 --drop-b-d-indep amd64 tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z
+	sh -c 'starttime=`date +%s`; \
+		while sleep 300; do \
+			now=`date +%s`; \
+			diff=$$(((now-starttime)/60)); \
+			echo "running for $$diff minutes and still alive"; \
+		done' & PID=$$!; \
+	./tools/native.sh --debug --verbose --develop --output out --tmp tmp --jobs=2 --drop-b-d-indep amd64 tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z; \
+	kill $$PID
 	$(call diff_tmp_out,default)
 
 .PHONY: test-selfcontained
 test-selfcontained: $(OCAML_BEST)
 	rm -rf tmp out
-	./tools/native.sh --debug --verbose --develop --output out --tmp tmp --drop-b-d-indep --optgraph --latest --clean --self-contained --optuniv --sapsb --strong --no-drop amd64 tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z
+	sh -c 'starttime=`date +%s`; \
+		while sleep 300; do \
+			now=`date +%s`; \
+			diff=$$(((now-starttime)/60)); \
+			echo "running for $$diff minutes and still alive"; \
+		done' & PID=$$!; \
+	./tools/native.sh --debug --verbose --develop --output out --tmp tmp --drop-b-d-indep --optgraph --latest --clean --self-contained --optuniv --sapsb --strong --no-drop amd64 tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z; \
+	kill $$PID
 	$(call diff_tmp_out,selfcontained)
 
 .PHONY: test-cross
@@ -199,7 +213,14 @@ test-cross: $(OCAML_BEST)
 	rm -rf tmp out
 	mkdir out
 	cp tests/cross-ma.diff out/ma.diff
-	./tools/cross.sh --debug --verbose --develop --output=out --tmp=tmp --drop-b-d-indep --optgraph --jobs=2 amd64 armhf tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z
+	sh -c 'starttime=`date +%s`; \
+		while sleep 300; do \
+			now=`date +%s`; \
+			diff=$$(((now-starttime)/60)); \
+			echo "running for $$diff minutes and still alive"; \
+		done' & PID=$$!; \
+	./tools/cross.sh --debug --verbose --develop --output=out --tmp=tmp --drop-b-d-indep --optgraph --jobs=2 amd64 armhf tests/sid-amd64-packages-20140101T000000Z tests/sid-sources-20140101T000000Z; \
+	kill $$PID
 	$(call diff_tmp_out,cross)
 
 .PHONY: test-man
