def writeMakefiles(files):
    pathmap = {}
    for path in files:
        dirp, leaf = path.rsplit('/', 1)
        pathmap.setdefault(dirp, []).append(leaf)

    for k, v in pathmap.iteritems():
        result = writeMakefile.substMakefile('parseFailures.py', [], v)

        fp = open(k + '/Makefile.in', 'wb')
        fp.write(result)
        fp.close()
示例#2
0
def writeMakefiles(files):
    pathmap = {}
    for path in files:
        dirp, leaf = path.rsplit('/', 1)
        pathmap.setdefault(dirp, []).append(leaf)

    for k, v in pathmap.items():
        result = writeMakefile.substMakefile('parseFailures.py', [], v)

        fp = open(k + '/Makefile.in', 'w')
        fp.write(result)
        fp.close()
示例#3
0
def printMakefiles(thissrcdir, dest, directories):
  """Create Makefile.in files for each directory that contains tests we import.
  """
  print("Creating Makefile.ins...")
  for d in directories:
    path = makePath(dest, d)
    print("Creating Makefile.in in %s..." % path)

    subdirs, mochitests, supportfiles = parseManifestFile(dest, d)

    files = ["test_%s" % (mochitest, ) for mochitest in mochitests]
    files.extend(supportfiles)

    result = writeMakefile.substMakefile("importTestsuite.py", subdirs, files)

    fp = open(path + "/Makefile.in", "w")
    fp.write(result)
    fp.close()
def printMakefiles(thissrcdir, dest, directories):
  """Create Makefile.in files for each directory that contains tests we import.
  """
  print "Creating Makefile.ins..."
  for d in directories:
    if d:
      path = "%s/%s" % (dest, d)
    else:
      # Empty directory, i.e., the repository root
      path = dest
    print "Creating Makefile.in in %s..." % (path, )

    subdirs, mochitests, supportfiles = parseManifestFile(dest, d)

    files = ["test_%s" % (mochitest, ) for mochitest in mochitests]
    files.extend(supportfiles)

    result = writeMakefile.substMakefile("importTestsuite.py", subdirs, files)

    fp = open(path + "/Makefile.in", "wb")
    fp.write(result)
    fp.close()
def printMakefiles(thissrcdir, dest, directories):
    """Create Makefile.in files for each directory that contains tests we import.
  """
    print "Creating Makefile.ins..."
    for d in directories:
        if d:
            path = "%s/%s" % (dest, d)
        else:
            # Empty directory, i.e., the repository root
            path = dest
        print "Creating Makefile.in in %s..." % (path, )

        subdirs, mochitests, supportfiles = parseManifestFile(dest, d)

        files = ["test_%s" % (mochitest, ) for mochitest in mochitests]
        files.extend(supportfiles)

        result = writeMakefile.substMakefile("importTestsuite.py", subdirs,
                                             files)

        fp = open(path + "/Makefile.in", "wb")
        fp.write(result)
        fp.close()