From 9f5069b23af50c585d93e9a885267af281bad863 Mon Sep 17 00:00:00 2001 From: maartenkeijzer Date: Sun, 11 Feb 2001 16:35:21 +0000 Subject: [PATCH] run_tests is expanded to run everything (but only once yet, will have to address this later). t-eoSymreg is build to run for just a few generations, otherwise testing it would be an excercise in patience. --- eo/test/run_tests | 35 ++++++++++++++++++++++++++++++++++- eo/test/t-eoSymreg.cpp | 4 ++-- 2 files changed, 36 insertions(+), 3 deletions(-) diff --git a/eo/test/run_tests b/eo/test/run_tests index a1503ef7..5f3b5af1 100755 --- a/eo/test/run_tests +++ b/eo/test/run_tests @@ -1,6 +1,39 @@ #!/bin/sh +echo "Starting t-eo" +./t-eo > eo.log -echo "Starting Replacement Test" +echo "Starting t-eoReplacement" ./t-eoReplacement > replacement.log + +echo "Starting t-eoCheckpointing" +./t-eoCheckpointing > checkpointing.log + +echo "Testing -h" +./t-eoCheckpointing -h > ch2.log + +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 "Finished" +#TODO test if an error occured +echo "Ok" diff --git a/eo/test/t-eoSymreg.cpp b/eo/test/t-eoSymreg.cpp index ca76e772..56d5077f 100644 --- a/eo/test/t-eoSymreg.cpp +++ b/eo/test/t-eoSymreg.cpp @@ -212,7 +212,7 @@ int main() typedef eoPop Pop; const int MaxSize = 100; - const int nGenerations = 500; + const int nGenerations = 10; // only a test, so few generations // Initializor sequence, contains the allowable nodes vector init(init_sequence, init_sequence + 5); @@ -223,7 +223,7 @@ int main() // Root Mean Squared Error Measure RMS eval; - Pop pop(5000, initializer); + Pop pop(50, initializer); apply(eval, pop);