From: <bao...@us...> - 2006-04-04 16:06:16
|
Revision: 55 Author: baoilleach Date: 2006-04-04 09:06:01 -0700 (Tue, 04 Apr 2006) ViewCVS: http://svn.sourceforge.net/cclib/?rev=55&view=rev Log Message: ----------- Added tests for initial GAMESS-US calculations (on Linux). Modified Paths: -------------- trunk/test/parseGAMESS.py trunk/test/testall.py Modified: trunk/test/parseGAMESS.py =================================================================== --- trunk/test/parseGAMESS.py 2006-04-04 15:28:30 UTC (rev 54) +++ trunk/test/parseGAMESS.py 2006-04-04 16:06:01 UTC (rev 55) @@ -7,11 +7,15 @@ t = GAMESS(file) t.parse() -os.chdir("basicPCGAMESS") for file in ["dvb_gopt_a.out","dvb_gopt_b.out","dvb_sp.out","dvb_ir.out","dvb_raman.out", "dvb_un_sp.out"]: - t = GAMESS(file) + t = GAMESS(os.path.join("basicPCGAMESS",file)) t.parse() +for file in ["dvb_gopt_a.out","dvb_sp.out"]: + t = GAMESS(os.path.join("basicGAMESS-US",file)) + t.parse() + + Modified: trunk/test/testall.py =================================================================== --- trunk/test/testall.py 2006-04-04 15:28:30 UTC (rev 54) +++ trunk/test/testall.py 2006-04-04 16:06:01 UTC (rev 55) @@ -23,8 +23,12 @@ def setUp(self): self.data = getfile(G03,"basicGaussian03","dvb_gopt.out") -class GamessGeoOptTest(GenericGeoOptTest): +class GamessUSGeoOptTest(GenericGeoOptTest): def setUp(self): + self.data = getfile(GAMESS,"basicGAMESS-US","dvb_gopt_a.out") + +class PCGamessGeoOptTest(GenericGeoOptTest): + def setUp(self): self.data = getfile(GAMESS,"basicPCGAMESS","dvb_gopt_a.out") class ADFGeoOptTest(GenericGeoOptTest): @@ -46,23 +50,30 @@ """These are not formal tests -- but they should be eyeballed.""" logfiles = [ getfile(G03,"basicGaussian03","dvb_gopt.out"), getfile(GAMESS,"basicPCGAMESS","dvb_gopt_a.out"), + getfile(GAMESS,"basicGAMESS-US","dvb_gopt_a.out"), getfile(ADF,"basicADF2004.01","dvb_gopt.adfout") ] print "\n\nMO energies of optimised dvb" - print " ","".join(["%7s" % x for x in ['Gaussian','GAMESS','ADF']]) - print "HOMO", " ".join(["%+2.4f" % x.moenergies[0,x.homos[0]] for x in logfiles]) - print "LUMO", " ".join(["%+2.4f" % x.moenergies[0,x.homos[0]+1] for x in logfiles]) - print "H-L ", " ".join(["%2.4f" % (x.moenergies[0,x.homos[0]+1]-x.moenergies[0,x.homos[0]],) for x in logfiles]) + print " ","".join(["%8s" % x for x in ['Gaussian','PCGAMESS','GAMESS-US','ADF']]) + print "HOMO", " ".join(["%+2.4f" % x.moenergies[0,x.homos[0]] for x in logfiles]) + print "LUMO", " ".join(["%+2.4f" % x.moenergies[0,x.homos[0]+1] for x in logfiles]) + print "H-L ", " ".join(["%2.4f" % (x.moenergies[0,x.homos[0]+1]-x.moenergies[0,x.homos[0]],) for x in logfiles]) + + for x in logfiles: + print x.mosyms if __name__=="__main__": gaussiantests = unittest.makeSuite(GaussianGeoOptTest) - gamesstests = unittest.makeSuite(GamessGeoOptTest) + pcgamesstests = unittest.makeSuite(PCGamessGeoOptTest) + gamessustests = unittest.makeSuite(GamessUSGeoOptTest) adftests = unittest.makeSuite(ADFGeoOptTest) print "\n*** Testing Gaussian dvb_gopt.out ***" unittest.TextTestRunner(verbosity=2).run(gaussiantests) - print "\n\n*** Testing GAMESS dvb_gopt_a.out ***" - unittest.TextTestRunner(verbosity=2).run(gamesstests) + print "\n\n*** Testing PCGAMESS dvb_gopt_a.out ***" + unittest.TextTestRunner(verbosity=2).run(pcgamesstests) + print "\n\n*** Testing GAMESS-US dvb_gopt_a.out ***" + unittest.TextTestRunner(verbosity=2).run(gamessustests) print "\n\n*** Testing ADF dvb_gopt.adfout ***" unittest.TextTestRunner(verbosity=2).run(adftests) print "\n\n*** Visual tests ***" This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |