#what functions does the testsuite export... #there is one function pertest case domain for $f (keys %DATA) { print " runTestCase$DATA{$f}{’domain’}: () -> Integer;\n" }
print <<’ALDORCODE’; } == add { ALDORCODE
#implement the function that are exported my($file); for $file (keys %DATA) { my($d) = $DATA{$file}{’domain’}; print <<ALDORCODE; runTestCase$d(): Integer == { import from $d; import from TestSuiteTools; local l: List NamedTest := []; ALDORCODE
#the function of onetest case consists of several functions. for $f (@{$DATA{$file}{’lines’}}) { if ($f =~ /^#/) {print "$f\n"; next} $f =~ /^(test.*): \(\)->\(\);/; print " ADDTC(\"$1\", $1);\n"; }
print <<ALDORCODE; processTestCase(\"$d\", setUp, l, tearDown); } ALDORCODE } # end for $file (keys %DATA)
print <<ALDORCODE; } import from TestSuite; import from TestSuiteTools; import from NamedTestCase; import from List NamedTestCase;