2007-03-22 10:30:00 -07:00
|
|
|
# -*- Makefile -*-
|
|
|
|
TEST_HTTP ?= test.mozilla.com
|
|
|
|
TEST_JS = $(shell find . -name '*.js' -print)
|
|
|
|
CURRDIR=$(shell pwd)
|
|
|
|
JSDIR=$(shell basename $(CURRDIR))
|
|
|
|
|
2008-02-06 12:05:33 -08:00
|
|
|
all: menu.html \
|
|
|
|
menu-list.txt \
|
|
|
|
spidermonkey-extensions-n.tests \
|
|
|
|
failures.txt
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-02-06 12:05:33 -08:00
|
|
|
menu.html: menuhead.html menufoot.html Makefile spidermonkey-n.tests $(TEST_JS)
|
2007-03-22 10:30:00 -07:00
|
|
|
perl mklistpage.pl > menubody.html
|
|
|
|
cat menuhead.html menubody.html menufoot.html > menu.html
|
|
|
|
|
2007-04-30 13:03:56 -07:00
|
|
|
spidermonkey-extensions-n.tests: $(TEST_JS)
|
2007-05-25 17:19:18 -07:00
|
|
|
find . -name '*.js' | grep -v shell.js | grep -v browser.js | grep '/extensions/' | sed 's|\.\/||' | sort > $@
|
2007-04-30 13:03:56 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
menu-list.txt:
|
|
|
|
echo "http://$(TEST_HTTP)/tests/mozilla.org/$(JSDIR)/menu.html" > menu-list.txt
|
|
|
|
|
2009-02-20 16:57:11 -08:00
|
|
|
.PHONY: patterns
|
|
|
|
|
2009-03-14 15:27:07 -07:00
|
|
|
public-failures.txt:
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
confidential-failures.txt:
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
universe.data:
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
confidential-universe.data:
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
patterns: confidential-failures.txt confidential-universe.data public-failures.txt universe.data
|
2009-02-20 16:57:11 -08:00
|
|
|
if [[ -e confidential-failures.txt.expanded ]]; then \
|
|
|
|
cp confidential-failures.txt confidential-failures.txt.save; \
|
|
|
|
export TEST_UNIVERSE=$(CURRDIR)/confidential-universe.data && \
|
|
|
|
./pattern-extracter.pl confidential-failures.txt.expanded > confidential-failures.txt; \
|
|
|
|
fi
|
|
|
|
if [[ -e public-failures.txt.expanded ]]; then \
|
|
|
|
cp public-failures.txt public-failures.txt.save; \
|
|
|
|
./pattern-extracter.pl public-failures.txt.expanded > public-failures.txt; \
|
|
|
|
fi
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-06-25 15:14:01 -07:00
|
|
|
public-failures.txt.expanded: public-failures.txt universe.data
|
2008-07-02 05:28:20 -07:00
|
|
|
./pattern-expander.pl public-failures.txt > public-failures.txt.expanded
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-02-20 16:57:11 -08:00
|
|
|
confidential-failures.txt.expanded: confidential-failures.txt confidential-universe.data
|
|
|
|
export TEST_UNIVERSE=$(CURRDIR)/confidential-universe.data && \
|
2008-07-02 05:28:20 -07:00
|
|
|
./pattern-expander.pl confidential-failures.txt > confidential-failures.txt.expanded
|
2008-02-06 12:05:33 -08:00
|
|
|
|
2008-06-25 15:14:01 -07:00
|
|
|
failures.txt: public-failures.txt.expanded confidential-failures.txt.expanded
|
|
|
|
sort -u public-failures.txt.expanded confidential-failures.txt.expanded > failures.txt
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-06-25 15:14:01 -07:00
|
|
|
clean:
|
|
|
|
rm -f menubody.html menu.html menu-list.txt failures.txt *failures.txt.expanded excluded-*.tests included-*.tests urllist*.html urllist*.tests
|