Ignore:
Timestamp:
Mar 2, 2017, 2:02:46 PM (8 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Prefixed Controller, Server, and PoolWorker.

  • renamed to molecuilder_...
  • Calculations check target now each starts .._server and .._poolworker.
  • fixed Examples with using molecuilder_mpqc.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Examples/Simple/testsuite-examples-simple-h2o.at

    rc3f795 r440ac3  
    2222
    2323# check that ports are unique over all tests such that they may run in parallel
    24 WORKERPORT=2065
    25 CONTROLLERPORT=2066
    26 WORKERLISTENPORT=2067
     24WORKERPORT=4005
     25CONTROLLERPORT=4006
     26WORKERLISTENPORT=4007
    2727
    2828# start service in background
    29 ${AUTOTEST_PATH}/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &
     29${AUTOTEST_PATH}/molecuilder_server --signal 2 --workerport $WORKERPORT --controllerport $CONTROLLERPORT &
    3030server_pid=$!
    31 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid])
     31AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $server_pid])
    3232
    3333# 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 &
    3535worker_pid=$!
    3636AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
    3737
    3838# 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])
     39AT_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])
    4049AT_CHECK([fgrep "There are 1 fragments" stdout], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
    4150AT_CHECK([fgrep "Energy: -75.6976" stdout], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
     
    4352
    4453# 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])
     54AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid])
     55AT_CHECK([${AUTOTEST_PATH}/molecuilder_controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid])
    4756
    4857# check that server is truely down
Note: See TracChangeset for help on using the changeset viewer.