Commit adea12f7 authored by mads.s.ager@gmail.com's avatar mads.s.ager@gmail.com

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
parent fd5b0fc4
...@@ -31,7 +31,7 @@ ...@@ -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): ...@@ -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): ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment