Changeset 440ac3
- Timestamp:
- Mar 2, 2017, 2:02:46 PM (8 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
- Children:
- c2f543
- Parents:
- c3f795
- git-author:
- Frederik Heber <heber@…> (02/20/17 10:44:43)
- git-committer:
- Frederik Heber <heber@…> (03/02/17 14:02:46)
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
configure.ac
rc3f795 r440ac3 523 523 tests/Calculations/Makefile]) 524 524 AC_CONFIG_FILES([tests/Calculations/molecuilder], [chmod +x tests/Calculations/molecuilder]) 525 AC_CONFIG_FILES([tests/Calculations/molecuilder_mpqc], [chmod +x tests/Calculations/molecuilder_mpqc]) 525 526 526 527 AC_CONFIG_TESTDIR(tests/CodeChecks) … … 578 579 tests/Examples/Makefile]) 579 580 AC_CONFIG_FILES([tests/Examples/molecuilder], [chmod +x tests/Examples/molecuilder]) 581 AC_CONFIG_FILES([tests/Examples/molecuilder_mpqc], [chmod +x tests/Examples/molecuilder_mpqc]) 580 582 581 583 AC_CONFIG_FILES([ -
src/Makefile.am
rc3f795 r440ac3 407 407 $(JobMarket_LIBS) 408 408 409 bin_PROGRAMS += Controller PoolWorker Server410 411 Controller_SOURCES = controller.cpp controller_AddOn_MPQCCommandJob.cpp412 Controller_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS)413 Controller_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)414 Controller_LDADD = \409 bin_PROGRAMS += molecuilder_controller molecuilder_poolworker molecuilder_server 410 411 molecuilder_controller_SOURCES = controller.cpp controller_AddOn_MPQCCommandJob.cpp 412 molecuilder_controller_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) 413 molecuilder_controller_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS) 414 molecuilder_controller_LDADD = \ 415 415 libFragmentationAutomationController.la \ 416 416 libMolecuilderFragmentation_getFromKeysetStub.la \ … … 427 427 ${CodePatterns_LIBS} 428 428 429 PoolWorker_SOURCES = poolworker.cpp430 PoolWorker_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS)431 PoolWorker_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)432 PoolWorker_LDADD = \429 molecuilder_poolworker_SOURCES = poolworker.cpp 430 molecuilder_poolworker_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) 431 molecuilder_poolworker_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS) 432 molecuilder_poolworker_LDADD = \ 433 433 libMolecuilderJobs.la \ 434 434 libMolecuilderJobs_Work.la \ … … 440 440 ${CodePatterns_LIBS} 441 441 442 Server_SOURCES = Server.cpp443 Server_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS)444 Server_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS)445 Server_LDADD = \442 molecuilder_server_SOURCES = Server.cpp 443 molecuilder_server_LDFLAGS = $(AM_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) 444 molecuilder_server_CPPFLAGS = $(AM_CPPFLAGS) $(JobMarket_CFLAGS) 445 molecuilder_server_LDADD = \ 446 446 libMolecuilderJobs.la \ 447 447 libMolecuilderJobs_Work.la \ -
tests/Examples/PartialChargeFitting/testsuite-examples-partialchargefitting-h2o.at
rc3f795 r440ac3 22 22 23 23 # check that ports are unique over all tests such that they may run in parallel 24 WORKERPORT= 207525 CONTROLLERPORT= 207626 WORKERLISTENPORT= 207724 WORKERPORT=4015 25 CONTROLLERPORT=4016 26 WORKERLISTENPORT=4017 27 27 28 28 # start service in background 29 ${AUTOTEST_PATH}/ Server--workerport $WORKERPORT --controllerport $CONTROLLERPORT &29 ${AUTOTEST_PATH}/molecuilder_server --signal 2 --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 30 30 server_pid=$! 31 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid])31 AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $server_pid]) 32 32 33 33 # enlist a worker to work on jobs 34 ${AUTOTEST_PATH}/../ThirdParty/mpqc_open/src/bin/mpqc/mpqc -n "+v 5 ++signal 2 ++server 127.0.0.1:${WORKERPORT} ++hostname 127.0.0.1 ++listen $WORKERLISTENPORT" & 34 ../../molecuilder_mpqc +v 5 ++signal 2 ++server 127.0.0.1:${WORKERPORT} ++hostname 127.0.0.1 ++listen $WORKERLISTENPORT &/ 35 35 worker_pid=$! 36 36 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) … … 44 44 45 45 # removeall to remove workers, then shutdown for server itself 46 AT_CHECK([${AUTOTEST_PATH}/ Controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid])47 AT_CHECK([${AUTOTEST_PATH}/ Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid])46 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 47 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 48 48 49 49 # check that server is truely down -
tests/Examples/Simple/testsuite-examples-simple-h2o.at
rc3f795 r440ac3 22 22 23 23 # check that ports are unique over all tests such that they may run in parallel 24 WORKERPORT= 206525 CONTROLLERPORT= 206626 WORKERLISTENPORT= 206724 WORKERPORT=4005 25 CONTROLLERPORT=4006 26 WORKERLISTENPORT=4007 27 27 28 28 # start service in background 29 ${AUTOTEST_PATH}/ Server--workerport $WORKERPORT --controllerport $CONTROLLERPORT &29 ${AUTOTEST_PATH}/molecuilder_server --signal 2 --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 30 30 server_pid=$! 31 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid])31 AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $server_pid]) 32 32 33 33 # enlist a worker to work on jobs 34 ${AUTOTEST_PATH}/../ThirdParty/mpqc_open/src/bin/mpqc/mpqc -n "+v 5 ++signal 2 ++server 127.0.0.1:${WORKERPORT} ++hostname 127.0.0.1 ++listen $WORKERLISTENPORT"&34 ../../molecuilder_mpqc +v 5 ++signal 2 ++server 127.0.0.1:${WORKERPORT} ++hostname 127.0.0.1 ++listen $WORKERLISTENPORT & 35 35 worker_pid=$! 36 36 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 37 37 38 38 # use molecuilder to add jobs, wait for their completion and obtain results 39 AT_CHECK([../../molecuilder -i ${abs_top_srcdir}/tests/Examples/Simple/pre/water.pdb -v 3 --select-all-atoms --fragment-molecule BondFragment --order 1 --distance 2 --fragment-automation --server-address 127.0.0.1 --server-port $CONTROLLERPORT], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 39 AT_CHECK([../../molecuilder \ 40 -i ${abs_top_srcdir}/tests/Examples/Simple/pre/water.pdb \ 41 -v 3 --select-all-atoms \ 42 --fragment-molecule BondFragment \ 43 --order 1 \ 44 --distance 2 \ 45 --fragment-automation \ 46 --server-address 127.0.0.1 \ 47 --server-port $CONTROLLERPORT \ 48 --DoLongrange 0], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 40 49 AT_CHECK([fgrep "There are 1 fragments" stdout], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 41 50 AT_CHECK([fgrep "Energy: -75.6976" stdout], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) … … 43 52 44 53 # removeall to remove workers, then shutdown for server itself 45 AT_CHECK([${AUTOTEST_PATH}/ Controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid])46 AT_CHECK([${AUTOTEST_PATH}/ Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid])54 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 55 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 47 56 48 57 # check that server is truely down -
tests/JobMarket/testsuite-jobmarket-molecuilderrun.at
rc3f795 r440ac3 36 36 37 37 # start service in background 38 ${AUTOTEST_PATH}/ Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &38 ${AUTOTEST_PATH}/molecuilder_server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 39 39 server_pid=$! 40 40 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 41 41 42 42 # enlist a worker to work on jobs 43 ${AUTOTEST_PATH}/ PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT &43 ${AUTOTEST_PATH}/molecuilder_poolworker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT & 44 44 worker_pid=$! 45 45 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) … … 55 55 56 56 # removeall to remove workers, then shutdown for server itself 57 AT_CHECK([${AUTOTEST_PATH}/ Controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid])58 AT_CHECK([${AUTOTEST_PATH}/ Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid])57 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 58 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 59 59 60 60 # check that server is truely down -
tests/JobMarket/testsuite-jobmarket-mpqc-jobs.at
rc3f795 r440ac3 37 37 38 38 # start service in background 39 ${AUTOTEST_PATH}/ Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &39 ${AUTOTEST_PATH}/molecuilder_server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 40 40 server_pid=$! 41 41 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 42 42 43 43 # add jobs 44 AT_CHECK([${AUTOTEST_PATH}/ Controller --server 127.0.0.1:$CONTROLLERPORT --command addjobs --executable "../../mpqc" --jobfiles Job??.in], 0, [ignore], [ignore], [kill $server_pid])44 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command addjobs --executable "../../mpqc" --jobfiles Job??.in], 0, [ignore], [ignore], [kill $server_pid]) 45 45 46 46 # enlist a worker to work on jobs 47 ${AUTOTEST_PATH}/ PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT &47 ${AUTOTEST_PATH}/molecuilder_poolworker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT & 48 48 worker_pid=$! 49 49 AT_CHECK([sleep 5], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 50 50 51 51 # send removeall to server such that all workers shutdown 52 AT_CHECK([${AUTOTEST_PATH}/ Controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid])52 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 53 53 54 54 # check number of done jobs 55 55 NoJobs=`ls -l ${abs_top_srcdir}/tests/JobMarket/pre/BondFragment* 2>/dev/null | wc -l` 56 AT_CHECK([${AUTOTEST_PATH}/ Controller --server 127.0.0.1:$CONTROLLERPORT --command receivempqc --fragment-path ${abs_top_srcdir}/tests/JobMarket/pre/ --ids `seq --sep=" " 1 $NoJobs`], 0, [stdout], [ignore], [kill $server_pid])56 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command receivempqc --fragment-path ${abs_top_srcdir}/tests/JobMarket/pre/ --ids `seq --sep=" " 1 $NoJobs`], 0, [stdout], [ignore], [kill $server_pid]) 57 57 AT_CHECK([fgrep "There are 7 fragments" stdout], 0, [ignore], [ignore], [kill $server_pid]) 58 58 AT_CHECK([fgrep "There are 23 atoms" stdout], 0, [ignore], [ignore], [kill $server_pid]) … … 61 61 62 62 # shutdown controller socket 63 AT_CHECK([${AUTOTEST_PATH}/ Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid])63 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid]) 64 64 65 65 # check that server is truely down -
tests/integration/testsuite-integration-mpqc-jobs.at
rc3f795 r440ac3 18 18 ### test mpqc jobs 19 19 20 # perform test with PoolWorkers using stastand-innmpqc20 # perform test with PoolWorkers using molecuilder_mpqc 21 21 AT_SETUP([Integration - fragmentation plus automated fragment calculation via mpqc]) 22 22 AT_KEYWORDS([fragmentation automation server poolworker molecuilder_mpqc]) … … 28 28 29 29 # start service in background 30 ${AUTOTEST_PATH}/ Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &30 ${AUTOTEST_PATH}/molecuilder_server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 31 31 server_pid=$! 32 32 AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $server_pid]) … … 34 34 35 35 # enlist a worker to work on jobs 36 ../../molecuilder_mpqc +v 5 ++s ignal 2 ++server 127.0.0.1:${WORKERPORT} ++hostname 127.0.0.1 ++listen $WORKERLISTENPORT &36 ../../molecuilder_mpqc +v 5 ++server 127.0.0.1:${WORKERPORT} ++hostname 127.0.0.1 ++listen $WORKERLISTENPORT & 37 37 worker_pid=$! 38 38 AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) … … 60 60 61 61 # send removeall to server such that all workers shutdown 62 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 63 64 # check number of done jobs 65 NoJobs=`ls -l ${abs_top_srcdir}/tests/JobMarket/pre/BondFragment* 2>/dev/null | wc -l` 66 AT_CHECK([fgrep "There are 3 fragments" stdout], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 67 AT_CHECK([fgrep "There are 1 molecules to consider" stdout], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 68 AT_CHECK([fgrep "8 atoms selected." stdout], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 69 AT_CHECK([tail -n 1 BondFragment_Energy.dat | awk '{if ($2!=-78.79298686) exit 1}'], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 70 71 # shutdown controller socket 72 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 62 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 73 63 74 64 # check that worker is truely down 75 65 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $worker_pid $server_pid]) 76 66 AT_CHECK([kill $worker_pid], 1, [ignore], [ignore], [kill $server_pid]) 67 68 # check number of done jobs 69 AT_CHECK([fgrep "There are 3 fragments" stdout], 0, [ignore], [ignore], [kill $server_pid]) 70 AT_CHECK([fgrep "There are 1 molecules to consider" stdout], 0, [ignore], [ignore], [kill $server_pid]) 71 AT_CHECK([fgrep "8 atoms selected." stdout], 0, [ignore], [ignore], [kill $server_pid]) 72 AT_CHECK([tail -n 1 BondFragment_Energy.dat | awk '{if ($2!=-78.79298686) exit 1}'], 0, [ignore], [ignore], [kill $server_pid]) 73 74 # shutdown controller socket 75 AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid]) 77 76 78 77 # check that server is truely down
Note:
See TracChangeset
for help on using the changeset viewer.