#!/usr/bin/env python

import logging, os, sys, unittest
import Test_derivation, Test_derivation_functionality

#####################
#  UNITTEST DRIVER  #
#####################
def unittest_driver() :

  print
  print "*********************************"
  print "*  RUNNING TEST SUITE FOR ORIK  *"
  print "*********************************"
  print

  # make absolutely sure no leftover IR files exist.
  if os.path.exists( "./IR*.db*" ) :
    os.system( "rm ./IR*.db*" )
    logging.info( "  UNIT TEST DRIVER : deleted all rogue IR*.db* files." )


  # run Test_derivation tests
  #suite = unittest.TestLoader().loadTestsFromTestCase( Test_derivation.Test_derivation )
  #unittest.TextTestRunner( verbosity=2, buffer=False ).run( suite )

  # run Test_derivation_functionality tests
  suite = unittest.TestLoader().loadTestsFromTestCase( Test_derivation_functionality.Test_derivation_functionality )
  unittest.TextTestRunner( verbosity=2, buffer=True ).run( suite )


#########################
#  THREAD OF EXECUTION  #
#########################
if __name__ == "__main__" :
  logging.basicConfig( format='%(levelname)s:%(message)s', level=logging.INFO )
  unittest_driver()

# make absolutely sure no leftover IR files exist.
if os.path.exists( "./IR*.db*" ) :
  os.system( "rm ./IR*.db*" )
  logging.info( "  UNIT TEST DRIVER : deleted all rogue IR*.db* files." )



#########
#  EOF  #
#########

e0e00ab55cc5e76faf7c93b86b2995461ce7289a
#!/usr/bin/env python

import logging, os, sys, unittest
import Test_derivation, Test_derivation_functionality

#####################
#  UNITTEST DRIVER  #
#####################
def unittest_driver() :

  print
  print "*********************************"
  print "*  RUNNING TEST SUITE FOR ORIK  *"
  print "*********************************"
  print

  # make absolutely sure no leftover IR files exist.
  if os.path.exists( "./IR*.db*" ) :
    os.system( "rm ./IR*.db*" )
    logging.info( "  UNIT TEST DRIVER : deleted all rogue IR*.db* files." )


  # run Test_derivation tests
  #suite = unittest.TestLoader().loadTestsFromTestCase( Test_derivation.Test_derivation )
  #unittest.TextTestRunner( verbosity=2, buffer=False ).run( suite )

  # run Test_derivation_functionality tests
  suite = unittest.TestLoader().loadTestsFromTestCase( Test_derivation_functionality.Test_derivation_functionality )
  unittest.TextTestRunner( verbosity=2, buffer=True ).run( suite )


#########################
#  THREAD OF EXECUTION  #
#########################
if __name__ == "__main__" :
  logging.basicConfig( format='%(levelname)s:%(message)s', level=logging.INFO )
  unittest_driver()

# make absolutely sure no leftover IR files exist.
if os.path.exists( "./IR*.db*" ) :
  os.system( "rm ./IR*.db*" )
  logging.info( "  UNIT TEST DRIVER : deleted all rogue IR*.db* files." )



#########
#  EOF  #
#########
