Skip to content
Tcl Source Code History Of Ticket 3ed219955f21fb67
Login

History Of Ticket 3ed219955f21fb67

Artifacts Associated With Ticket 3ed219955f21fb67

  1. Ticket change [236aaab0c1] (rid 141567) by anonymous on 2015-04-18 20:34:49:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      tcltest's -relateddir does not function correctly.
      Using the script below on linux to set up a test directory and then running all.tcl, only the top level test and the test in the d.d/ directory run.  The a.d/, b.d/ and c.d/ directories are completely bypassed.
      
      #!/bin/sh
      
      mkall () {
      echo "all:$*"
        dir=$1
        n=$2
      
      cat > ${dir}/all.tcl << _HERE_
      #!/usr/bin/tclsh
      
      package require Tcl 8.6
      package require tcltest 2.2
      
      set testdir [file dirname [file normalize [info script]]]
      
      ::tcltest::configure -testdir \$testdir
      ::tcltest::configure -verbose {line error start}
      ::tcltest::configure -relateddir {*.d}
      
      ::tcltest::runAllTests
      exit
      _HERE_
      chmod a+rx ${dir}/all.tcl
      
      }
      
      mktest () {
      echo "test:$*"
        dir=$1
        n=$2
      
      cat > ${dir}/${n}.test << _HERE_
      #!/usr/bin/tclsh
      #
      
      package require tcltest 2.2
      namespace import -force tcltest::*
      ::tcltest::configure -verbose {start skip line error}
      
      namespace eval ::sometests::test {
        test test-${n} {test-${n}} -body {
          set rc true
        } -result true
      
        cleanupTests
      }
      namespace delete ::sometests::test
      _HERE_
      chmod a+rx ${dir}/${n}.test
      
      }
      
      mkdir z
      for d in . a.d b.d c.d d.d; do
        test -d z/$d || mkdir z/$d
        nm=`echo $d | sed 's/\.d//'`
        if [ $d = . ]; then
          nm=top
        fi
        mkall z/$d $nm
        mktest z/$d $nm
      done
      
    5. foundin initialized to: "8.6.1"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "e755306c9ef019bc4ca35d69adcf001dece786ff"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "34. tcltest Package"
    15. title initialized to: "tcltest -relateddir does not work"
    16. type initialized to: "Bug"
  2. Ticket change [23eaa4eade] (rid 141583) by anonymous on 2015-04-20 15:32:45:

    1. icomment:
      removing [exit] from the end of all.tcl causes all the tests to run.  The hint is that you never see the normal output after the first subdirectory:
      
      > d.d test ended at Tue Apr 21 01:29:17 AEST 2015
      > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      
    2. login: "anonymous"
    3. mimetype: "text/plain"
    4. username: "aspect"
  3. Ticket change [affb12b19e] (rid 141585) by anonymous on 2015-04-20 17:03:18:

    1. closedate changed to: "2457133.21062638"
    2. closer changed to: "anonymous"
    3. icomment:
      Ok, thanks.  I wouldn't have called d.d/ the first directory.   It is processing the -relateddirs in natural order.   Unfortunately, this is not useful to me.  A sort would be nice.
      
    4. login: "anonymous"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"