source: test_all.sh@ 31aea2

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

Added script to do a full test of several compilation options at once.

  • Property mode set to 100755
File size: 1.4 KB
Line 
1#!/bin/bash
2
3options=("" \
4 "-DLOG_OBSERVER" \
5 "-DNO_MEMDEBUG" \
6 "-DNO_CACHING" \
7 "-DNDEBUG" \
8 "-DNO_MEMDEBUG -DLOG_OBSERVER" \
9 "-DNO_CACHING -DLOG_OBSERVER" \
10 "-DNO_CACHING -DNO_MEMDEBUG" \
11 "-DNDEBUG -DNO_CACHING" \
12 "-DNO_CACHING -DNO_MEMDEBUG -DLOG_OBSERVER" \
13 );
14
15outfile=$PWD/"test.log";
16
17function configure(){
18 echo "Configuring";
19 CXXFLAGS="$2" $1/configure --prefix=$PWD;
20}
21
22function compile(){
23 echo "Making";
24 make all install;
25}
26
27function check(){
28 echo "Checking";
29 make check;
30}
31
32function test(){
33
34 echo -n " Configuring: " >> $outfile;
35 if configure "$1" "$2"
36 then
37 echo "OK" >> $outfile;
38 else
39 echo "FAIL" >> $outfile;
40 return;
41 fi
42
43 echo -n " Compiling: " >> $outfile;
44 if compile
45 then
46 echo "OK" >> $outfile;
47 else
48 echo "FAIL" >> $outfile;
49 return;
50 fi
51
52 echo -n " Running testsuite: " >> $outfile;
53 if check
54 then
55 echo "OK" >> $outfile;
56 else
57 echo "FAIL" >> $outfile;
58 return;
59 fi
60}
61
62function run(){
63 echo "Testing with \"$1\":" >> $outfile;
64 testdir=`mktemp -d`;
65 basedir=$PWD;
66 cd $testdir;
67 test "$basedir" "$1";
68 cd $basedir;
69 rm -rf $testdir;
70 echo "" >> $outfile;
71}
72
73
74echo -n "Full compilation test for Molecuilder started on " > $outfile;
75date >> $outfile;
76
77for option in "${options[@]}"
78do
79 run "$option";
80done
81
82echo -n "Full compilation test for Molecuilder on " >> $outfile
83date >> $outfile
Note: See TracBrowser for help on using the repository browser.