Skip to content
Tcl Source Code History Of Ticket 219198ffffffffff
Login

History Of Ticket 219198ffffffffff

Artifacts Associated With Ticket 219198ffffffffff

  1. Ticket change [5cf936adbe] (rid 115385) by nobody on 2000-10-26 05:03:26:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 2841 RFE
      Version: 8.2
      SubmitDate: '1999-09-20'
      LastModified: '2000-01-23'
      Severity: LOW
      Status: Assigned
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Other
      Machine: NA
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      Andreas Kupries
      
      ReproducibleScript:
      THe following (in the patch section) is **no** patch, but a tcl script,
          a generalization of all.tcl to an application which is able to execute
          any testsuite, if called with the appropriate commandline flags.
          Requires the patch posted before (Tcltest enhancement). Enclosed a
          fragment of a Makefile using it:
      
          testshell=$(TCLSH_PROG) $(srcdir)/testshell
      
          test:
          $(testshell) -load 'load ./$(exampleA_LIB_FILE)'  -testdir $(srcdir)/tests
      
      Patch:
      #!/usr/local/bin/tclsh
      # -*- tcl -*-
      # Generic test application for all test suites
      #
      # This file contains a top-level script to run all of the tests
      # in an extension.  Execute it by invoking "tclsh testshell -testdir ... -load".
      #
      # Derived from tcl 8.2/all.tcl, Copyright (c) 1998-1999 by Scriptics Corporation.
      # Copyright (c) 1999 by Andreas Kupries <[email protected]>
      #
      # All rights reserved.
      # 
      # CVS $Id$
      
      if {[lsearch [namespace children] ::tcltest] == -1} {
          # Initialize autoloader, then load the commands and initialize
          # the package (constraints and command line argument processing).
      
          package require tcltest
          namespace import ::tcltest::*
      }
      
      # Directory containing the tests specified via '-testDir'.
      # Scripts to load the commands to test in '-load' / '-loadfile'.
      
      set ::tcltest::testSingleFile false
      
      puts stdout "Tests running in interp:       [info nameofexecutable]"
      puts stdout "Tests running in working dir:  $::tcltest::testsDirectory"
      
      if {[llength $::tcltest::skip] > 0} {
          puts stdout "Skipping tests that match:  $::tcltest::skip"
      }
      if {[llength $::tcltest::match] > 0} {
          puts stdout "Only running tests that match:  $::tcltest::match"
      }
      
      if {[llength $::tcltest::skipFiles] > 0} {
          puts stdout "Skipping test files that match:  $::tcltest::skipFiles"
      }
      if {[llength $::tcltest::matchFiles] > 0} {
          puts stdout "Only sourcing test files that match:  $::tcltest::matchFiles"
      }
      
      ::tcltest::loadTestedCommands
      
      set timeCmd {clock format [clock seconds]}
      puts stdout "Tests began at [eval $timeCmd]"
      
      # Source each of the specified tests
      
      foreach file [lsort [::tcltest::getMatchingFiles]] {
          set tail [file tail $file]
          puts stdout $tail
      
          if {[catch {source $file} msg]} {
      puts stdout $msg
          }
      }
      
      # cleanup
      puts stdout "\nTests ended at [eval $timeCmd]"
      ::tcltest::cleanupTests 1
      return
      
      PatchFiles:
      none, new file.
      
      
      
      This seems to be something for the test suite, or perhaps the
      sample extension.  It is not clear where it belongs or what one
      is supposed to do with it. 
      -- 09/20/1999 hobbs
      
    4. foundin initialized to: "obsolete: 8.2"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "34. tcltest Package"
    10. title initialized to:
      add sample Makefile target and all.tcl file for tcl tests to
      
    11. type initialized to: "RFE"
  2. Ticket change [a59a212ca4] (rid 110405) by andreas_kupries on 2001-09-08 06:29:59:

    1. assignee changed to: "melissachawla"
  3. Ticket change [32aa7fbf84] (rid 93653) by hobbs on 2002-03-23 06:06:32:

    1. assignee changed to: "dgp"
  4. Ticket change [79e979211e] (rid 90211) by dgp on 2002-03-25 03:29:33:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Logged In: YES 
      user_id=80530
      
      Assigning back to Andreas.  I hope he knows what he
      wanted and where it might fit in the current Tcl
      sources.
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. subsystem changed to: "None"
    6. username: "dgp"
  5. Ticket change [c81c39fe95] (rid 122055) by andreas_kupries on 2002-03-26 00:55:13:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Wished for is a generic application which can be used to 
      drive any testsuite without having to change the 
      application. This could then be part of a suite of tcl 
      applications useable by all TEA based extensions. There 
      would be no need to distribute the application with every 
      extension. It could come with tcl.
      
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  6. Ticket change [084d9d8442] (rid 89542) by andreas_kupries on 2006-03-16 03:39:34:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=75003
      
      This could be in category 'Configuration & Build Tools' as
      well I believe.
      
      
      
    3. login: "andreas_kupries"
    4. mimetype: "text/plain"
    5. subsystem changed to: "34. tcltest Package"
    6. username: "andreas_kupries"
  7. Ticket change [671a63c51e] (rid 102844) by dgp on 2007-08-31 02:56:55:

    1. assignee changed to: "nobody"
    2. foundin changed to: "None"
    3. icomment:
      
      
      data_type - 360894
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. subsystem changed to: "None"
    7. username: "dgp"
  8. Ticket change [b924bb11ca] (rid 129086) by dgp on 2007-08-31 02:58:02:

    1. subsystem changed to: "53. Configure and Build Tools"
  9. Ticket change [2a37b1fc53] (rid 148464) by dkf on 2016-08-23 14:00:24:

    1. closer changed to: "nobody"
    2. comment changed to:
      OriginalBugID: 2841 RFE
      Version: 8.2
      SubmitDate: '1999-09-20'
      LastModified: '2000-01-23'
      Severity: LOW
      Status: Assigned
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Other
      Machine: NA
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      Andreas Kupries
      
      ReproducibleScript:
      THe following (in the patch section) is **no** patch, but a tcl script,
          a generalization of all.tcl to an application which is able to execute
          any testsuite, if called with the appropriate commandline flags.
          Requires the patch posted before (Tcltest enhancement). Enclosed a
          fragment of a Makefile using it:
      
          testshell=$(TCLSH_PROG) $(srcdir)/testshell
      
          test:
          $(testshell) -load 'load ./$(exampleA_LIB_FILE)'  -testdir $(srcdir)/tests
      
      Patch:
      #!/usr/local/bin/tclsh
      # -*- tcl -*-
      # Generic test application for all test suites
      #
      # This file contains a top-level script to run all of the tests
      # in an extension.  Execute it by invoking "tclsh testshell -testdir ... -load".
      #
      # Derived from tcl 8.2/all.tcl, Copyright (c) 1998-1999 by Scriptics Corporation.
      # Copyright (c) 1999 by Andreas Kupries <[email protected]>
      #
      # All rights reserved.
      # 
      # CVS $Id$
      
      if {[lsearch [namespace children] ::tcltest] == -1} {
          # Initialize autoloader, then load the commands and initialize
          # the package (constraints and command line argument processing).
      
          package require tcltest
          namespace import ::tcltest::*
      }
      
      # Directory containing the tests specified via '-testDir'.
      # Scripts to load the commands to test in '-load' / '-loadfile'.
      
      set ::tcltest::testSingleFile false
      
      puts stdout "Tests running in interp:       [info nameofexecutable]"
      puts stdout "Tests running in working dir:  $::tcltest::testsDirectory"
      
      if {[llength $::tcltest::skip] > 0} {
          puts stdout "Skipping tests that match:  $::tcltest::skip"
      }
      if {[llength $::tcltest::match] > 0} {
          puts stdout "Only running tests that match:  $::tcltest::match"
      }
      
      if {[llength $::tcltest::skipFiles] > 0} {
          puts stdout "Skipping test files that match:  $::tcltest::skipFiles"
      }
      if {[llength $::tcltest::matchFiles] > 0} {
          puts stdout "Only sourcing test files that match:  $::tcltest::matchFiles"
      }
      
      ::tcltest::loadTestedCommands
      
      set timeCmd {clock format [clock seconds]}
      puts stdout "Tests began at [eval $timeCmd]"
      
      # Source each of the specified tests
      
      foreach file [lsort [::tcltest::getMatchingFiles]] {
          set tail [file tail $file]
          puts stdout $tail
      
          if {[catch {source $file} msg]} {
      puts stdout $msg
          }
      }
      
      # cleanup
      puts stdout "\nTests ended at [eval $timeCmd]"
      ::tcltest::cleanupTests 1
      return
      
      PatchFiles:
      none, new file.
      
      
      
      This seems to be something for the test suite, or perhaps the
      sample extension.  It is not clear where it belongs or what one
      is supposed to do with it. 
      -- 09/20/1999 hobbs
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. severity changed to: "Minor"
    6. subsystem changed to: "53. Configuration and Build Tools"
  10. Ticket change [686c4f8a46] (rid 261521) by serhiy.storchaka on 2026-11-13 11:18:43:

    1. closedate changed to: "2461357.9713335303"
    2. closer changed to: "serhiy.storchaka"
    3. icomment:
      tcltest 2 (Tcl 8.4) took this over: it handles -testdir, -load and -loadfile from the command line itself, so the script package require tcltest; tcltest::runAllTests drives any test suite.
      
    4. login: "serhiy.storchaka"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"