#!/usr/bin/python

import os,sys,common
import fetch
import time

def main():
  if not os.path.exists(common.CORPUS_DIR) or not os.path.exists(common.LIBS_DIR):
    print "Please run python fetch.py first to fetch the corpus and/or necessary tools."
    sys.exit(1)
    return

  project = ""
  if len(sys.argv) == 2:
    project = sys.argv[1]
  else:
    print 'must supply single test name'
    exit()

  print "Running analysis on corpus."
  print time.strftime('%X %x')
  tools = ['randoop']

  print "Cleaning {}".format(project)
  common.clean_project(project)
  print "Analyzing {}".format(project)
  common.run_dljc(project, tools)
  print time.strftime('%X %x')

if __name__ == "__main__":
  main()
else:
  print 'huh?'

Add script to run Randoop for evaluation over corpus
Add script to run Randoop for evaluation over corpus
