Bug 642299 (part 2): Add jstests to tinderbox via |make check|. (r=dmandelin)

This also fixes a minor bug in jstests.py, where --no-extensions didn't work on
Windows, which uses '\' not '/'.
This commit is contained in:
Paul Biggar 2011-04-01 21:12:07 -07:00
Родитель 3acd3bfeec
Коммит ce6ebb2d18
2 изменённых файлов: 24 добавлений и 2 удалений

Просмотреть файл

@ -637,8 +637,29 @@ check-jit-test-valgrind::
$(wildcard $(RUN_TEST_PROGRAM)) $(PYTHON) -u $(srcdir)/jit-test/jit_test.py \
--valgrind --no-slow --no-progress --tinderbox --jitflags=$(JITFLAGS) $(DIST)/bin/js$(BIN_SUFFIX)
# jstests doesn't have a --jitflags option, so we need to loop, updating the
# exit code (RC) after each invocation.
# FIXME: MethodJIT doesn't work for 1 test case (bug 644393), so
# --no-extensions is set to skip that test. Remove as soon as possible.
check-jstests:
RC=0; \
for f in `echo "$(JITFLAGS)" | tr ',' '\n'`; \
do \
$(wildcard $(RUN_TEST_PROGRAM)) $(PYTHON) -u $(srcdir)/tests/jstests.py \
--tinderbox --no-progress \
--no-extensions \
--timeout 300 \
--args="`echo $$f | sed 's/\(.\)/ -\1/g'`" \
$(DIST)/bin/js$(BIN_SUFFIX); \
RC=$$(( $$RC || $$?)); \
done; \
exit $$RC
ifndef WINCE
check:: check-jit-test
check:: check-jit-test check-jstests
check-valgrind:: check-jit-test-valgrind
endif

Просмотреть файл

@ -329,7 +329,8 @@ if __name__ == '__main__':
test_list = exclude_tests(test_list, OPTIONS.exclude_file)
if OPTIONS.no_extensions:
test_list = [_ for _ in test_list if '/extensions/' not in _.path]
pattern = os.sep + 'extensions' + os.sep
test_list = [_ for _ in test_list if pattern not in _.path]
if not OPTIONS.random:
test_list = [ _ for _ in test_list if not _.random ]