/ Check-in [af166c5c]
Login

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

Overview
Comment:Draft of changes necessary to make releasetest work on Windows via MinGW.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | releasetest-refactor
Files: files | file ages | folders
SHA1:af166c5c64216d845269410d1ac2493310694b86
User & Date: mistachkin 2014-12-23 20:22:57
Context
2014-12-23
20:31
Add the threadtest target to Makefile.in. Add --enable-load-extension to the configure issued by releasetest.tcl. check-in: cb128067 user: drh tags: releasetest-refactor
20:22
Draft of changes necessary to make releasetest work on Windows via MinGW. check-in: af166c5c user: mistachkin tags: releasetest-refactor
19:52
Add the "checksymbols" target to Makefile.in check-in: 5bd73dba user: drh tags: releasetest-refactor
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to test/releasetest.tcl.

178
179
180
181
182
183
184



185
186
187
188
189
190
191
...
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
...
254
255
256
257
258
259
260






















261
262
263
264
265
266
267
    "Device-Two"              test
    "Default"                 "threadtest fulltest"
  }
  Darwin-i386 {
    "Locking-Style"           test
    "OS-X"                    "threadtest fulltest"
  }



}


# End of configuration section.
#########################################################################
#########################################################################

................................................................................
    puts -nonewline "${name}[string repeat . [expr {40-$n}]]"
    flush stdout
  }

  set tm1 [clock seconds]
  set origdir [pwd]
  dryrun cd $dir
  set rc [catch [list dryrun exec $::SRCDIR/configure >& test.log]]
  if {!$rc} {
    set rc [catch [list dryrun exec make clean $testtarget \
                             CFLAGS=$cflags OPTS=$opts >>& test.log]]
  }
  set tm2 [clock seconds]
  dryrun cd $origdir

  if {!$::DRYRUN} {
    set minutes [expr {($tm2-$tm1)/60}]
    set seconds [expr {($tm2-$tm1)%60}]
................................................................................
      puts " FAIL $tm"
      incr ::NERR
    } else {
      puts " Ok   $tm"
    }
  }
}























# The following procedure either prints its arguments (if ::DRYRUN is true)
# or executes the command of its arguments in the calling context 
# (if ::DRYRUN is false).
#
proc dryrun {args} {
  if {$::DRYRUN} {







>
>
>







 







|

|
<







 







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
...
237
238
239
240
241
242
243
244
245
246

247
248
249
250
251
252
253
...
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
    "Device-Two"              test
    "Default"                 "threadtest fulltest"
  }
  Darwin-i386 {
    "Locking-Style"           test
    "OS-X"                    "threadtest fulltest"
  }
  "Windows NT-intel" {
    "Default"                 "threadtest fulltest"
  }
}


# End of configuration section.
#########################################################################
#########################################################################

................................................................................
    puts -nonewline "${name}[string repeat . [expr {40-$n}]]"
    flush stdout
  }

  set tm1 [clock seconds]
  set origdir [pwd]
  dryrun cd $dir
  set rc [catch [configureCommand]]
  if {!$rc} {
    set rc [catch [makeCommand $testtarget $cflags $opts]]

  }
  set tm2 [clock seconds]
  dryrun cd $origdir

  if {!$::DRYRUN} {
    set minutes [expr {($tm2-$tm1)/60}]
    set seconds [expr {($tm2-$tm1)%60}]
................................................................................
      puts " FAIL $tm"
      incr ::NERR
    } else {
      puts " Ok   $tm"
    }
  }
}

# The following procedure returns the "configure" command to be exectued for
# the current platform, which may be Windows (via MinGW, etc).
#
proc configureCommand {} {
  set result [list dryrun exec]
  if {$::tcl_platform(platform)=="windows"} {
    lappend result sh
  }
  lappend result $::SRCDIR/configure >& test.log
}

# The following procedure returns the "make" command to be executed for the
# specified targets, compiler flags, and options.
#
proc makeCommand { targets cflags opts } {
  set result [list dryrun exec make clean]
  foreach target $targets {
    lappend result $target
  }
  lappend result CFLAGS=$cflags OPTS=$opts >>& test.log
}

# The following procedure either prints its arguments (if ::DRYRUN is true)
# or executes the command of its arguments in the calling context
# (if ::DRYRUN is false).
#
proc dryrun {args} {
  if {$::DRYRUN} {