/ Check-in [b7510777]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:In the releasetest.tcl script, show the --jobs object on the command-line summary. Report the time of each "starting:" event. Do not show errors on a --dryrun.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: b75107778f67a4c4f33b1c003af87ca57e98ae4b
User & Date: drh 2015-11-03 15:16:21
Context
2015-11-03
15:39
In the releasetest.tcl script, add the --progress option to cause the start of each subprocess to be shown. Otherwise, revert to the old-style display. Improvements to the handling of the --buildonly option. check-in: d969792f user: drh tags: trunk
15:16
In the releasetest.tcl script, show the --jobs object on the command-line summary. Report the time of each "starting:" event. Do not show errors on a --dryrun. check-in: b7510777 user: drh tags: trunk
14:49
Update the releasetest.tcl script so that it can run multiple tests in parallel in separate processes. check-in: e3de8291 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/releasetest.tcl.

    28     28   $tcl_platform(os) and $tcl_platform(machine) variables.  Supported
    29     29   platforms are "Linux-x86", "Linux-x86_64", "Darwin-i386",
    30     30   "Darwin-x86_64", "Windows NT-intel", and "Windows NT-amd64".
    31     31   
    32     32   Every test begins with a fresh run of the configure script at the top
    33     33   of the SQLite source tree.
    34     34   }
           35  +
           36  +# Return a timestamp of the form HH:MM:SS
           37  +#
           38  +proc now {} {
           39  +  return [clock format [clock seconds] -format %H:%M:%S]
           40  +}
    35     41   
    36     42   # Omit comments (text between # and \n) in a long multi-line string.
    37     43   #
    38     44   proc strip_comments {in} {
    39     45     regsub -all {#[^\n]*\n} $in {} out
    40     46     return $out
    41     47   }
................................................................................
   454    460       fconfigure $fd -blocking 1
   455    461       set rc [catch { close $fd }]
   456    462   
   457    463       set errmsg {}
   458    464       set logfile [file join $dir test.log]
   459    465       if {[file exists $logfile]} {
   460    466         count_tests_and_errors [file join $dir test.log] rc errmsg
   461         -    } elseif {$rc==0} {
          467  +    } elseif {$rc==0 && !$::DRYRUN} {
   462    468         set rc 1
   463    469         set errmsg "no test.log file..."
   464    470       }
   465    471   
   466    472       if {!$::TRACE} {
   467    473         set tm2 [clock seconds]
   468    474         set hours [expr {($tm2-$tm1)/3600}]
................................................................................
   517    523   
   518    524       if {[llength $tests]>0} {
   519    525         set T [lindex $tests 0]
   520    526         set tests [lrange $tests 1 end]
   521    527         foreach {title dir configOpts testtarget makeOpts cflags opts} $T {}
   522    528         if {!$::TRACE} {
   523    529           set n [string length $title]
   524         -        PUTS "starting: ${title}"
          530  +        PUTS "starting: ${title} at [now]"
   525    531           flush stdout
   526    532         }
   527    533   
   528    534         # Run the job.
   529    535         #
   530    536         set tm1 [clock seconds]
   531    537         incr G(nJob)
................................................................................
   824    830     if {$::DRYRUN} {PUTS -nonewline " --dryrun"}
   825    831     if {$::BUILDONLY} {PUTS -nonewline " --buildonly"}
   826    832     if {$::MSVC} {PUTS -nonewline " --msvc"}
   827    833     switch -- $::QUICK {
   828    834        1 {PUTS -nonewline " --quick"}
   829    835        2 {PUTS -nonewline " --veryquick"}
   830    836     }
          837  +  if {$::JOBS>1} {PUTS -nonewline " --jobs $::JOBS"}
   831    838     PUTS ""
   832    839   }
   833    840   
   834    841   # Main routine.
   835    842   #
   836    843   proc main {argv} {
   837    844