def run_system_tests(options):
 import subprocess
 major_version = sys.version_info[0]
 call_args = [sys.executable, '-m', 'unittest', '-v', 'gluon.tests']
 if (major_version == 2):
  sys.stderr.write('Python 2.7\n')
 else:
  sys.stderr.write('Experimental Python 3.x.\n')
 if options.with_coverage:
  has_coverage = False
  coverage_exec = ('coverage2' if (major_version == 2) else 'coverage3')
  try:
   import coverage
   has_coverage = True
  except:
   sys.stderr.write('Coverage was not installed, skipping\n')
  coverage_config_file = os.path.join('gluon', 'tests', 'coverage.ini')
  coverage_config = os.environ.setdefault('COVERAGE_PROCESS_START', coverage_config_file)
  call_args = [coverage_exec, 'run', ('--rcfile=%s' % coverage_config), '-m', 'unittest', '-v', 'gluon.tests']
  if has_coverage:
   ret = subprocess.call(call_args)
  else:
   ret = 256
 else:
  ret = subprocess.call(call_args)
 sys.exit((ret and 1))

def run_system_tests ( options ) : import subprocess major_version = sys . version_info [ 0 ] call_args = [ sys . executable , '-m' , 'unittest' , '-v' , 'gluon.tests' ] if ( major_version == 2 ) : sys . stderr . write ( 'Python 2.7\n' ) else : sys . stderr . write ( 'Experimental Python 3.x.\n' ) if options . with_coverage : has_coverage = False coverage_exec = ( 'coverage2' if ( major_version == 2 ) else 'coverage3' ) try : import coverage has_coverage = True except : sys . stderr . write ( 'Coverage was not installed, skipping\n' ) coverage_config_file = os . path . join ( 'gluon' , 'tests' , 'coverage.ini' ) coverage_config = os . environ . setdefault ( 'COVERAGE_PROCESS_START' , coverage_config_file ) call_args = [ coverage_exec , 'run' , ( '--rcfile=%s' % coverage_config ) , '-m' , 'unittest' , '-v' , 'gluon.tests' ] if has_coverage : ret = subprocess . call ( call_args ) else : ret = 256 else : ret = subprocess . call ( call_args ) sys . exit ( ( ret and 1 ) )
runs unittests for gluon .