source: ThirdParty/JobMarket/tests/regression/testsuite-falsehost.at@ c300e2

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 Debian_Package_split Debian_package_split_molecuildergui_only Disabling_MemDebug Docu_Python_wait EmpiricalPotential_contain_HomologyGraph_documentation 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
Last change on this file since c300e2 was c300e2, checked in by Frederik Heber <heber@…>, 8 years ago

Adding JobMarket test when worker has unresolvable hostname.

  • so far, Server then simply stops which is not wanted.
  • this test is marked as XFAIL.
  • Property mode set to 100644
File size: 1.7 KB
Line 
1### fragment the molecule and check the number of configs
2
3AT_SETUP([Fragmentation - Automation: Worker sets false hostname])
4AT_KEYWORDS([fragmentation automation controller poolworker server falsehost])
5AT_XFAIL_IF([/bin/true])
6
7WORKERPORT=1080
8CONTROLLERPORT=1081
9WORKERLISTENPORT=1082
10
11TIMEOUT=3
12
13# start service in background
14${AUTOTEST_PATH}/JobMarketServer -v 5 --workerport $WORKERPORT --controllerport $CONTROLLERPORT --timeout $TIMEOUT &
15server_pid=$!
16AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid])
17
18# let worker enroll in pool
19${AUTOTEST_PATH}/JobMarketPoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname falsehost --listen $WORKERLISTENPORT &
20worker_pid=$!
21AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
22
23# remove worker
24AT_CHECK([${AUTOTEST_PATH}/JobMarketController --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
25AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
26AT_CHECK([kill -s 0 $server_pid], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
27AT_CHECK([kill -s 0 $worker_pid], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
28
29# shutdown server, should now terminate as no workers are left
30AT_CHECK([${AUTOTEST_PATH}/JobMarketController --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
31
32# we have to kill worker as he cannot know that Server is gone
33AT_CHECK([kill $worker_pid], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
34
35# check that Server is truely down
36AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid])
37AT_CHECK([kill $server_pid $worker_pid], 1, [ignore], [ignore])
38
39AT_CLEANUP
Note: See TracBrowser for help on using the repository browser.