+bintest_outs = $(bintests:=.out)
+junk += $(bintest_outs)
+%.out: % all
+ ./$* < /dev/null 2>&1 | tee $@
+
+check-cpp : $(test_outs)
+ @echo
+ ! grep -h -e'Unit Tests' -e'FAILED' -e'Segmentation' $^ < /dev/null
+ @echo
+
+check-bin : $(bintest_outs)
+ ! tail -n 1 $^ < /dev/null 2>&1 | grep FAILED
+
+check : check-cpp check-bin