| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
TEST_HTTP ?= test.mozilla.com |
| 7 |
TEST_JS = $(shell find . -name '*.js' -print) |
| 8 |
CURRDIR=$(shell pwd) |
| 9 |
JSDIR=$(shell basename $(CURRDIR)) |
| 10 |
|
| 11 |
all: menu.html \ |
| 12 |
menu-list.txt \ |
| 13 |
spidermonkey-extensions-n.tests \ |
| 14 |
failures.txt |
| 15 |
|
| 16 |
menu.html: menuhead.html menufoot.html Makefile spidermonkey-n.tests $(TEST_JS) |
| 17 |
perl mklistpage.pl > menubody.html |
| 18 |
cat menuhead.html menubody.html menufoot.html > menu.html |
| 19 |
|
| 20 |
spidermonkey-extensions-n.tests: $(TEST_JS) |
| 21 |
find . -name '*.js' | grep -v shell.js | grep -v browser.js | grep '/extensions/' | sed 's|\.\/||' | sort > $@ |
| 22 |
|
| 23 |
menu-list.txt: |
| 24 |
echo "http://$(TEST_HTTP)/tests/mozilla.org/$(JSDIR)/menu.html" > menu-list.txt |
| 25 |
|
| 26 |
.PHONY: patterns |
| 27 |
|
| 28 |
public-failures.txt: |
| 29 |
touch $@ |
| 30 |
|
| 31 |
confidential-failures.txt: |
| 32 |
touch $@ |
| 33 |
|
| 34 |
universe.data: |
| 35 |
touch $@ |
| 36 |
|
| 37 |
confidential-universe.data: |
| 38 |
touch $@ |
| 39 |
|
| 40 |
patterns: confidential-failures.txt confidential-universe.data public-failures.txt universe.data |
| 41 |
if [[ -e confidential-failures.txt.expanded ]]; then \ |
| 42 |
cp confidential-failures.txt confidential-failures.txt.save; \ |
| 43 |
export TEST_UNIVERSE=$(CURRDIR)/confidential-universe.data && \ |
| 44 |
./pattern-extracter.pl confidential-failures.txt.expanded > confidential-failures.txt; \ |
| 45 |
fi |
| 46 |
if [[ -e public-failures.txt.expanded ]]; then \ |
| 47 |
cp public-failures.txt public-failures.txt.save; \ |
| 48 |
./pattern-extracter.pl public-failures.txt.expanded > public-failures.txt; \ |
| 49 |
fi |
| 50 |
|
| 51 |
public-failures.txt.expanded: public-failures.txt universe.data |
| 52 |
./pattern-expander.pl public-failures.txt > public-failures.txt.expanded |
| 53 |
|
| 54 |
confidential-failures.txt.expanded: confidential-failures.txt confidential-universe.data |
| 55 |
export TEST_UNIVERSE=$(CURRDIR)/confidential-universe.data && \ |
| 56 |
./pattern-expander.pl confidential-failures.txt > confidential-failures.txt.expanded |
| 57 |
|
| 58 |
failures.txt: public-failures.txt.expanded confidential-failures.txt.expanded |
| 59 |
sort -u public-failures.txt.expanded confidential-failures.txt.expanded > failures.txt |
| 60 |
|
| 61 |
clean: |
| 62 |
rm -f menubody.html menu.html menu-list.txt failures.txt *failures.txt.expanded excluded-*.tests included-*.tests urllist*.html urllist*.tests |