Changeset 3c8e8b for src


Ignore:
Timestamp:
Dec 16, 2010, 11:47:44 PM (14 years ago)
Author:
Frederik Heber <heber@…>
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:
fff54f
Parents:
e7da1f
git-author:
Frederik Heber <heber@…> (12/16/10 20:29:04)
git-committer:
Frederik Heber <heber@…> (12/16/10 23:47:44)
Message:

Moved atomsCalculationTest to Actions/unittests/AtomsCalculationUnitTest.

Location:
src
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • src/Actions/unittests/AtomsCalculationUnitTest.cpp

    re7da1f r3c8e8b  
    77
    88/*
    9  * atomsCalculationTest.cpp
     9 * AtomsCalculationUnitTest.cpp
    1010 *
    1111 *  Created on: Feb 19, 2010
     
    1818#endif
    1919
    20 #include "atomsCalculationTest.hpp"
     20#include "AtomsCalculationUnitTest.hpp"
    2121
    2222#include <cppunit/CompilerOutputter.h>
     
    4242
    4343// Registers the fixture into the 'registry'
    44 CPPUNIT_TEST_SUITE_REGISTRATION( atomsCalculationTest );
     44CPPUNIT_TEST_SUITE_REGISTRATION( AtomsCalculationTest );
    4545
    4646// set up and tear down
    47 void atomsCalculationTest::setUp(){
     47void AtomsCalculationTest::setUp(){
    4848  World::getInstance();
    4949  for(int i=0;i<ATOM_COUNT;++i){
     
    5252  }
    5353}
    54 void atomsCalculationTest::tearDown(){
     54void AtomsCalculationTest::tearDown(){
    5555  World::purgeInstance();
    5656  ActionRegistry::purgeInstance();
     
    8888}
    8989
    90 void atomsCalculationTest::testCalculateSimple(){
     90void AtomsCalculationTest::testCalculateSimple(){
    9191  ActionTraits FooTrait("FOO");
    9292  AtomsCalculation<atomId_t> *calc = World::getInstance().calcOnAtoms<atomId_t>(boost::bind(&atom::getId,_1),FooTrait,AllAtoms());
     
    9696}
    9797
    98 void atomsCalculationTest::testCalculateExcluded(){
     98void AtomsCalculationTest::testCalculateExcluded(){
    9999  ActionTraits FooTrait("FOO");
    100100  atomId_t excluded = atomIds[ATOM_COUNT/2];
  • src/Actions/unittests/AtomsCalculationUnitTest.hpp

    re7da1f r3c8e8b  
    11/*
    2  * atomsCalculationTest.hpp
     2 * AtomsCalculationUnitTest.hpp
    33 *
    44 *  Created on: Feb 19, 2010
     
    66 */
    77
    8 #ifndef ATOMSCALCULATIONTEST_HPP_
    9 #define ATOMSCALCULATIONTEST_HPP_
     8#ifndef ATOMSCALCULATIONUNITTEST_HPP_
     9#define ATOMSCALCULATIONUNITTEST_HPP_
    1010
    1111#include <cppunit/extensions/HelperMacros.h>
     
    1818class atom;
    1919
    20 class atomsCalculationTest :  public CppUnit::TestFixture
     20class AtomsCalculationTest :  public CppUnit::TestFixture
    2121{
    22   CPPUNIT_TEST_SUITE( atomsCalculationTest );
     22  CPPUNIT_TEST_SUITE( AtomsCalculationTest );
    2323  CPPUNIT_TEST ( testCalculateSimple );
    2424  CPPUNIT_TEST ( testCalculateExcluded );
     
    3737};
    3838
    39 #endif /* ATOMSCALCULATIONTEST_HPP_ */
     39#endif /* ATOMSCALCULATIONUNITTEST_HPP_ */
  • src/Actions/unittests/Makefile.am

    re7da1f r3c8e8b  
    1010TESTS = \
    1111  ActionRegistryUnitTest \
    12   ActionSequenceUnitTest
     12  ActionSequenceUnitTest \
     13  AtomsCalculationUnitTest
    1314
    1415check_PROGRAMS = $(TESTS)
     
    4243ActionSequenceUnitTest_LDADD = ${UILIBS} ${ALLLIBS}
    4344
     45AtomsCalculationUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \
     46        AtomsCalculationUnitTest.cpp \
     47        AtomsCalculationUnitTest.hpp
     48AtomsCalculationUnitTest_LDADD = ${ALLLIBS}
     49
    4450
    4551#AUTOMAKE_OPTIONS = parallel-tests
  • src/unittests/Makefile.am

    re7da1f r3c8e8b  
    1818  AnalysisCorrelationToSurfaceUnitTest \
    1919  AnalysisPairCorrelationUnitTest \
    20   atomsCalculationTest \
    2120  BondGraphUnitTest \
    2221  BoxUnittest \
     
    7776  AnalysisPairCorrelationUnitTest.cpp \
    7877  ../Descriptors/unittests/AtomDescriptorUnitTest.cpp \
    79   atomsCalculationTest.cpp \
     78  ../Actions/unittests/AtomsCalculationUnitTest.cpp \
    8079  bondgraphunittest.cpp \
    8180  BoxUnittest.cpp \
     
    117116  AnalysisPairCorrelationUnitTest.hpp \
    118117  ../Descriptors/unittests/AtomDescriptorUnitTest.hpp \
    119   atomsCalculationTest.hpp \
     118  ../Actions/unittests/AtomsCalculationUnitTest.hpp \
    120119  bondgraphunittest.hpp \
    121120  BoxUnittest.hpp \
     
    163162AnalysisPairCorrelationUnitTest_LDADD = ${ALLLIBS}
    164163
    165 atomsCalculationTest_SOURCES = UnitTestMain.cpp atomsCalculationTest.cpp atomsCalculationTest.hpp
    166 atomsCalculationTest_LDADD = ${ALLLIBS}
    167 
    168164BondGraphUnitTest_SOURCES = UnitTestMain.cpp bondgraphunittest.cpp bondgraphunittest.hpp
    169165BondGraphUnitTest_LDADD = ${ALLLIBS}
Note: See TracChangeset for help on using the changeset viewer.