diff options
author | Nick White <git@njw.me.uk> | 2010-11-14 22:47:04 +0000 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-11-14 22:47:04 +0000 |
commit | 3d29579a6cb3be321296c12e27dfbf90fc9e26f9 (patch) | |
tree | 15c9e095193955bab61f2264adee7a5ee69c8a37 /Makefile | |
parent | 159527a972b0a929aeda3dcbd71c71f1367189de (diff) |
Add tests
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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: |