/ Check-in [d479e32b]
Login

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

Overview
Comment:Provide the new "-config CONFIG" option to the test/releasetest.tcl script, which allows one to run a single test configuration selected by name.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:d479e32be205f6cd0474f002282eae6eec613f36
User & Date: drh 2014-10-10 17:44:03
Context
2014-10-10
17:47
When using the -config option to releasetest.tcl, default the testing type to "fulltest" if it is not specified on the command line. check-in: cf291cbe user: drh tags: trunk
17:44
Provide the new "-config CONFIG" option to the test/releasetest.tcl script, which allows one to run a single test configuration selected by name. check-in: d479e32b user: drh tags: trunk
17:20
Add the estimated number of output rows to the EXPLAIN QUERY PLAN output if compiled with SQLITE_EXPLAIN_ESTIMATED_ROWS. This feature is off by default for the time being. check-in: daa8314f user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/releasetest.tcl.

     9      9   This Tcl script is used to test the various configurations required
    10     10   before releasing a new version. Supported command line options (all 
    11     11   optional) are:
    12     12   
    13     13       -makefile PATH-TO-MAKEFILE           (default "releasetest.mk")
    14     14       -platform PLATFORM                   (see below)
    15     15       -quick    BOOLEAN                    (default "0")
           16  +    -config   CONFIGNAME                 (Run only CONFIGNAME)
    16     17   
    17     18   The default value for -makefile is "./releasetest.mk".
    18     19   
    19     20   The script determines the default value for -platform using the
    20     21   $tcl_platform(os) and $tcl_platform(machine) variables. Supported 
    21     22   platforms are "Linux-x86", "Linux-x86_64" and "Darwin-i386".
    22     23   
................................................................................
   288    289   # Currently the only option supported is "-makefile", default
   289    290   # "releasetest.mk". Set the ::MAKEFILE variable to the value of this
   290    291   # option.
   291    292   #
   292    293   proc process_options {argv} {
   293    294     set ::MAKEFILE releasetest.mk                       ;# Default value
   294    295     set ::QUICK    0                                    ;# Default value
          296  +  set config {}
   295    297     set platform $::tcl_platform(os)-$::tcl_platform(machine)
   296    298   
   297    299     for {set i 0} {$i < [llength $argv]} {incr i} {
   298    300       switch -- [lindex $argv $i] {
   299    301         -makefile {
   300    302           incr i
   301    303           set ::MAKEFILE [lindex $argv $i]
................................................................................
   306    308           set platform [lindex $argv $i]
   307    309         }
   308    310   
   309    311         -quick {
   310    312           incr i
   311    313           set ::QUICK [lindex $argv $i]
   312    314         }
          315  +
          316  +      -config {
          317  +        incr i
          318  +        set config [lindex $argv $i]
          319  +      }
   313    320     
   314    321         default {
   315    322           puts stderr ""
   316    323           puts stderr [string trim $::USAGE_MESSAGE]
   317    324           exit -1
   318    325         }
   319    326       }
................................................................................
   329    336         lappend print "\"$p\""
   330    337       }
   331    338       lset print end "or [lindex $print end]"
   332    339       puts "[join $print {, }]."
   333    340       exit
   334    341     }
   335    342   
   336         -  set ::CONFIGLIST $::Platforms($platform)
          343  +  if {$config!=""} {
          344  +    set ::CONFIGLIST $config
          345  +  } else {
          346  +    set ::CONFIGLIST $::Platforms($platform)
          347  +  }
   337    348     puts "Running the following configurations for $platform:"
   338    349     puts "    [string trim $::CONFIGLIST]"
   339    350   }
   340    351   
   341    352   # Main routine.
   342    353   #
   343    354   proc main {argv} {