Updated makefile.am such that "make check" will run all test programs. Fixed

a number of erronuous return values that made the script fail. What's left
is let Marc clean up the mess he made with t-eoReal and t-eoRealAllESAllAgain
This commit is contained in:
maartenkeijzer 2001-11-07 15:23:24 +00:00
commit beba7bd5c9
14 changed files with 20 additions and 59 deletions

View file

@ -16,7 +16,13 @@ CXXFLAGS = -g -Wall
check_PROGRAMS = t-eoParetoFitness t-eoPareto t-eofitness t-eoRandom t-eobin t-eoVirus\ check_PROGRAMS = t-eoParetoFitness t-eoPareto t-eofitness t-eoRandom t-eobin t-eoVirus\
t-MGE t-MGE1bit t-MGE-control t-eoStateAndParser t-eoCheckpointing t-eoSSGA \ t-MGE t-MGE1bit t-MGE-control t-eoStateAndParser t-eoCheckpointing t-eoSSGA \
t-eoExternalEO t-eoSymreg t-eo t-eoReplacement t-eoSelect t-eoGenOp t-eoGA t-eoReal t-eoVector t-eoESAll t-eoExternalEO t-eoSymreg t-eo t-eoReplacement t-eoSelect t-eoGenOp t-eoGA t-eoReal t-eoVector t-eoESAll
TESTS=run_tests t-eoVector t-eoRandom t-eoSSGA t-eoPareto t-eoParetoFitness
TESTS=$(check_PROGRAMS) run_tests
#TESTS=run_tests t-eoVector t-eoRandom t-eoSSGA t-eoPareto t-eoParetoFitness t-eoReal t-eo \
# t-eoReplacement t-eoExternalEO t-eoGenOp t-eoSelect t-eoStateAndParser t-eoSymreg \
# t-eobin t-eofitness
# removing temporarily t-eoESFull # removing temporarily t-eoESFull
# noinst_PROGRAMS = t-eofitness t-eobin t-eoStateAndParser t-eoCheckpointing t-eoExternalEO t-eoESFull t-eoSymreg t-eo t-eoReplacement t-eoSelect t-eoGenOp t-eoGA t-eoReal # noinst_PROGRAMS = t-eofitness t-eobin t-eoStateAndParser t-eoCheckpointing t-eoExternalEO t-eoESFull t-eoSymreg t-eo t-eoReplacement t-eoSelect t-eoGenOp t-eoGA t-eoReal

View file

@ -1,43 +1,7 @@
#!/bin/sh #!/bin/sh
echo "Starting t-eo"
./t-eo > eo.log
echo "Starting t-eoReplacement"
./t-eoReplacement > replacement.log
echo "Starting t-eoCheckpointing"
./t-eoCheckpointing > checkpointing.log
echo "Testing -h" echo "Testing -h"
./t-eoCheckpointing -h > ch2.log ./t-eoCheckpointing -h
echo "Testing t-eoExternalEO"
./t-eoExternalEO > externalEO.log
echo "Testing t-eoGenOp"
./t-eoGenOp > genOp.log
echo "Testing t-eoSelect"
./t-eoSelect > select.log
echo "Testing t-eoStateAndParser"
# TODO, many different parameter settings and checks
./t-eoStateAndParser > stateAndParser.log
echo "Testing t-eoSymreg"
./t-eoSymreg > symreg.log
echo "Testing t-eobin"
./t-eobin > bin.log
echo "Testing t-eofitness"
./t-eofitness > fitness.log
echo "Testing t-eoGA"
./t-eoGA > t-eoGA.log
echo "Testing t-eoGenOp"
./t-eoGenOp > t-eoGenOp.log
echo "Finished" echo "Finished"

View file

@ -25,7 +25,7 @@ typedef eoVirus<float> Chrom;
int main() int main()
{ {
const unsigned POP_SIZE = 1000, CHROM_SIZE = 128; const unsigned POP_SIZE = 10, CHROM_SIZE = 12;
unsigned i; unsigned i;
eoBooleanGenerator gen; eoBooleanGenerator gen;
@ -63,8 +63,8 @@ int main()
eoCommaReplacement<Chrom> replace; eoCommaReplacement<Chrom> replace;
// Terminators // Terminators
eoGenContinue<Chrom> continuator1(500); eoGenContinue<Chrom> continuator1(10);
eoFitContinue<Chrom> continuator2(128); eoFitContinue<Chrom> continuator2(CHROM_SIZE);
eoCombinedContinue<Chrom> continuator(continuator1, continuator2); eoCombinedContinue<Chrom> continuator(continuator1, continuator2);
eoCheckPoint<Chrom> checkpoint(continuator); eoCheckPoint<Chrom> checkpoint(continuator);
eoStdoutMonitor monitor; eoStdoutMonitor monitor;

View file

@ -25,7 +25,7 @@ typedef eoVirus<float> Chrom;
int main() int main()
{ {
const unsigned POP_SIZE = 1000, CHROM_SIZE = 128; const unsigned POP_SIZE = 10, CHROM_SIZE = 12;
unsigned i; unsigned i;
eoBooleanGenerator gen; eoBooleanGenerator gen;
@ -67,8 +67,8 @@ int main()
eoCommaReplacement<Chrom> replace; eoCommaReplacement<Chrom> replace;
// Terminators // Terminators
eoGenContinue<Chrom> continuator1(500); eoGenContinue<Chrom> continuator1(10);
eoFitContinue<Chrom> continuator2(128); eoFitContinue<Chrom> continuator2(CHROM_SIZE);
eoCombinedContinue<Chrom> continuator(continuator1, continuator2); eoCombinedContinue<Chrom> continuator(continuator1, continuator2);
eoCheckPoint<Chrom> checkpoint(continuator); eoCheckPoint<Chrom> checkpoint(continuator);
eoStdoutMonitor monitor; eoStdoutMonitor monitor;

View file

@ -25,7 +25,7 @@ typedef eoVirus<float> Chrom;
int main() int main()
{ {
const unsigned POP_SIZE = 1000, CHROM_SIZE = 128; const unsigned POP_SIZE = 10, CHROM_SIZE = 12;
unsigned i; unsigned i;
eoBooleanGenerator gen; eoBooleanGenerator gen;
@ -67,8 +67,8 @@ int main()
eoCommaReplacement<Chrom> replace; eoCommaReplacement<Chrom> replace;
// Terminators // Terminators
eoGenContinue<Chrom> continuator1(500); eoGenContinue<Chrom> continuator1(10);
eoFitContinue<Chrom> continuator2(128); eoFitContinue<Chrom> continuator2(CHROM_SIZE);
eoCombinedContinue<Chrom> continuator(continuator1, continuator2); eoCombinedContinue<Chrom> continuator(continuator1, continuator2);
eoCheckPoint<Chrom> checkpoint(continuator); eoCheckPoint<Chrom> checkpoint(continuator);
eoStdoutMonitor monitor; eoStdoutMonitor monitor;

View file

@ -180,5 +180,4 @@ int main(int argc, char **argv)
cout << "Exception: " << e.what() << endl; cout << "Exception: " << e.what() << endl;
} }
return 1;
} }

View file

@ -129,5 +129,4 @@ int main()
cross2(eo1,eo2); cross2(eo1,eo2);
return 1;
}; };

View file

@ -385,7 +385,6 @@ int main(int argc, char **argv)
cout << "Exception: " << e.what() << endl; cout << "Exception: " << e.what() << endl;
} }
return 1;
} }
/* /*

View file

@ -220,5 +220,4 @@ int main(int argc, char **argv)
cout << "Exception: " << e.what() << endl; cout << "Exception: " << e.what() << endl;
} }
return 1;
} }

View file

@ -125,7 +125,7 @@ eoValueParam<unsigned int> tournamentSizeParam = parser.createParam<unsigned int
if (parser.userNeedsHelp()) if (parser.userNeedsHelp())
{ {
parser.printHelp(cout); parser.printHelp(cout);
exit(1); exit(0);
} }
cout << "Testing the Selections\nParents size = " << pSize cout << "Testing the Selections\nParents size = " << pSize
@ -164,7 +164,7 @@ eoValueParam<unsigned int> tournamentSizeParam = parser.createParam<unsigned int
eoStochTournamentSelect<Dummy> stochTourSelect(tRate); eoStochTournamentSelect<Dummy> stochTourSelect(tRate);
testSelectOne<Dummy>(stochTourSelect, oRate, "stochTourSelect"); testSelectOne<Dummy>(stochTourSelect, oRate, "stochTourSelect");
exit(1); exit(0);
// Fitness scaling // Fitness scaling
// eoFitnessScalingSelect<Dummy> fitScaleSelect(rankingPressure); // eoFitnessScalingSelect<Dummy> fitScaleSelect(rankingPressure);
@ -186,7 +186,6 @@ int main(int argc, char **argv)
catch(exception& e) catch(exception& e)
{ {
cout << "Exception: " << e.what() << endl; cout << "Exception: " << e.what() << endl;
return 1;
} }
return 1;
} }

View file

@ -136,5 +136,4 @@ int main(int argc, char **argv)
cout << "Exception: " << e.what() << endl; cout << "Exception: " << e.what() << endl;
} }
return 1;
} }

View file

@ -277,7 +277,6 @@ int main()
print_best<EoType, FitnessType>(pop); print_best<EoType, FitnessType>(pop);
return 1;
} }

View file

@ -212,5 +212,4 @@ int main()
cout << "Exception: " << e.what() << '\n'; cout << "Exception: " << e.what() << '\n';
} }
return 1;
} }

View file

@ -84,7 +84,6 @@ int main()
test_fitness(b1,a1); test_fitness(b1,a1);
return 1;
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------