Artifacts Associated With Ticket 3ed219955f21fb67
Ticket change [236aaab0c1] (rid 141567) by anonymous on 2015-04-18 20:34:49:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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 - foundin initialized to: "8.6.1"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "e755306c9ef019bc4ca35d69adcf001dece786ff"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "34. tcltest Package"
- title initialized to: "tcltest -relateddir does not work"
- type initialized to: "Bug"
Ticket change [23eaa4eade] (rid 141583) by anonymous on 2015-04-20 15:32:45:
- 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 > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- login: "anonymous"
- mimetype: "text/plain"
- username: "aspect"
- icomment:
Ticket change [affb12b19e] (rid 141585) by anonymous on 2015-04-20 17:03:18:
- closedate changed to: "2457133.21062638"
- closer changed to: "anonymous"
- 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.
- login: "anonymous"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"