Changeset b2b47f for tests/regression
- Timestamp:
- May 30, 2010, 9:18:14 AM (15 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:
- 318cea
- Parents:
- e3989a
- Location:
- tests/regression
- Files:
-
- 1 added
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
tests/regression/molecuilder.in
re3989a rb2b47f 3 3 # wrapper for testing molecuilder 4 4 5 . atconfig5 . ../../atconfig 6 6 7 7 "${abs_top_builddir}/src/molecuilder" \ -
tests/regression/testsuite.at
re3989a rb2b47f 28 28 H 10. 10. 10. 29 29 ]]) 30 AT_CHECK([file=test.xyz; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/1/post/$file], 0, [ignore], [ignore])30 AT_CHECK([file=test.xyz; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/1/post/$file], 0, [ignore], [ignore]) 31 31 AT_CLEANUP 32 32 33 33 # 2. parsing an xyz 34 34 AT_SETUP([Simple configuration - parsing xyz file]) 35 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/2/pre/test.xyz .], 0)35 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/pre/test.xyz .], 0) 36 36 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -p test.xyz], 0, [ignore], [ignore]) 37 37 AT_CHECK([fgrep "Ion_Type1_1" test.conf], 0, [Ion_Type1_1 10.000000000 10.000000000 10.000000000 0 # molecule nr 0 38 38 ], [ignore]) 39 AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/2/post/$file], 0, [ignore], [ignore])40 AT_CHECK([file=test.conf.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/2/post/$file], 0, [ignore], [ignore])41 AT_CHECK([file=test.conf.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/2/post/$file], 0, [ignore], [ignore])39 AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/$file], 0, [ignore], [ignore]) 40 AT_CHECK([file=test.conf.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/$file], 0, [ignore], [ignore]) 41 AT_CHECK([file=test.conf.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/2/post/$file], 0, [ignore], [ignore]) 42 42 43 43 # 3. add atom … … 45 45 AT_SETUP([Simple configuration - adding atom]) 46 46 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -a 1 10. 10. 10.], 0, [ignore], [ignore]) 47 AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/3/post/$file], 0, [ignore], [ignore])48 AT_CHECK([file=test.conf.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/3/post/$file], 0, [ignore], [ignore])49 AT_CHECK([file=test.conf.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/3/post/$file], 0, [ignore], [ignore])47 AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore]) 48 AT_CHECK([file=test.conf.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore]) 49 AT_CHECK([file=test.conf.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/3/post/$file], 0, [ignore], [ignore]) 50 50 AT_CLEANUP 51 51 52 52 # 4. change the element 53 53 AT_SETUP([Simple configuration - Changing element]) 54 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/4/pre/test.conf test.conf], 0)54 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/4/pre/test.conf test.conf], 0) 55 55 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -E 0 6], 0, [ignore], [ignore]) 56 AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/4/post/$file], 0, [ignore], [ignore])56 AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/4/post/$file], 0, [ignore], [ignore]) 57 57 AT_CLEANUP 58 58 59 59 # 5. remove atom 60 60 AT_SETUP([Simple configuration - Atom removal]) 61 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/5/pre/test.conf .], 0)61 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/pre/test.conf .], 0) 62 62 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -r 0], 0, [ignore], [ignore]) 63 AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/5/post/$file], 0, [ignore], [ignore])64 AT_CHECK([file=test.conf.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/5/post/$file], 0, [ignore], [ignore])65 AT_CHECK([file=test.conf.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/5/post/$file], 0, [ignore], [ignore])63 AT_CHECK([file=test.conf; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/post/$file], 0, [ignore], [ignore]) 64 AT_CHECK([file=test.conf.in; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/post/$file], 0, [ignore], [ignore]) 65 AT_CHECK([file=test.conf.xyz; diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/5/post/$file], 0, [ignore], [ignore]) 66 66 AT_CLEANUP 67 67 … … 75 75 # 7. test some more configuration that all need parameters and count how many complain 76 76 AT_SETUP([Simple configuration - invalid commands on present configs]) 77 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Simple_configuration/7/pre/test.conf .], 0)77 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Simple_configuration/7/pre/test.conf .], 0) 78 78 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -t], 255, [ignore], [stderr]) 79 79 AT_CHECK([fgrep -c "CRITICAL: Not enough or invalid" stderr], 0, [ignore], [ignore]) … … 105 105 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -B 10 0 10 0 0 10], 0, [stdout], [stderr]) 106 106 AT_CHECK([fgrep "BoxLength" test.conf], 0, [stdout], [stderr]) 107 AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Domain/1/post/test.conf], 0, [stdout], [stderr])107 AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/1/post/test.conf], 0, [stdout], [stderr]) 108 108 AT_CLEANUP 109 109 … … 111 111 AT_SETUP([Domain - setting and centering in domain]) 112 112 AT_KEYWORDS([setting domain]) 113 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Domain/2/pre/test.conf .], 0)113 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/2/pre/test.conf .], 0) 114 114 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -b 15 0 15 0 0 15], 0, [stdout], [stderr]) 115 AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Domain/2/post/test.conf], 0, [stdout], [stderr])115 AT_CHECK([diff test.conf ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/2/post/test.conf], 0, [stdout], [stderr]) 116 116 AT_CLEANUP 117 117 … … 119 119 AT_SETUP([Graph - DFS analysis]) 120 120 AT_KEYWORDS([graph]) 121 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Graph/1/pre/test.conf .], 0)121 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Graph/1/pre/test.conf .], 0) 122 122 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -v 3 -D 2.], 0, [stdout], [stderr]) 123 123 AT_CHECK([fgrep -c "No rings were detected in the molecular structure." stdout], 0, [1 … … 129 129 AT_SETUP([Fragmentation - Checking present config]) 130 130 AT_KEYWORDS([fragmentation]) 131 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Fragmentation/1/pre/test.conf .], 0)131 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Fragmentation/1/pre/test.conf .], 0) 132 132 AT_CHECK([fgrep "Ion_Type1_4" test.conf], 0, [Ion_Type1_4 8.532785963 4.787886018 2.645886050 0 # molecule nr 6 133 133 ], [ignore]) … … 136 136 # 2. fragment the molecule and check the number of configs 137 137 AT_SETUP([Fragmentation - Fragmentation]) 138 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Fragmentation/2/pre/test.conf .], 0)138 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Fragmentation/2/pre/test.conf .], 0) 139 139 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -f 1.55 2], 0, [ignore], [ignore], [mkdir std; mv BondFragment*.conf* std/]) 140 140 AT_CHECK([mkdir std; mv BondFragment*.conf* std/], 0) … … 144 144 # 3. check whether parsing of BondFragment files and re-rwriting config files is working (exit code is 2 as we don't need to continue wrt to ...OrderAtSite) 145 145 AT_SETUP([Fragmentation - Fragmentation is at MaxOrder]) 146 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Fragmentation/3/pre/* .], 0)146 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Fragmentation/3/pre/* .], 0) 147 147 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -f 1.55 2], 2, [ignore], [ignore], [mkdir new; mv BondFragment*.conf* new/]) 148 148 AT_CHECK([mkdir new; mv BondFragment*.conf* new/], 0) … … 154 154 AT_SETUP([Tesselation - Non-Convex Envelope]) 155 155 AT_KEYWORDS([Tesselation]) 156 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/1/pre/* .], 0)156 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/pre/* .], 0) 157 157 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -N 4. NonConvexEnvelope], 0, [stdout], [stderr]) 158 AT_CHECK([file=NonConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/1/post/$file], 0, [ignore], [ignore])159 AT_CHECK([file=NonConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/1/post/$file], 0, [ignore], [ignore])158 AT_CHECK([file=NonConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/post/$file], 0, [ignore], [ignore]) 159 AT_CHECK([file=NonConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/1/post/$file], 0, [ignore], [ignore]) 160 160 AT_CLEANUP 161 161 162 162 # 2. convex tesselation (where the non-convex is already convex) 163 163 AT_SETUP([Tesselation - Convex Envelope]) 164 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/2/pre/* .], 0)164 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/pre/* .], 0) 165 165 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -o ConvexEnvelope NonConvexEnvelope], 0, [stdout], [stderr]) 166 AT_CHECK([file=ConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/2/post/$file], 0, [ignore], [ignore])167 AT_CHECK([file=ConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/2/post/$file], 0, [ignore], [ignore])166 AT_CHECK([file=ConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/post/$file], 0, [ignore], [ignore]) 167 AT_CHECK([file=ConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/2/post/$file], 0, [ignore], [ignore]) 168 168 AT_CHECK([fgrep "tesselated volume area is 16.4016 angstrom^3" stdout], 0, [ignore], [ignore]) 169 169 AT_CHECK([diff ConvexEnvelope.dat NonConvexEnvelope.dat], 0, [ignore], [ignore]) … … 172 172 # 3. Big Non convex tesselation 173 173 AT_SETUP([Tesselation - Big non-Convex Envelope]) 174 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/3/pre/* .], 0)174 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/pre/* .], 0) 175 175 AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -N 4. NonConvexEnvelope], 0, [stdout], [stderr]) 176 AT_CHECK([file=NonConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/3/post/$file], 0, [ignore], [ignore])177 AT_CHECK([file=NonConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/3/post/$file], 0, [ignore], [ignore])176 AT_CHECK([file=NonConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/post/$file], 0, [ignore], [ignore]) 177 AT_CHECK([file=NonConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/3/post/$file], 0, [ignore], [ignore]) 178 178 AT_CLEANUP 179 179 180 180 # 4. Big convex tesselation - is not working yet 181 181 #AT_SETUP([Tesselation - big convex Envelope]) 182 #AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/4/pre/* .], 0)182 #AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/pre/* .], 0) 183 183 #AT_CHECK([../../molecuilder test.conf -e ${abs_top_srcdir}/src/ -o ConvexEnvelope NonConvexEnvelope], 0, [stdout], [stderr]) 184 #AT_CHECK([file=ConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/4/post/$file], 0, [ignore], [ignore])185 #AT_CHECK([file=ConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/ regression/Tesselation/4/post/$file], 0, [ignore], [ignore])184 #AT_CHECK([file=ConvexEnvelope.dat; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/post/$file], 0, [ignore], [ignore]) 185 #AT_CHECK([file=ConvexEnvelope.r3d; diff $file ${abs_top_srcdir}/${AUTOTEST_PATH}/Tesselation/4/post/$file], 0, [ignore], [ignore]) 186 186 #AT_CHECK([fgrep "tesselated volume area is 16.4016 angstrom^3" stdout], 0, [ignore], [ignore]) 187 187 #AT_CLEANUP
Note:
See TracChangeset
for help on using the changeset viewer.