Changeset cc5db5 for tests/regression/Fragmentation
- Timestamp:
- Jul 6, 2012, 10:18:43 AM (13 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 311137
- Parents:
- c586d8
- git-author:
- Frederik Heber <heber@…> (06/06/12 15:40:14)
- git-committer:
- Frederik Heber <heber@…> (07/06/12 10:18:43)
- Location:
- tests/regression/Fragmentation/Automation
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-addingjobs.at
rc586d8 rcc5db5 10 10 11 11 # start service in background 12 ${AUTOTEST_PATH}/ Fragmentation/Automation/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &12 ${AUTOTEST_PATH}/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 13 13 server_pid=$! 14 14 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 15 15 16 16 # add one jobs via JobAdder 17 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid])17 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid]) 18 18 AT_CHECK([fgrep "Sending 1 jobs ..." stdout], 0, [ignore], [ignore], [kill $server_pid]) 19 19 20 20 # enlist a worker to work on jobs 21 ${AUTOTEST_PATH}/ Fragmentation/Automation/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT &21 ${AUTOTEST_PATH}/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT & 22 22 worker_pid=$! 23 23 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) … … 27 27 28 28 # shutdown 29 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid] $worker_pid)29 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid] $worker_pid) 30 30 31 31 # check that server is truely down -
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-checkstate.at
rc586d8 rcc5db5 9 9 10 10 # start service in background 11 ${AUTOTEST_PATH}/ Fragmentation/Automation/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &11 ${AUTOTEST_PATH}/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 12 12 server_pid=$! 13 13 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 14 14 15 15 # check jobs 16 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command checkresults], 0, [stdout], [ignore], [kill $server_pid])16 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command checkresults], 0, [stdout], [ignore], [kill $server_pid]) 17 17 AT_CHECK([fgrep "0 jobs are calculated so far." stdout], 0, [ignore], [ignore], [kill $server_pid]) 18 18 19 19 # shutdown 20 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid])20 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid]) 21 21 22 22 # check that server is truely down -
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-completerun.at
rc586d8 rcc5db5 10 10 11 11 # start service in background 12 ${AUTOTEST_PATH}/ Fragmentation/Automation/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &12 ${AUTOTEST_PATH}/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 13 13 server_pid=$! 14 14 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 15 15 16 16 # add two jobs via JobAdder 17 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid])17 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid]) 18 18 AT_CHECK([fgrep "Sending 1 jobs ..." stdout], 0, [ignore], [ignore], [kill $server_pid]) 19 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid])19 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid]) 20 20 AT_CHECK([fgrep "Sending 1 jobs ..." stdout], 0, [ignore], [ignore], [kill $server_pid]) 21 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid])21 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid]) 22 22 AT_CHECK([fgrep "Sending 1 jobs ..." stdout], 0, [ignore], [ignore], [kill $server_pid]) 23 23 24 24 # Checking results 25 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command checkresults], 0, [stdout], [ignore], [kill $server_pid])25 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command checkresults], 0, [stdout], [ignore], [kill $server_pid]) 26 26 AT_CHECK([fgrep "#3 are waiting in the queue and #0 jobs are calculated so far." stdout], 0, [ignore], [ignore], [kill $server_pid]) 27 27 28 28 # enlist a worker to work on jobs 29 ${AUTOTEST_PATH}/ Fragmentation/Automation/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT &29 ${AUTOTEST_PATH}/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT & 30 30 worker_pid=$! 31 31 AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) … … 35 35 36 36 # Checking results 37 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command checkresults], 0, [stdout], [ignore], [kill $server_pid $worker_pid])37 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command checkresults], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 38 38 AT_CHECK([fgrep "#0 are waiting in the queue and #3 jobs are calculated so far." stdout], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 39 39 40 40 # get results 41 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command receiveresults], 0, [stdout], [ignore], [kill $server_pid $worker_pid])41 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command receiveresults], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 42 42 AT_CHECK([fgrep "Received 3 results" stdout], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 43 43 AT_CHECK([fgrep -c "Nothing" stdout], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) … … 45 45 46 46 # get no more results 47 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command receiveresults], 0, [stdout], [ignore], [kill $server_pid $worker_pid])47 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command receiveresults], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 48 48 AT_CHECK([grep "Nothing" stdout], 1, [ignore], [ignore], [kill $server_pid $worker_pid]) 49 49 50 50 # shutdown 51 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid])51 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 52 52 53 53 # check that server is truely down -
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-enrollinpool.at
rc586d8 rcc5db5 9 9 10 10 # start service in background 11 ${AUTOTEST_PATH}/ Fragmentation/Automation/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &11 ${AUTOTEST_PATH}/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 12 12 server_pid=$! 13 13 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 14 14 15 15 # check help of poolworker 16 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/PoolWorker -h], 1, [ignore], [ignore], [kill $server_pid])16 AT_CHECK([${AUTOTEST_PATH}/PoolWorker -h], 1, [ignore], [ignore], [kill $server_pid]) 17 17 18 18 # let worker enroll in pool 19 ${AUTOTEST_PATH}/ Fragmentation/Automation/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT &19 ${AUTOTEST_PATH}/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT & 20 20 worker_pid=$! 21 21 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 22 22 23 23 # add one jobs via JobAdder 24 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid $worker_pid])24 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 25 25 AT_CHECK([fgrep "Sending 1 jobs ..." stdout], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 26 26 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) … … 30 30 31 31 # shutdown server as well 32 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid $worker_pid])32 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 33 33 34 34 # check that Server is truely down -
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-getresults.at
rc586d8 rcc5db5 9 9 10 10 # start service in background 11 ${AUTOTEST_PATH}/ Fragmentation/Automation/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &11 ${AUTOTEST_PATH}/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 12 12 server_pid=$! 13 13 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 14 14 15 15 # directly obtain 0 results 16 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command receiveresults], 0, [stdout], [ignore], [kill $server_pid])16 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command receiveresults], 0, [stdout], [ignore], [kill $server_pid]) 17 17 AT_CHECK([fgrep "RESULT" stdout], 1, [stdout], [ignore], [kill $server_pid]) 18 18 19 19 # shutdown 20 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid])20 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid]) 21 21 22 22 # check that server is truely down -
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-mpqc-jobs.at
rc586d8 rcc5db5 20 20 21 21 # start service in background 22 ${AUTOTEST_PATH}/ Fragmentation/Automation/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &22 ${AUTOTEST_PATH}/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 23 23 server_pid=$! 24 24 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 25 25 26 26 # add jobs 27 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command addjobs --executable "../../mpqc" --jobfiles Job??.in], 0, [ignore], [ignore], [kill $server_pid])27 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command addjobs --executable "../../mpqc" --jobfiles Job??.in], 0, [ignore], [ignore], [kill $server_pid]) 28 28 29 29 # enlist a worker to work on jobs 30 ${AUTOTEST_PATH}/ Fragmentation/Automation/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT &30 ${AUTOTEST_PATH}/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT & 31 31 worker_pid=$! 32 32 AT_CHECK([sleep 5], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) 33 33 34 34 # send removeall to server such that all workers shutdown 35 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid])35 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command removeall], 0, [stdout], [ignore], [kill $server_pid $worker_pid]) 36 36 37 37 # check number of done jobs 38 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command receivempqc --fragment-path ${abs_top_srcdir}/tests/regression/Fragmentation/Automation/pre/], 0, [stdout], [ignore], [kill $server_pid])38 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command receivempqc --fragment-path ${abs_top_srcdir}/tests/regression/Fragmentation/Automation/pre/], 0, [stdout], [ignore], [kill $server_pid]) 39 39 AT_CHECK([fgrep "There are 7 fragments" stdout], 0, [ignore], [ignore], [kill $server_pid]) 40 40 AT_CHECK([fgrep "There are 23 atoms" stdout], 0, [ignore], [ignore], [kill $server_pid]) … … 43 43 44 44 # shutdown controller socket 45 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid])45 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid]) 46 46 47 47 # check that server is truely down -
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-resubmitjobs.at
rc586d8 rcc5db5 10 10 11 11 # start service in background 12 ${AUTOTEST_PATH}/ Fragmentation/Automation/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &12 ${AUTOTEST_PATH}/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 13 13 server_pid=$! 14 14 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 15 15 16 16 # add one always failing job via JobAdder 17 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "/bin/false" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid])17 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "/bin/false" --jobcommand "Nothing"], 0, [stdout], [ignore], [kill $server_pid]) 18 18 AT_CHECK([fgrep "Sending 1 jobs ..." stdout], 0, [ignore], [ignore], [kill $server_pid]) 19 19 20 20 # enlist a worker to work on jobs 21 ${AUTOTEST_PATH}/ Fragmentation/Automation/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT 2>workererr &21 ${AUTOTEST_PATH}/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT 2>workererr & 22 22 worker_pid=$! 23 23 AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) … … 31 31 32 32 # shutdown 33 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid] $worker_pid)33 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [ignore], [ignore], [kill $server_pid]) 34 34 35 35 # check that server is truely down -
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-server-shutdown.at
rc586d8 rcc5db5 9 9 10 10 # start service in background 11 ${AUTOTEST_PATH}/ Fragmentation/Automation/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &11 ${AUTOTEST_PATH}/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 12 12 server_pid=$! 13 13 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 14 14 15 15 # shutdown server again 16 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid])16 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid]) 17 17 AT_CHECK([grep "Operation completed." stdout], 0, [stdout], [ignore], [kill $server_pid]) 18 18 -
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-server-worker.at
rc586d8 rcc5db5 10 10 11 11 # start service in background 12 ${AUTOTEST_PATH}/ Fragmentation/Automation/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT &12 ${AUTOTEST_PATH}/Server --workerport $WORKERPORT --controllerport $CONTROLLERPORT & 13 13 server_pid=$! 14 14 AT_CHECK([sleep 1], 0, [ignore], [ignore], [kill $server_pid]) 15 15 16 16 # add one jobs 17 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [ignore], [ignore], [kill $server_pid])17 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command createjobs --executable "cat" --jobcommand "Nothing"], 0, [ignore], [ignore], [kill $server_pid]) 18 18 19 19 # enlist a worker to work on jobs 20 ${AUTOTEST_PATH}/ Fragmentation/Automation/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT &20 ${AUTOTEST_PATH}/PoolWorker -v 5 --signal 2 --server 127.0.0.1:${WORKERPORT} --hostname 127.0.0.1 --listen $WORKERLISTENPORT & 21 21 worker_pid=$! 22 22 AT_CHECK([sleep 2], 0, [ignore], [ignore], [kill $server_pid $worker_pid]) … … 26 26 27 27 # check number of done jobs 28 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command checkresults], 0, [stdout], [ignore], [kill $server_pid])28 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command checkresults], 0, [stdout], [ignore], [kill $server_pid]) 29 29 AT_CHECK([fgrep "#0 are waiting in the queue and #1 jobs are calculated so far." stdout], 0, [ignore], [ignore], [kill $server_pid]) 30 30 31 31 # shutdown controller socket 32 AT_CHECK([${AUTOTEST_PATH}/ Fragmentation/Automation/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid])32 AT_CHECK([${AUTOTEST_PATH}/Controller --server 127.0.0.1:$CONTROLLERPORT --command shutdown], 0, [stdout], [ignore], [kill $server_pid]) 33 33 34 34 # check that server is truely down
Note:
See TracChangeset
for help on using the changeset viewer.