Change the mozilla test support. The mozilla tests are now expected
to be located at tests/mozilla/data. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@43 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
fd5b0fc423
commit
adea12f7ab
@ -31,7 +31,7 @@
|
|||||||
# debugging.
|
# debugging.
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
|
|
||||||
prefix mozilla_js_tests
|
prefix mozilla
|
||||||
def FAIL_OK = FAIL, OKAY
|
def FAIL_OK = FAIL, OKAY
|
||||||
|
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ class MozillaTestConfiguration(test.TestConfiguration):
|
|||||||
def ListTests(self, current_path, path, mode):
|
def ListTests(self, current_path, path, mode):
|
||||||
tests = []
|
tests = []
|
||||||
for test_dir in TEST_DIRS:
|
for test_dir in TEST_DIRS:
|
||||||
current_root = join(self.root, test_dir)
|
current_root = join(self.root, 'data', test_dir)
|
||||||
for root, dirs, files in os.walk(current_root):
|
for root, dirs, files in os.walk(current_root):
|
||||||
for dotted in [x for x in dirs if x.startswith('.')]:
|
for dotted in [x for x in dirs if x.startswith('.')]:
|
||||||
dirs.remove(dotted)
|
dirs.remove(dotted)
|
||||||
@ -111,6 +111,7 @@ class MozillaTestConfiguration(test.TestConfiguration):
|
|||||||
for file in files:
|
for file in files:
|
||||||
if (not file in FRAMEWORK) and file.endswith('.js'):
|
if (not file in FRAMEWORK) and file.endswith('.js'):
|
||||||
full_path = root_path + [file[:-3]]
|
full_path = root_path + [file[:-3]]
|
||||||
|
full_path = [x for x in full_path if x != 'data']
|
||||||
if self.Contains(path, full_path):
|
if self.Contains(path, full_path):
|
||||||
test = MozillaTestCase(join(root, file), full_path, self.context,
|
test = MozillaTestCase(join(root, file), full_path, self.context,
|
||||||
mode, framework)
|
mode, framework)
|
||||||
|
Loading…
Reference in New Issue
Block a user