# ============================================================ # Execute the tests. # ============================================================ failures = 0 counter = 0 for conf in conf_list: res = app_tests.runTest(conf) # Output to the user. print ' '.join([path_to_program[counter]] + conf.args), if res: print 'OK' else: failures += 1 print 'FAILED' counter += 1 # Cleanup. ph.deleteTempDir() print '==============================' print ' total tests: %d' % len(conf_list) print ' failed tests: %d' % failures print 'successful tests: %d' % (len(conf_list) - failures) print '==============================' # Compute and return return code. return failures != 0 if __name__ == '__main__': sys.exit(app_tests.main(main))
#!/usr/bin/env python """Sequential tests (num_threads == 0) for RazerS 3. See run_tests.py for the actual tests. We only call the code from there. """ import logging import os.path import sys # Automagically add util/py_lib to PYTHONPATH environment variable. path = os.path.abspath( os.path.join(os.path.dirname(__file__), '..', '..', '..', 'util', 'py_lib')) sys.path.insert(0, path) import seqan.app_tests as app_tests import run_tests if __name__ == '__main__': sys.exit(app_tests.main(run_tests.main, num_threads=0))
conf_list.append(conf) # ============================================================ # Execute the tests. # ============================================================ failures = 0 for conf in conf_list: res = app_tests.runTest(conf) # Output to the user. print ' '.join(['sgip'] + conf.args), if res: print 'OK' else: failures += 1 print 'FAILED' # Cleanup. ph.deleteTempDir() print '==============================' print ' total tests: %d' % len(conf_list) print ' failed tests: %d' % failures print 'successful tests: %d' % (len(conf_list) - failures) print '==============================' # Compute and return return code. return failures != 0 if __name__ == '__main__': sys.exit(app_tests.main(main))
#!/usr/bin/env python2 """Sequential tests (num_threads == 0) for RazerS 3. See run_tests.py for the actual tests. We only call the code from there. """ import logging import os.path import sys # Automagically add util/py_lib to PYTHONPATH environment variable. path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', 'util', 'py_lib')) sys.path.insert(0, path) import seqan.app_tests as app_tests import run_tests if __name__ == '__main__': sys.exit(app_tests.main(run_tests.main, num_threads=0))