Commit 68ff21f9 by John Chodera (MSKCC)

Refined tests to only test building, not simulations.

parent 46cb5381
...@@ -93,8 +93,8 @@ def test_build_and_simulate(): ...@@ -93,8 +93,8 @@ def test_build_and_simulate():
# DEBUG: A few small test cases. # DEBUG: A few small test cases.
pdbcodes_to_build = ['110D', '116D', '117D', '118D', '134D', '135D', '136D', '138D', '143D', '148D', '151D', '152D', '159D', '177D', '17RA', '183D', '184D', '186D', '187D', '188D', '189D', '1A11', '1A13', '1A1P', '1A3P', '1A51', '1A60', '1A83', '1A9L', '1AAF', '1AB1', '1ABZ', '1AC7', '1ACW', '1AD7', '1ADX', '1AFP', '1AFT', '1AFX', '1AG7', '1AGG', '1AGL', '1AGT', '1AHL', '1AIE', '1AJ1', '1AJF', '1AJJ', '1AJU', '1AKG', '1AKX', '1AL1', '1ALE', '1ALF', '1ALG', '1AM0', '1AMB', '1AMC', '1AML', '1ANP', '1ANR', '1ANS', '1AO9', '1AOO'] pdbcodes_to_build = ['110D', '116D', '117D', '118D', '134D', '135D', '136D', '138D', '143D', '148D', '151D', '152D', '159D', '177D', '17RA', '183D', '184D', '186D', '187D', '188D', '189D', '1A11', '1A13', '1A1P', '1A3P', '1A51', '1A60', '1A83', '1A9L', '1AAF', '1AB1', '1ABZ', '1AC7', '1ACW', '1AD7', '1ADX', '1AFP', '1AFT', '1AFX', '1AG7', '1AGG', '1AGL', '1AGT', '1AHL', '1AIE', '1AJ1', '1AJF', '1AJJ', '1AJU', '1AKG', '1AKX', '1AL1', '1ALE', '1ALF', '1ALG', '1AM0', '1AMB', '1AMC', '1AML', '1ANP', '1ANR', '1ANS', '1AO9', '1AOO']
# Also simulate these tests. # Don't simulate any.
pdbcodes_to_simulate = pdbcodes_to_build pdbcodes_to_simulate = []
# Keep track of list of failures. # Keep track of list of failures.
failures = list() failures = list()
...@@ -152,8 +152,8 @@ def test_build_and_simulate(): ...@@ -152,8 +152,8 @@ def test_build_and_simulate():
except Exception as e: except Exception as e:
print "EXCEPTION DURING BUILD" print "EXCEPTION DURING BUILD"
import traceback #import traceback
print traceback.print_exc() #print traceback.print_exc()
print str(e) print str(e)
failures.append((pdbcode, e)) failures.append((pdbcode, e))
...@@ -173,8 +173,8 @@ def test_build_and_simulate(): ...@@ -173,8 +173,8 @@ def test_build_and_simulate():
except Exception as e: except Exception as e:
print "EXCEPTION DURING SIMULATE" print "EXCEPTION DURING SIMULATE"
import traceback #import traceback
print traceback.print_exc() #print traceback.print_exc()
print str(e) print str(e)
failures.append((pdbcode, e)) failures.append((pdbcode, e))
...@@ -191,7 +191,7 @@ def test_build_and_simulate(): ...@@ -191,7 +191,7 @@ def test_build_and_simulate():
print "SUMMARY OF FAILURES:" print "SUMMARY OF FAILURES:"
print "" print ""
for failure in failures: for failure in failures:
(pdbcode, exception) (pdbcode, exception) = failure
print "%6s : %s" % (pdbcode, str(exception)) print "%6s : %s" % (pdbcode, str(exception))
print "" print ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment