-T=$(filter-out lib.sh,$(wildcard *.sh))
+T:=$(filter-out lib.sh,$(wildcard *.sh))
+
+# Run slow test at the end
+T:=$(filter-out filter%,$(T)) $(filter filter%,$(T))
.PHONY: $(T:%=run-%)
PLOT_SCRIPTS=$(shell find results -name plot.sh)
define plot_template
-plot: $1/thumb
-$1/thumb: $1/plot.sh $(notdir $1).sh $(wildcard $1/*.txt)
+plot: $1/graph.png
+$1/graph.png: $1/plot.sh $(notdir $1).sh lib.sh $(wildcard $1/*.txt)
$1/plot.sh -X
endef