Changeset cc5db5
- 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, Candidate_v1.7.0, 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)
- Files:
-
- 2 added
- 14 edited
- 11 moved
-
Makefile.am (modified) (1 diff)
-
src/Fragmentation/Automation/Makefile.am (modified) (3 diffs)
-
src/Fragmentation/Automation/unittests/Makefile.am (modified) (4 diffs)
-
src/Jobs/MPQCCommandJob.cpp (moved) (moved from src/Fragmentation/Automation/Jobs/MPQCCommandJob.cpp )
-
src/Jobs/MPQCCommandJob.hpp (moved) (moved from src/Fragmentation/Automation/Jobs/MPQCCommandJob.hpp )
-
src/Jobs/MPQCCommandJob_MPQCData.cpp (moved) (moved from src/Fragmentation/Automation/Jobs/MPQCCommandJob_MPQCData.cpp )
-
src/Jobs/MPQCCommandJob_MPQCData.hpp (moved) (moved from src/Fragmentation/Automation/Jobs/MPQCCommandJob_MPQCData.hpp )
-
src/Jobs/Makefile.am (added)
-
src/Jobs/unittests/MPQCCommandJobUnitTest.cpp (moved) (moved from src/Fragmentation/Automation/unittests/MPQCCommandJobUnitTest.cpp )
-
src/Jobs/unittests/MPQCCommandJobUnitTest.hpp (moved) (moved from src/Fragmentation/Automation/unittests/MPQCCommandJobUnitTest.hpp )
-
src/Jobs/unittests/MPQCDataUnitTest.cpp (moved) (moved from src/Fragmentation/Automation/unittests/MPQCDataUnitTest.cpp )
-
src/Jobs/unittests/MPQCDataUnitTest.hpp (moved) (moved from src/Fragmentation/Automation/unittests/MPQCDataUnitTest.hpp )
-
src/Jobs/unittests/Makefile.am (added)
-
src/Makefile.am (modified) (3 diffs)
-
src/Server.cpp (moved) (moved from src/Fragmentation/Automation/Server.cpp ) (1 diff)
-
src/controller.cpp (moved) (moved from src/Fragmentation/Automation/controller.cpp ) (2 diffs)
-
src/poolworker.cpp (moved) (moved from src/Fragmentation/Automation/poolworker.cpp ) (1 diff)
-
src/unittests/Makefile.am (modified) (2 diffs)
-
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-addingjobs.at (modified) (2 diffs)
-
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-checkstate.at (modified) (1 diff)
-
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-completerun.at (modified) (3 diffs)
-
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-enrollinpool.at (modified) (2 diffs)
-
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-getresults.at (modified) (1 diff)
-
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-mpqc-jobs.at (modified) (2 diffs)
-
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-resubmitjobs.at (modified) (2 diffs)
-
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-server-shutdown.at (modified) (1 diff)
-
tests/regression/Fragmentation/Automation/testsuite-fragmentation-automation-server-worker.at (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Makefile.am
rc586d8 rcc5db5 1 1 ACLOCAL_AMFLAGS = -I m4 2 SUBDIRS = LinearAlgebra src src/Fragmentation/Automationsrc/unittests tests utils doc2 SUBDIRS = LinearAlgebra src/Fragmentation/Automation src src/unittests tests utils doc 3 3 4 4 AUTOMAKE_OPTIONS = subdir-objects -
src/Fragmentation/Automation/Makefile.am
rc586d8 rcc5db5 18 18 JobId.cpp \ 19 19 Jobs/FragmentJob.cpp \ 20 Jobs/MPQCCommandJob.cpp \21 Jobs/MPQCCommandJob_MPQCData.cpp \22 20 Jobs/SystemCommandJob.cpp \ 23 21 Results/FragmentResult.cpp … … 27 25 JobId.hpp \ 28 26 Jobs/FragmentJob.hpp \ 29 Jobs/MPQCCommandJob.hpp \30 Jobs/MPQCCommandJob_MPQCData.hpp \31 27 Jobs/SystemCommandJob.hpp \ 32 28 Results/FragmentResult.hpp … … 106 102 include unittests/Makefile.am 107 103 108 AM_LDFLAGS = -ldl ${BOOST_LDFLAGS}109 AM_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}110 111 bin_PROGRAMS += Controller PoolWorker Server112 113 CONTROLLERSOURCE = \114 FragmentController.cpp \115 Operations/OperationRegistry.cpp116 117 CONTROLLERHEADER = \118 Connection.hpp \119 FragmentController.hpp \120 Operations/OperationRegistry.hpp121 122 POOLWORKERSOURCE = \123 Pool/PoolWorker.cpp124 125 POOLWORKERHEADER = \126 Connection.hpp \127 Pool/PoolWorker.hpp128 129 SERVERSOURCE = \130 FragmentScheduler.cpp \131 Pool/WorkerPool.cpp132 133 SERVERHEADER = \134 Connection.hpp \135 ControllerChoices.hpp \136 FragmentScheduler.hpp \137 Pool/WorkerPool.hpp138 139 Controller_SOURCES = $(CONTROLLERSOURCE) $(CONTROLLERHEADER) controller.cpp140 Controller_LDFLAGS = $(AM_LDFLAGS) $(BOOST_ASIO_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS)141 Controller_CXXFLAGS = $(AM_CPPFLAGS)142 Controller_LDADD = \143 libMolecuilderFragmentationAutomationHelper.la \144 libMolecuilderFragmentationOperations.la \145 libMolecuilderFragmentJobs.la \146 $(top_builddir)/src/libMolecuilderFragmentation.la \147 $(top_builddir)/src/libMolecuilderHelpers.la \148 $(BOOST_ASIO_LIBS) \149 $(BOOST_SERIALIZATION_LIBS) \150 $(BOOST_PROGRAM_OPTIONS_LIBS) \151 $(BOOST_THREAD_LIBS) \152 $(BOOST_SYSTEM_LIBS) \153 ${CodePatterns_LIBS}154 155 PoolWorker_SOURCES = $(POOLWORKERSOURCE) $(POOLWORKERHEADER) poolworker.cpp156 PoolWorker_LDFLAGS = $(AM_LDFLAGS) $(BOOST_ASIO_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS)157 PoolWorker_CXXFLAGS = $(AM_CPPFLAGS) $(BOOST_ASIO_DEBUG)158 PoolWorker_LDADD = \159 libMolecuilderFragmentationAutomationHelper.la \160 libMolecuilderFragmentationOperations.la \161 libMolecuilderFragmentJobs.la \162 $(BOOST_ASIO_LIBS) \163 $(BOOST_SERIALIZATION_LIBS) \164 $(BOOST_PROGRAM_OPTIONS_LIBS) \165 $(BOOST_THREAD_LIBS) \166 $(BOOST_SYSTEM_LIBS) \167 ${CodePatterns_LIBS}168 169 Server_SOURCES = $(SERVERSOURCE) $(SERVERHEADER) Server.cpp170 Server_LDFLAGS = $(AM_LDFLAGS) $(BOOST_ASIO_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS)171 Server_CXXFLAGS = $(AM_CPPFLAGS)172 Server_LDADD = \173 libMolecuilderFragmentationAutomationHelper.la \174 libMolecuilderFragmentationOperations.la \175 libMolecuilderFragmentJobs.la \176 $(BOOST_ASIO_LIBS) \177 $(BOOST_SERIALIZATION_LIBS) \178 $(BOOST_PROGRAM_OPTIONS_LIBS) \179 $(BOOST_THREAD_LIBS) \180 $(BOOST_SYSTEM_LIBS) \181 ${CodePatterns_LIBS}182 -
src/Fragmentation/Automation/unittests/Makefile.am
rc586d8 rcc5db5 6 6 unittests/FragmentResultUnitTest.cpp \ 7 7 unittests/FragmentQueueUnitTest.cpp \ 8 unittests/MPQCCommandJobUnitTest.cpp \9 unittests/MPQCDataUnitTest.cpp \10 8 unittests/OperationQueueUnitTest.cpp \ 11 9 unittests/SystemCommandJobUnitTest.cpp \ … … 17 15 unittests/FragmentResultUnitTest.hpp \ 18 16 unittests/FragmentQueueUnitTest.hpp \ 19 unittests/MPQCCommandJobUnitTest.hpp \20 unittests/MPQCDataUnitTest.hpp \21 17 unittests/OperationQueueUnitTest.hpp \ 22 18 unittests/SystemCommandJobUnitTest.hpp \ … … 28 24 FragmentResultUnitTest \ 29 25 FragmentQueueUnitTest \ 30 MPQCCommandJobUnitTest \31 MPQCDataUnitTest \32 26 OperationQueueUnitTest \ 33 27 SystemCommandJobUnitTest \ … … 86 80 unittests/FragmentResultUnitTest.hpp 87 81 FragmentResultUnitTest_LDADD = \ 88 libMolecuilderFragmentJobs.la \89 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \90 $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \91 ${CodePatterns_LIBS}92 93 MPQCCommandJobUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl94 MPQCCommandJobUnitTest_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}95 MPQCCommandJobUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \96 unittests/MPQCCommandJobUnitTest.cpp \97 unittests/MPQCCommandJobUnitTest.hpp98 MPQCCommandJobUnitTest_LDADD = \99 libMolecuilderFragmentJobs.la \100 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \101 $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \102 ${CodePatterns_LIBS}103 104 MPQCDataUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl105 MPQCDataUnitTest_CPPFLAGS = ${BOOST_CPPFLAGS} $(CPPUNIT_CFLAGS) ${CodePatterns_CFLAGS}106 MPQCDataUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \107 unittests/MPQCDataUnitTest.cpp \108 unittests/MPQCDataUnitTest.hpp109 MPQCDataUnitTest_LDADD = \110 82 libMolecuilderFragmentJobs.la \ 111 83 $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \ -
src/Makefile.am
rc586d8 rcc5db5 17 17 include Graph/Makefile.am 18 18 include Helpers/Makefile.am 19 include Jobs/Makefile.am 19 20 include LinkedCell/Makefile.am 20 21 include Parser/Makefile.am … … 246 247 247 248 248 INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements -I$(top_srcdir)/LinearAlgebra/src 249 INCLUDES = -I$(top_srcdir)/src/unittests -I$(top_srcdir)/src/Actions -I$(top_srcdir)/src/UIElements -I$(top_srcdir)/LinearAlgebra/src -I$(top_srcdir)/src/Fragmentation/Automation 249 250 250 251 libmenu_a_SOURCES = ${UISOURCE} ${UIHEADER} … … 351 352 $(BOOST_THREAD_LIBS) 352 353 354 355 bin_PROGRAMS += Controller PoolWorker Server 356 357 CONTROLLERSOURCE = \ 358 Fragmentation/Automation/FragmentController.cpp \ 359 Fragmentation/Automation/Operations/OperationRegistry.cpp 360 361 CONTROLLERHEADER = \ 362 Fragmentation/Automation/Connection.hpp \ 363 Fragmentation/Automation/FragmentController.hpp \ 364 Fragmentation/Automation/Operations/OperationRegistry.hpp 365 366 POOLWORKERSOURCE = \ 367 Fragmentation/Automation/Pool/PoolWorker.cpp 368 369 POOLWORKERHEADER = \ 370 Fragmentation/Automation/Connection.hpp \ 371 Fragmentation/Automation/Pool/PoolWorker.hpp 372 373 SERVERSOURCE = \ 374 Fragmentation/Automation/FragmentScheduler.cpp \ 375 Fragmentation/Automation/Pool/WorkerPool.cpp 376 377 SERVERHEADER = \ 378 Fragmentation/Automation/Connection.hpp \ 379 Fragmentation/Automation/ControllerChoices.hpp \ 380 Fragmentation/Automation/FragmentScheduler.hpp \ 381 Fragmentation/Automation/Pool/WorkerPool.hpp 382 383 Controller_SOURCES = $(CONTROLLERSOURCE) $(CONTROLLERHEADER) controller.cpp 384 Controller_LDFLAGS = $(AM_LDFLAGS) $(BOOST_ASIO_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) 385 Controller_CXXFLAGS = $(AM_CPPFLAGS) 386 Controller_LDADD = \ 387 libMolecuilderJobs.la \ 388 $(top_builddir)/src/Fragmentation/Automation/libMolecuilderFragmentationAutomationHelper.la \ 389 $(top_builddir)/src/Fragmentation/Automation/libMolecuilderFragmentationOperations.la \ 390 $(top_builddir)/src/Fragmentation/Automation/libMolecuilderFragmentJobs.la \ 391 libMolecuilderFragmentation.la \ 392 libMolecuilderHelpers.la \ 393 $(BOOST_ASIO_LIBS) \ 394 $(BOOST_SERIALIZATION_LIBS) \ 395 $(BOOST_PROGRAM_OPTIONS_LIBS) \ 396 $(BOOST_THREAD_LIBS) \ 397 $(BOOST_SYSTEM_LIBS) \ 398 ${CodePatterns_LIBS} 399 400 PoolWorker_SOURCES = $(POOLWORKERSOURCE) $(POOLWORKERHEADER) poolworker.cpp 401 PoolWorker_LDFLAGS = $(AM_LDFLAGS) $(BOOST_ASIO_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) 402 PoolWorker_CXXFLAGS = $(AM_CPPFLAGS) $(BOOST_ASIO_DEBUG) 403 PoolWorker_LDADD = \ 404 libMolecuilderJobs.la \ 405 $(top_builddir)/src/Fragmentation/Automation/libMolecuilderFragmentationAutomationHelper.la \ 406 $(top_builddir)/src/Fragmentation/Automation/libMolecuilderFragmentationOperations.la \ 407 $(top_builddir)/src/Fragmentation/Automation/libMolecuilderFragmentJobs.la \ 408 $(BOOST_ASIO_LIBS) \ 409 $(BOOST_SERIALIZATION_LIBS) \ 410 $(BOOST_PROGRAM_OPTIONS_LIBS) \ 411 $(BOOST_THREAD_LIBS) \ 412 $(BOOST_SYSTEM_LIBS) \ 413 ${CodePatterns_LIBS} 414 415 Server_SOURCES = $(SERVERSOURCE) $(SERVERHEADER) Server.cpp 416 Server_LDFLAGS = $(AM_LDFLAGS) $(BOOST_ASIO_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) $(BOOST_SERIALIZATION_LDFLAGS) 417 Server_CXXFLAGS = $(AM_CPPFLAGS) 418 Server_LDADD = \ 419 libMolecuilderJobs.la \ 420 $(top_builddir)/src/Fragmentation/Automation/libMolecuilderFragmentationAutomationHelper.la \ 421 $(top_builddir)/src/Fragmentation/Automation/libMolecuilderFragmentationOperations.la \ 422 $(top_builddir)/src/Fragmentation/Automation/libMolecuilderFragmentJobs.la \ 423 $(BOOST_ASIO_LIBS) \ 424 $(BOOST_SERIALIZATION_LIBS) \ 425 $(BOOST_PROGRAM_OPTIONS_LIBS) \ 426 $(BOOST_THREAD_LIBS) \ 427 $(BOOST_SYSTEM_LIBS) \ 428 ${CodePatterns_LIBS} 429 430 353 431 unity_SOURCES = unity.cpp 354 432 unity_CXXFLAGS = $(AM_CPPFLAGS) -
src/Server.cpp
rc586d8 rcc5db5 31 31 #include <signal.h> 32 32 33 #include " atexit.hpp"33 #include "Fragmentation/Automation/atexit.hpp" 34 34 #include "CodePatterns/Info.hpp" 35 35 #include "CodePatterns/Log.hpp" 36 #include "Fragment Scheduler.hpp"36 #include "Fragmentation/Automation/FragmentScheduler.hpp" 37 37 38 38 -
src/controller.cpp
rc586d8 rcc5db5 37 37 #include <vector> 38 38 39 #include " atexit.hpp"39 #include "Fragmentation/Automation/atexit.hpp" 40 40 #include "CodePatterns/Info.hpp" 41 41 #include "CodePatterns/Log.hpp" … … 47 47 #include "Jobs/MPQCCommandJob.hpp" 48 48 #include "Jobs/MPQCCommandJob_MPQCData.hpp" 49 #include " Jobs/SystemCommandJob.hpp"50 #include " Results/FragmentResult.hpp"49 #include "Fragmentation/Automation/Jobs/SystemCommandJob.hpp" 50 #include "Fragmentation/Automation/Results/FragmentResult.hpp" 51 51 52 52 enum CommandIndices { -
src/poolworker.cpp
rc586d8 rcc5db5 34 34 #include <vector> 35 35 36 #include " atexit.hpp"36 #include "Fragmentation/Automation/atexit.hpp" 37 37 #include "CodePatterns/Info.hpp" 38 38 #include "CodePatterns/Log.hpp" 39 #include " Pool/PoolWorker.hpp"39 #include "Fragmentation/Automation/Pool/PoolWorker.hpp" 40 40 41 41 //!> global shutdown function -
src/unittests/Makefile.am
rc586d8 rcc5db5 15 15 include ../../src/Fragmentation/unittests/Makefile.am 16 16 include ../../src/Graph/unittests/Makefile.am 17 include ../../src/Jobs/unittests/Makefile.am 17 18 include ../../src/LinkedCell/unittests/Makefile.am 18 19 include ../../src/Parser/unittests/Makefile.am … … 23 24 include ../../src/UIElements/Menu/unittests/Makefile.am 24 25 25 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src 26 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/LinearAlgebra/src -I$(top_srcdir)/src/Fragmentation/Automation 26 27 27 28 AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl -
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.
