From 3d29579a6cb3be321296c12e27dfbf90fc9e26f9 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 14 Nov 2010 22:47:04 +0000 Subject: Add tests --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9265680..5bfc273 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,13 @@ crx: simplyread.js chromium/icon.svg chromium/manifest.json chromium/background. gpg -b < $(NAME)-$(VERSION).crx > $(NAME)-$(VERSION).crx.sig echo $(NAME)-$(VERSION).crx $(NAME)-$(VERSION).crx.sig -.PHONY: dist xpi crx +test: + for i in tests/html/*.html; do \ + sh tests/runtest.sh $$i $$i.simple 1>$$i.diff 2>/dev/null; \ + test $$? -eq 0 && echo $$i passed || echo "$$i failed (see $$i.diff)"; \ + test ! -s $$i.diff && rm $$i.diff; \ + done + +.PHONY: dist xpi crx test .SUFFIXES: ttl html png svg .SILENT: -- cgit v1.2.3