Ejemplo n.º 1
0
   tmpdir = join(testdir,tmpdirName)

   if isdir(tmpdir):
      try:
         rmtree(tmpdir)
      except OSError, (e,err):
         if logger: logger.error('%s %s',err,tmpdir)
         print "Please exit all other programs using " + tmpdir
         sys.exit(0)

   # make sure all build files and crash files are created in tmpdir
   os.mkdir(tmpdir)
   os.chdir(tmpdir)

   # symlink from tmpdir to Include directory
   linkToIncludeDir(dirs['src'],'Include')

   # symlink from tmpdir to these allowed helper files
   for f in allowed:
      linkToSource(srcdir,f.filename)

   # symlink from tmpdir to expected output files
   for f in [f for f in os.listdir(testdir) if f.endswith(_OUT)]:
      linkToSource(testdir,f)

   # symlink from tmpdir to the program source code file
   linkToSource(codedir,p.programName)



def callHighlightSourceCodeMarkup(p):
Ejemplo n.º 2
0
   tmpdir = join(testdir,tmpdirName)

   if isdir(tmpdir):
      try:
         rmtree(tmpdir)
      except OSError, (e,err):
         if logger: logger.error('%s %s',err,tmpdir)
         print "Please exit all other programs using " + tmpdir
         sys.exit(0)

   # make sure all build files and crash files are created in tmpdir
   os.mkdir(tmpdir)
   os.chdir(tmpdir)

   # symlink from tmpdir to Include directory
   linkToIncludeDir(dirs['src'],'Include')

   # symlink from tmpdir to these allowed helper files
   for f in allowed:
      linkToSource(srcdir,f.filename)

   # symlink from tmpdir to expected output files
   for f in [f for f in os.listdir(testdir) if f.endswith(_OUT)]:
      linkToSource(testdir,f)

   # symlink from tmpdir to the program source code file
   linkToSource(codedir,p.programName)



def callHighlightSourceCodeMarkup(p):
Ejemplo n.º 3
0
    if isdir(tmpdir):
        try:
            rmtree(tmpdir)
        except OSError, (e, err):
            if logger:
                logger.error("%s %s", err, tmpdir)
            print "Please exit all other programs using " + tmpdir
            sys.exit(0)

    # make sure all build files and crash files are created in tmpdir
    os.mkdir(tmpdir)
    os.chdir(tmpdir)

    # symlink from tmpdir to Include directory
    linkToIncludeDir(dirs["src"], "Include")

    # symlink from tmpdir to these allowed helper files
    for f in allowed:
        linkToSource(srcdir, f.filename)

    # symlink from tmpdir to expected output files
    for f in [f for f in os.listdir(testdir) if f.endswith(_OUT)]:
        linkToSource(testdir, f)

    # symlink from tmpdir to the program source code file
    linkToSource(codedir, p.programName)


def callHighlightSourceCodeMarkup(p):
    hidir = join(dirs["bencher"], "highlight")