Skip to content
Tcl Source Code History Of Ticket 2820402fffffffff
Login

History Of Ticket 2820402fffffffff

Artifacts Associated With Ticket 2820402fffffffff

  1. Ticket change [27fc01f09e] (rid 88621) by dkf on 2009-07-12 15:25:19:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      It would be really nice if there was a command that loaded tcltest into a child interpreter and set up the links in it so that summary information in the child interp gets reported as part of the overall test run. This would reduce the amount of output produced by Tcl test runs (specifically init.test and pkg.test). I add here some code I've been experimenting with to do this (not as a patch unfortunately, but still...):
      
      proc tcltest::ReportedFromSlave 
      interp alias $childInterp tcltest::ReportToMaster {} apply {
          {total passed skipped failed because newfiles}
          {
              variable numTests
              variable skippedBecause
              variable createdNewFiles
              incr numTests(Total)   $total
              incr numTests(Passed)  $passed
              incr numTests(Skipped) $skipped
              incr numTests(Failed)  $failed
              foreach {constraint count} $because {
                  incr skippedBecause($constraint) $count
              }
              foreach {testfile created} $newfiles {
                  lappend createdNewFiles($testfile) {*}$created
              }
              return
          }
          ::tcltest
      }
      interp eval $i {
          proc tcltest::cleanupTestsHook {} {
              variable numTests
              variable skippedBecause
              variable createdNewFiles
              variable testSingleFile
              ReportToMaster $numTests(Total) $numTests(Passed) \
                  $numTests(Skipped) $numTests(Failed) \
                  [array get skippedBecause] [array get createdNewFiles]
              set testSingleFile false
          }
      }
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "dkf"
    10. subsystem initialized to: "34. tcltest Package"
    11. title initialized to: "Add command to load tcltest in subinterpreter"
    12. type initialized to: "Patch"
  2. Ticket change [62882acff1] (rid 148396) by dkf on 2016-08-20 16:47:25:

    1. closer changed to: "nobody"
    2. comment changed to:
      It would be really nice if there was a command that loaded tcltest into a child interpreter and set up the links in it so that summary information in the child interp gets reported as part of the overall test run. This would reduce the amount of output produced by Tcl test runs (specifically init.test and pkg.test). I add here some code I've been experimenting with to do this (not as a patch unfortunately, but still...):
      
      proc tcltest::ReportedFromSlave 
      interp alias $childInterp tcltest::ReportToMaster {} apply {
          {total passed skipped failed because newfiles}
          {
              variable numTests
              variable skippedBecause
              variable createdNewFiles
              incr numTests(Total)   $total
              incr numTests(Passed)  $passed
              incr numTests(Skipped) $skipped
              incr numTests(Failed)  $failed
              foreach {constraint count} $because {
                  incr skippedBecause($constraint) $count
              }
              foreach {testfile created} $newfiles {
                  lappend createdNewFiles($testfile) {*}$created
              }
              return
          }
          ::tcltest
      }
      interp eval $i {
          proc tcltest::cleanupTestsHook {} {
              variable numTests
              variable skippedBecause
              variable createdNewFiles
              variable testSingleFile
              ReportToMaster $numTests(Total) $numTests(Passed) \
                  $numTests(Skipped) $numTests(Failed) \
                  [array get skippedBecause] [array get createdNewFiles]
              set testSingleFile false
          }
      }
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. priority changed to: "6"
    6. severity changed to: "Minor"