source: src/unittests/Makefile.am@ 5d4b73

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
Last change on this file since 5d4b73 was e4afb4, checked in by Frederik Heber <heber@…>, 15 years ago

Huge refactoring: Introduction of Traits to Actions.

This change is really big but the introduction of the Trait concept (at least
in its current light form) is so fundamental that lots of pieces had to be
changed in order to get everything working.

The main point why it was necessary to add these traits in the first place was
to comfortably allow for adding extension of Actions information-wise, i.e.
with stuff that is only important for the QtUI, such as icons, or tooltips, ...
This extra information should not be stored with Action itself, as it has
nothing to do with the workings of the Action. And neither should it get
stored with some blown-out-of-proportions MapOfActions class ...

The gist of the change is as follows:

  • OptionTrait contains the token, description, shortform and type of an option, such as ("position", "position in space, none, typeid(Vector)).
  • ActionTrait is the derived form for actions where additionally MenuPosition and MenuName are stored (and probably more to come for the GUI), also we have a set of OptionTrait instances, one for each option of the Action.
  • Action then contains this ActionTrait, specialized for each Action.
  • the preprocessor macros have been enhanced to gather all this information from the .def files.
  • MapOfActions is gone. Completely. Most of its use was to store this extra information and the ValueStorage part now is just in class ValueStorage.
  • ValueStorage is no more an interface to MapOfActions but as the name says a (type-safe) ValueStorage.

Listing the (remaining) changes in alphabetical order of the class:

  • Action
    • member value ::name dropped, ::getName() uses ActionTraits::getName()
    • new define NODEFAULT which is used in paramdefaults in .def files
    • all derived actions classes such as Process, Calculations, MakroAction,... have been adapated to use the ActionTrait concept as well.
  • ActionHistory
    • extraced RedoAction and UndoAction, shifted implementation into their own object files and they use .def files as well (i.e. streamlined with method used for other actions)
  • MenuDescription
    • contain information on Menus such as name, ...
    • new unit test checks for consistency
  • molecule
    • const member functions: Copy(), Output() and OutputBonds()
  • OptionRegistry
    • new registry class for options only
    • we want the same type throughout the code for each token, e.g. "position"
    • the registry containts checks for consistency
  • OptionTrait
    • default values are specified in paramdefaults, none are given by NODEFAULT
    • introduced default for translate-atoms, point-correlation, pair-correlation
  • Registry pattern
    • new unit test, but only sceleton code so far
  • ...Query, also ...Pipe
    • atoms, molecule and elements are now all const
    • also ValueStorage's signatures all have const therein
  • ValueStorage
    • set/queryCurrentValue from MapOfActions
    • at times VectorValue has been in .def files where Vector was in the signature. This is cleared. Such stuff is only present for e.g. BoxVector being queried as a Vector. But this is a feature and intended.
  • World
    • most of the (un)selection functions now work on const atoms and molecules
    • in one case we need a const_cast to remove this, but this is intentional, as the vector of selected atoms stores non-const pointers and this is ok.

There is only one test which had to be changed slightly because a specific
option token as "position" must now have the same type everywhere, e.g. always
Vector.

  • TESTFIX: Simple_configuration/2: --position -> --domain-position (and associated to BoxVector)
  • Property mode set to 100644
File size: 9.3 KB
RevLine 
[18eecf]1# PLEASE adhere to the alphabetical ordering in this Makefile!
2# Also indentation by a single tab
3
[b9907c]4INCLUDES = -I$(top_srcdir)/src
5
[831a14]6AM_LDFLAGS = $(CPPUNIT_LIBS) -ldl
7AM_CXXFLAGS = $(CPPUNIT_CFLAGS)
[be90f1]8
[9fb860]9TESTS = \
[112f90]10 ActionSequenceTest \
[9fb860]11 ActOnAllUnitTest \
12 AnalysisBondsUnitTests \
13 AnalysisCorrelationToPointUnitTest \
14 AnalysisCorrelationToSurfaceUnitTest \
15 AnalysisPairCorrelationUnitTest \
[57adc7]16 atomsCalculationTest \
17 AtomDescriptorTest \
[9fb860]18 BondGraphUnitTest \
[77bc4f]19 BoxUnittest \
[57adc7]20 CacheableTest \
[dfe8ef]21 CountBondsUnitTest \
[9f632c]22 FormulaUnittest \
[fc3b67]23 GSLMatrixSymmetricUnitTest \
24 GSLMatrixUnitTest \
[9fb860]25 GSLVectorUnitTest \
26 InfoUnitTest \
[f60610]27 LinearSystemOfEquationsUnitTest \
[45ef76]28 LineUnittest \
[dcea0f]29 LinkedCellUnitTest \
[9fb860]30 ListOfBondsUnitTest \
31 LogUnitTest \
[57adc7]32 manipulateAtomsTest \
[0eb2dc]33 MatrixUnittest \
[8bcf3f]34 MenuDescriptionUnitTest \
[57adc7]35 MoleculeDescriptorTest \
36 ObserverTest \
[cb2146]37 ParserUnitTest \
[4eb4fe]38 periodentafelTest \
39 PlaneUnittest \
[e4afb4]40 Registry \
[997784]41 ShapeUnittest \
[7ca806]42 SingletonTest \
[9fb860]43 StackClassUnitTest \
44 TesselationUnitTest \
[e9c677]45 Tesselation_BoundaryTriangleUnitTest \
46 Tesselation_InOutsideUnitTest \
[112f90]47 VectorUnitTest
[46d958]48
[9fb860]49
[63c1f6]50check_PROGRAMS = $(TESTS)
[9b6b2f]51noinst_PROGRAMS = $(TESTS) TestRunner
[b9907c]52
[e4decc]53BOOST_LIB = $(BOOST_LDFLAGS) $(BOOST_MPL_LIB) $(BOOST_PROGRAM_OPTIONS_LIB) $(BOOST_FILESYSTEM_LIB) $(BOOST_THREAD_LIB)
[952f38]54GSLLIBS = \
55 ../LinearAlgebra/libMolecuilderLinearAlgebra-@MOLECUILDER_API_VERSION@.la \
56 ../Exceptions/libMolecuilderExceptions-@MOLECUILDER_API_VERSION@.la \
57 ../Helpers/libMolecuilderHelpers-@MOLECUILDER_API_VERSION@.la \
[e4decc]58 $(BOOST_LIB)
[f4b5b7]59ALLLIBS = \
[9ee38b]60 ../UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la \
[f4b5b7]61 ../Actions/libMolecuilderActions-@MOLECUILDER_API_VERSION@.la \
[952f38]62 ${PARSERLIBS} \
[255971]63 ../libMolecuilder-@MOLECUILDER_API_VERSION@.la \
[e4decc]64 ${GSLLIBS}
65
[b37436]66PARSERLIBS = ../Parser/libMolecuilderParser-@MOLECUILDER_API_VERSION@.la
67UILIBS = ../UIElements/libMolecuilderUI-@MOLECUILDER_API_VERSION@.la
[4d9c01]68
[9b6b2f]69TESTSOURCES = \
70 ActOnAllUnitTest.cpp \
[57adc7]71 ActionSequenceTest.cpp \
[9b6b2f]72 analysisbondsunittest.cpp \
73 AnalysisCorrelationToPointUnitTest.cpp \
74 AnalysisCorrelationToSurfaceUnitTest.cpp \
75 AnalysisPairCorrelationUnitTest.cpp \
[57adc7]76 AtomDescriptorTest.cpp \
77 atomsCalculationTest.cpp \
[9b6b2f]78 bondgraphunittest.cpp \
[77bc4f]79 BoxUnittest.cpp \
[57adc7]80 CacheableTest.cpp \
[5f612ee]81 CountBondsUnitTest.cpp \
[9f632c]82 FormulaUnittest.cpp \
[9b6b2f]83 gslmatrixsymmetricunittest.cpp \
84 gslmatrixunittest.cpp \
85 gslvectorunittest.cpp \
86 infounittest.cpp \
87 linearsystemofequationsunittest.cpp \
[45ef76]88 LineUnittest.cpp \
[5f612ee]89 LinkedCellUnitTest.cpp \
[9b6b2f]90 listofbondsunittest.cpp \
91 logunittest.cpp \
[0eb2dc]92 MatrixUnittest.cpp \
[57adc7]93 manipulateAtomsTest.cpp \
[8bcf3f]94 MenuDescriptionUnitTest.cpp \
[57adc7]95 MoleculeDescriptorTest.cpp \
96 ObserverTest.cpp \
[cb2146]97 ParserUnitTest.cpp \
[4eb4fe]98 periodentafelTest.cpp \
99 PlaneUnittest.cpp \
[e4afb4]100 RegistryUnitTest.cpp \
[997784]101 ShapeUnittest.cpp \
[7ca806]102 SingletonTest.cpp \
[9b6b2f]103 stackclassunittest.cpp \
104 tesselationunittest.cpp \
105 tesselation_boundarytriangleunittest.cpp \
106 tesselation_insideoutsideunittest.cpp \
[57adc7]107 vectorunittest.cpp
[9b6b2f]108
109TESTHEADERS = \
[5f612ee]110 ActOnAllUnitTest.hpp \
111 ActionSequenceTest.hpp \
112 analysisbondsunittest.hpp \
113 AnalysisCorrelationToPointUnitTest.hpp \
114 AnalysisCorrelationToSurfaceUnitTest.hpp \
115 AnalysisPairCorrelationUnitTest.hpp \
116 AtomDescriptorTest.hpp \
117 atomsCalculationTest.hpp \
118 bondgraphunittest.hpp \
[77bc4f]119 BoxUnittest.hpp \
[5f612ee]120 CacheableTest.hpp \
121 CountBondsUnitTest.hpp \
[9f632c]122 FormulaUnittest.hpp \
[5f612ee]123 gslmatrixsymmetricunittest.hpp \
124 gslmatrixunittest.hpp \
125 gslvectorunittest.hpp \
126 infounittest.hpp \
127 linearsystemofequationsunittest.hpp \
[45ef76]128 LineUnittest.hpp \
[5f612ee]129 LinkedCellUnitTest.hpp \
130 listofbondsunittest.hpp \
131 logunittest.hpp \
132 manipulateAtomsTest.hpp \
[0eb2dc]133 MatrixUnittest.hpp \
[8bcf3f]134 MenuDescriptionUnitTest.hpp \
[5f612ee]135 MoleculeDescriptorTest.hpp \
[e4afb4]136 ObserverTest.hpp \
[4eb4fe]137 periodentafelTest.hpp \
[b37436]138 ParserUnitTest.hpp \
[fa5a6a]139 PlaneUnittest.hpp \
[e4afb4]140 RegistryUnitTest.hpp \
[5f612ee]141 SingletonTest.hpp \
142 stackclassunittest.hpp \
143 tesselationunittest.hpp \
144 tesselation_boundarytriangleunittest.hpp \
145 tesselation_insideoutsideunittest.hpp \
146 vectorunittest.hpp
[9fb860]147
[9b6b2f]148
[861874]149ActionSequenceTest_SOURCES = UnitTestMain.cpp ActionSequenceTest.cpp ActionSequenceTest.hpp
[b37436]150ActionSequenceTest_LDADD = ${UILIBS} ${ALLLIBS}
[18eecf]151
[9b6b2f]152ActOnAllUnitTest_SOURCES = UnitTestMain.cpp ../test/ActOnAllTest.hpp ActOnAllUnitTest.cpp ActOnAllUnitTest.hpp
[4d9c01]153ActOnAllUnitTest_LDADD = ${ALLLIBS}
[c111db]154
[9b6b2f]155AnalysisBondsUnitTests_SOURCES = UnitTestMain.cpp analysisbondsunittest.cpp analysisbondsunittest.hpp
[4d9c01]156AnalysisBondsUnitTests_LDADD = ${ALLLIBS}
[96c961]157
[9b6b2f]158AnalysisCorrelationToPointUnitTest_SOURCES = UnitTestMain.cpp analysis_correlation.hpp AnalysisCorrelationToPointUnitTest.cpp AnalysisCorrelationToPointUnitTest.hpp
[4d9c01]159AnalysisCorrelationToPointUnitTest_LDADD = ${ALLLIBS}
[c4d4df]160
[9b6b2f]161AnalysisCorrelationToSurfaceUnitTest_SOURCES = UnitTestMain.cpp analysis_correlation.hpp AnalysisCorrelationToSurfaceUnitTest.cpp AnalysisCorrelationToSurfaceUnitTest.hpp
[4d9c01]162AnalysisCorrelationToSurfaceUnitTest_LDADD = ${ALLLIBS}
[c4d4df]163
[9b6b2f]164AnalysisPairCorrelationUnitTest_SOURCES = UnitTestMain.cpp analysis_correlation.hpp AnalysisPairCorrelationUnitTest.cpp AnalysisPairCorrelationUnitTest.hpp
[4d9c01]165AnalysisPairCorrelationUnitTest_LDADD = ${ALLLIBS}
[c111db]166
[6e97e5]167atomsCalculationTest_SOURCES = UnitTestMain.cpp atomsCalculationTest.cpp atomsCalculationTest.hpp
168atomsCalculationTest_LDADD = ${ALLLIBS}
169
[18eecf]170AtomDescriptorTest_SOURCES = UnitTestMain.cpp AtomDescriptorTest.cpp AtomDescriptorTest.hpp
171AtomDescriptorTest_LDADD = ${ALLLIBS}
172
[9b6b2f]173BondGraphUnitTest_SOURCES = UnitTestMain.cpp bondgraphunittest.cpp bondgraphunittest.hpp
[4d9c01]174BondGraphUnitTest_LDADD = ${ALLLIBS}
[46ea3b]175
[77bc4f]176BoxUnittest_SOURCES = UnitTestMain.cpp BoxUnittest.cpp BoxUnittest.hpp
177BoxUnittest_LDADD = ${ALLLIBS}
178
[18eecf]179CacheableTest_SOURCES = UnitTestMain.cpp CacheableTest.cpp CacheableTest.hpp
180CacheableTest_LDADD = ${ALLLIBS}
181
[5f612ee]182CountBondsUnitTest_SOURCES = UnitTestMain.cpp CountBondsUnitTest.cpp CountBondsUnitTest.hpp
183CountBondsUnitTest_LDADD = ${ALLLIBS}
184
[9f632c]185FormulaUnittest_SOURCES = UnitTestMain.cpp FormulaUnittest.cpp FormulaUnittest.hpp
186FormulaUnittest_LDADD = ${ALLLIBS}
187
[9b6b2f]188GSLMatrixSymmetricUnitTest_SOURCES = UnitTestMain.cpp gslmatrixsymmetricunittest.cpp gslmatrixsymmetricunittest.hpp
[57f243]189GSLMatrixSymmetricUnitTest_LDADD = ${ALLLIBS}
[9fb860]190
[9b6b2f]191GSLMatrixUnitTest_SOURCES = UnitTestMain.cpp gslmatrixunittest.cpp gslmatrixunittest.hpp
[57f243]192GSLMatrixUnitTest_LDADD = ${ALLLIBS}
[9fb860]193
[9b6b2f]194GSLVectorUnitTest_SOURCES = UnitTestMain.cpp gslvectorunittest.cpp gslvectorunittest.hpp
[57f243]195GSLVectorUnitTest_LDADD = ${ALLLIBS}
[46ea3b]196
[9b6b2f]197InfoUnitTest_SOURCES = UnitTestMain.cpp infounittest.cpp infounittest.hpp
[4d9c01]198InfoUnitTest_LDADD = ${ALLLIBS}
[8725ed]199
[9b6b2f]200LinearSystemOfEquationsUnitTest_SOURCES = UnitTestMain.cpp linearsystemofequationsunittest.cpp linearsystemofequationsunittest.hpp
[4d9c01]201LinearSystemOfEquationsUnitTest_LDADD = ${ALLLIBS}
[8725ed]202
[45ef76]203LineUnittest_SOURCES = UnitTestMain.cpp LineUnittest.cpp LineUnittest.hpp
204LineUnittest_LDADD = ${ALLLIBS}
205
[5f612ee]206LinkedCellUnitTest_SOURCES = UnitTestMain.cpp LinkedCellUnitTest.cpp LinkedCellUnitTest.hpp
207LinkedCellUnitTest_LDADD = ${ALLLIBS}
[46ea3b]208
[9b6b2f]209ListOfBondsUnitTest_SOURCES = UnitTestMain.cpp listofbondsunittest.cpp listofbondsunittest.hpp
[4d9c01]210ListOfBondsUnitTest_LDADD = ${ALLLIBS}
[266237]211
[9b6b2f]212LogUnitTest_SOURCES = UnitTestMain.cpp logunittest.cpp logunittest.hpp
[4d9c01]213LogUnitTest_LDADD = ${ALLLIBS}
[7326b2]214
[18eecf]215manipulateAtomsTest_SOURCES = UnitTestMain.cpp manipulateAtomsTest.cpp manipulateAtomsTest.hpp
[b37436]216manipulateAtomsTest_LDADD = ${UILIBS} ${ALLLIBS}
[18eecf]217
[0eb2dc]218MatrixUnittest_SOURCES = UnitTestMain.cpp MatrixUnittest.cpp MatrixUnittest.hpp
219MatrixUnittest_LDADD = ${ALLLIBS}
220
[8bcf3f]221MenuDescriptionUnitTest_SOURCES = UnitTestMain.cpp MenuDescriptionUnitTest.cpp MenuDescriptionUnitTest.hpp
222MenuDescriptionUnitTest_LDADD = ${ALLLIBS}
223
[57adc7]224MoleculeDescriptorTest_SOURCES = UnitTestMain.cpp MoleculeDescriptorTest.cpp MoleculeDescriptorTest.hpp
225MoleculeDescriptorTest_LDADD = ${ALLLIBS}
226
[18eecf]227ObserverTest_SOURCES = UnitTestMain.cpp ObserverTest.cpp ObserverTest.hpp
228ObserverTest_LDADD = ${ALLLIBS}
229
230ParserUnitTest_SOURCES = UnitTestMain.cpp ParserUnitTest.cpp ParserUnitTest.hpp
[952f38]231ParserUnitTest_LDADD = ${ALLLIBS}
[18eecf]232
[4eb4fe]233periodentafelTest_SOURCES = UnitTestMain.cpp periodentafelTest.cpp periodentafelTest.hpp
234periodentafelTest_LDADD = ${ALLLIBS}
235
[fa5a6a]236PlaneUnittest_SOURCES = UnitTestMain.cpp PlaneUnittest.cpp PlaneUnittest.hpp
237PlaneUnittest_LDADD = ${ALLLIBS}
238
[e4afb4]239Registry_SOURCES = UnitTestMain.cpp RegistryUnitTest.cpp RegistryUnitTest.hpp
240Registry_LDADD = ${ALLLIBS}
241
[997784]242ShapeUnittest_SOURCES = UnitTestMain.cpp ShapeUnittest.cpp ShapeUnittest.hpp
243ShapeUnittest_LDADD = ${ALLLIBS}
244
[7ca806]245SingletonTest_SOURCES = UnitTestMain.cpp SingletonTest.cpp SingletonTest.hpp
[6d574a]246SingletonTest_LDADD = ${ALLLIBS} $(BOOST_LIB) ${BOOST_THREAD_LIB}
[7ca806]247
[9b6b2f]248StackClassUnitTest_SOURCES = UnitTestMain.cpp stackclassunittest.cpp stackclassunittest.hpp
[4d9c01]249StackClassUnitTest_LDADD = ${ALLLIBS}
[d96277]250
[9b6b2f]251TesselationUnitTest_SOURCES = UnitTestMain.cpp tesselationunittest.cpp tesselationunittest.hpp
[4d9c01]252TesselationUnitTest_LDADD = ${ALLLIBS}
[c15ca2]253
[9b6b2f]254Tesselation_BoundaryTriangleUnitTest_SOURCES = UnitTestMain.cpp tesselation_boundarytriangleunittest.cpp tesselation_boundarytriangleunittest.hpp
[4d9c01]255Tesselation_BoundaryTriangleUnitTest_LDADD = ${ALLLIBS}
[e9c677]256
[9b6b2f]257Tesselation_InOutsideUnitTest_SOURCES = UnitTestMain.cpp tesselation_insideoutsideunittest.cpp tesselation_insideoutsideunittest.hpp
[4d9c01]258Tesselation_InOutsideUnitTest_LDADD = ${ALLLIBS}
[d96277]259
[36166d]260TestRunner_SOURCES = TestRunnerMain.cpp $(TESTSOURCES) $(TESTHEADERS)
[b37436]261TestRunner_LDADD = ${UILIBS} ${ALLLIBS}
[7a1ce5]262
[18eecf]263VectorUnitTest_SOURCES = UnitTestMain.cpp vectorunittest.cpp vectorunittest.hpp
264VectorUnitTest_LDADD = ${ALLLIBS}
[7326b2]265
[18eecf]266#AUTOMAKE_OPTIONS = parallel-tests
Note: See TracBrowser for help on using the repository browser.