Exemple #1
0
      (os.path.abspath('.'), os.path.abspath(os.path.join('.', 'dist', 'css3-transforms')))

unreviewed = sys.argv[1:]
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
print "Building CSS2.1 Test Suite from repository %s into %s" % (os.path.abspath(sourcePath), os.path.abspath(distPath))

unreviewed = sys.argv[1:]
print "Requested unreviewed source directories."

# Set up
suite = TestSuite(suiteName, "CSS2.1 Test Suite", "http://www.w3.org/TR/CSS21/")

# Add approved tests
root = join("approved", "css2.1", "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: