Overview
| Artifact ID: | 236aaab0c1f5c720e668772967aa80878949ee21 |
|---|---|
| Ticket: | 3ed219955f21fb674be4616bf226e3d4272c20fa
tcltest -relateddir does not work |
| User & Date: | anonymous on 2015-04-18 20:34:49 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "8.6.1"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "e755306c9ef019bc4ca35d69adcf001dece786ff"
- resolution changed to: "None"
- severity changed to: "Important"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "34. tcltest Package"
- title changed to: "tcltest -relateddir does not work"
- type changed to: "Bug"