print "Requested unreviewed source directories."

# Set up
suite = TestSuite('css3-transforms', 'CSS Transforms Module Test Suite', 'http://www.w3.org/TR/css3-transforms/')
suite.setFormats(('html5', 'xhtml1'))

# Add approved tests
root = join('approved', 'css3-transforms', 'src')
dirs = listdirs(root)
for dir in dirs:
  if dir in skipDirs or rawDirs.has_key(dir): continue
  testroot = join(root, dir)
  suite.addTestsByExt(testroot, '.xht')
  suite.addTestsByExt(testroot, '.html')
  if exists(join(testroot, reftestPath)):
    suite.addReftests(testroot, reftestPath)
suite.addTestsByExt(root, '.xht')
suite.addTestsByExt(root, '.html')
if exists(join(root, reftestPath)):
  suite.addReftests(root, reftestPath)
for src, dst in rawDirs.items():
  if exists(join(root,src)):
    suite.addRaw(join(root,src), dst)

# Add unreviewed tests
for path in unreviewed:
  if path.endswith('.list'):
    print "Adding unreviewed reftests from %s" % path
    suite.addReftests(basepath(path), basename(path))
  else:
    def grep(file):
Exemple #2
0
unreviewed = sys.argv[1:]
print "Requested unreviewed source directories."

# Set up
suite = TestSuite('css3-color', 'CSS Color Module Level 3 Test Suite',
                  'http://www.w3.org/TR/css3-color/')

# Add approved tests
root = join('approved', 'css3-color', 'src')
dirs = listdirs(root)
for dir in dirs:
    if dir in skipDirs or rawDirs.has_key(dir): continue
    testroot = join(root, dir)
    suite.addTestsByExt(testroot, '.xht')
    if exists(join(testroot, reftestPath)):
        suite.addReftests(testroot, reftestPath)
suite.addTestsByExt(root, '.xht')
if exists(join(root, reftestPath)):
    suite.addReftests(root, reftestPath)
for src, dst in rawDirs.items():
    if exists(join(root, src)):
        suite.addRaw(join(root, src), dst)

# Add unreviewed tests
for path in unreviewed:
    if path.endswith('.list'):
        print "Adding unreviewed reftests from %s" % path
        suite.addReftests(basepath(path), basename(path))
    else:

        def grep(file):