Skip to content
Tcl Source Code Artifact [62882acff1]
Login

Artifact [62882acff1]

Artifact 62882acff13a82b56387539a22ba54f60b8b4f60:

Ticket change [62882acff1] - Ticket [2820402fffffffff|2820402fff] <i>Add command to load tcltest in subinterpreter</i> status still Open with 6 other changes by dkf on 2016-08-20 16:47:25.
D 2016-08-20T16:47:25.670
J closer nobody
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...):\r\n\r\nproc\stcltest::ReportedFromSlave\s\r\ninterp\salias\s$childInterp\stcltest::ReportToMaster\s{}\sapply\s{\r\n\s\s\s\s{total\spassed\sskipped\sfailed\sbecause\snewfiles}\r\n\s\s\s\s{\r\n\s\s\s\s\s\s\s\svariable\snumTests\r\n\s\s\s\s\s\s\s\svariable\sskippedBecause\r\n\s\s\s\s\s\s\s\svariable\screatedNewFiles\r\n\s\s\s\s\s\s\s\sincr\snumTests(Total)\s\s\s$total\r\n\s\s\s\s\s\s\s\sincr\snumTests(Passed)\s\s$passed\r\n\s\s\s\s\s\s\s\sincr\snumTests(Skipped)\s$skipped\r\n\s\s\s\s\s\s\s\sincr\snumTests(Failed)\s\s$failed\r\n\s\s\s\s\s\s\s\sforeach\s{constraint\scount}\s$because\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\sincr\sskippedBecause($constraint)\s$count\r\n\s\s\s\s\s\s\s\s}\r\n\s\s\s\s\s\s\s\sforeach\s{testfile\screated}\s$newfiles\s{\r\n\s\s\s\s\s\s\s\s\s\s\s\slappend\screatedNewFiles($testfile)\s{*}$created\r\n\s\s\s\s\s\s\s\s}\r\n\s\s\s\s\s\s\s\sreturn\r\n\s\s\s\s}\r\n\s\s\s\s::tcltest\r\n}\r\ninterp\seval\s$i\s{\r\n\s\s\s\sproc\stcltest::cleanupTestsHook\s{}\s{\r\n\s\s\s\s\s\s\s\svariable\snumTests\r\n\s\s\s\s\s\s\s\svariable\sskippedBecause\r\n\s\s\s\s\s\s\s\svariable\screatedNewFiles\r\n\s\s\s\s\s\s\s\svariable\stestSingleFile\r\n\s\s\s\s\s\s\s\sReportToMaster\s$numTests(Total)\s$numTests(Passed)\s\\\r\n\s\s\s\s\s\s\s\s\s\s\s\s$numTests(Skipped)\s$numTests(Failed)\s\\\r\n\s\s\s\s\s\s\s\s\s\s\s\s[array\sget\sskippedBecause]\s[array\sget\screatedNewFiles]\r\n\s\s\s\s\s\s\s\sset\stestSingleFile\sfalse\r\n\s\s\s\s}\r\n}
J login dkf
J mimetype text/plain
J priority 6
J severity Minor
K 2820402fffffffffffffffffffffffffffffffff
U dkf
Z f39d1cde414c4843868224d523ad15f4