Skip to content
Tcl Source Code Artifact [27fc01f09e]
Login

Artifact [27fc01f09e]

Artifact 27fc01f09e811e691495d8dbce22046075eb4239:

Ticket change [27fc01f09e] - New ticket [2820402fffffffff|2820402fff] <i>Add command to load tcltest in subinterpreter</i>. by dkf on 2009-07-12 15:25:19.
D 2009-07-12T15:25:19
J assignee dgp
J cmimetype text/plain
J comment It\swould\sbe\sreally\snice\sif\sthere\swas\sa\scommand\sthat\sloaded\stcltest\sinto\sa\schild\sinterpreter\sand\sset\sup\sthe\slinks\sin\sit\sso\sthat\ssummary\sinformation\sin\sthe\schild\sinterp\sgets\sreported\sas\spart\sof\sthe\soverall\stest\srun.\sThis\swould\sreduce\sthe\samount\sof\soutput\sproduced\sby\sTcl\stest\sruns\s(specifically\sinit.test\sand\spkg.test).\sI\sadd\shere\ssome\scode\sI've\sbeen\sexperimenting\swith\sto\sdo\sthis\s(not\sas\sa\spatch\sunfortunately,\sbut\sstill...):\n\nproc\stcltest::ReportedFromSlave\s\ninterp\salias\s$childInterp\stcltest::ReportToMaster\s{}\sapply\s{\n\s\s\s\s{total\spassed\sskipped\sfailed\sbecause\snewfiles}\n\s\s\s\s{\n\s\s\s\s\s\s\s\svariable\snumTests\n\s\s\s\s\s\s\s\svariable\sskippedBecause\n\s\s\s\s\s\s\s\svariable\screatedNewFiles\n\s\s\s\s\s\s\s\sincr\snumTests(Total)\s\s\s$total\n\s\s\s\s\s\s\s\sincr\snumTests(Passed)\s\s$passed\n\s\s\s\s\s\s\s\sincr\snumTests(Skipped)\s$skipped\n\s\s\s\s\s\s\s\sincr\snumTests(Failed)\s\s$failed\n\s\s\s\s\s\s\s\sforeach\s{constraint\scount}\s$because\s{\n\s\s\s\s\s\s\s\s\s\s\s\sincr\sskippedBecause($constraint)\s$count\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\sforeach\s{testfile\screated}\s$newfiles\s{\n\s\s\s\s\s\s\s\s\s\s\s\slappend\screatedNewFiles($testfile)\s{*}$created\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\sreturn\n\s\s\s\s}\n\s\s\s\s::tcltest\n}\ninterp\seval\s$i\s{\n\s\s\s\sproc\stcltest::cleanupTestsHook\s{}\s{\n\s\s\s\s\s\s\s\svariable\snumTests\n\s\s\s\s\s\s\s\svariable\sskippedBecause\n\s\s\s\s\s\s\s\svariable\screatedNewFiles\n\s\s\s\s\s\s\s\svariable\stestSingleFile\n\s\s\s\s\s\s\s\sReportToMaster\s$numTests(Total)\s$numTests(Passed)\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s$numTests(Skipped)\s$numTests(Failed)\s\\\n\s\s\s\s\s\s\s\s\s\s\s\s[array\sget\sskippedBecause]\s[array\sget\screatedNewFiles]\n\s\s\s\s\s\s\s\sset\stestSingleFile\sfalse\n\s\s\s\s}\n}
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter dkf
J subsystem 34.\stcltest\sPackage
J title Add\scommand\sto\sload\stcltest\sin\ssubinterpreter
J type Patch
K 2820402fffffffffffffffffffffffffffffffff
U dkf
Z 464bb0386065b3fe3aad4dac3f07085f