System.Data.SQLite
Check-in [9a55492aab]
Not logged in

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

Overview
Comment:Update test name and add a comment.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 9a55492aab7e824bc86fb177edd6106efb4a4a95
User & Date: mistachkin 2014-09-23 02:30:12
Context
2014-09-23
05:52
Bump all version numbers to 1.0.95.0. Update version history docs. check-in: 24bd8ccbe2 user: mistachkin tags: trunk
02:30
Update test name and add a comment. check-in: 9a55492aab user: mistachkin tags: trunk
02:18
Centralize most test suite handling of constraints that check for the existence of files. check-in: 530c121d5f user: mistachkin tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to Tests/linq.eagle.

17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

package require System.Data.SQLite.Test
runSQLiteTestPrologue
runSQLiteTestFilesPrologue

###############################################################################

runTest {test linq-1.1 {LINQ Transaction Scope} -body {
  #
  # NOTE: Re-copy the reference database file used for this unit test to the
  #       build directory in case it has been changed by a previous test run.
  #
  file copy -force $northwindEfDbFile \
      [file join [getBuildDirectory] [file tail $northwindEfDbFile]]








|







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

package require System.Data.SQLite.Test
runSQLiteTestPrologue
runSQLiteTestFilesPrologue

###############################################################################

runTest {test linq-1.1 {DbUpdateCommandTree with UPDATE and SELECT} -body {
  #
  # NOTE: Re-copy the reference database file used for this unit test to the
  #       build directory in case it has been changed by a previous test run.
  #
  file copy -force $northwindEfDbFile \
      [file join [getBuildDirectory] [file tail $northwindEfDbFile]]

Changes to Tests/version.eagle.

930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
for {set i 1} {$i <= [llength $fileNames]} {incr i} {
  set pattern [lindex $patterns [expr {$i - 1}]]
  set fileName [lindex $fileNames [expr {$i - 1}]]
  set constraint [string map [list / _ \\ _] $fileName]
  set fileName [file nativename [file join $root_path $fileName]]

  if {![haveConstraint [appendArgs file_ $constraint]]} then {
    checkForFile $test_channel $fileName $constraint
  }

  runTest {test [appendArgs version-1.21. $i] \
      [appendArgs "pattern {" $pattern "} in file \"" $fileName \"] -body {
    if {[hasRuntimeOption verbose]} then {
      tputs $test_channel [appendArgs \
          "---- checking pattern {" $pattern "} against file \"" $fileName \







|







930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
for {set i 1} {$i <= [llength $fileNames]} {incr i} {
  set pattern [lindex $patterns [expr {$i - 1}]]
  set fileName [lindex $fileNames [expr {$i - 1}]]
  set constraint [string map [list / _ \\ _] $fileName]
  set fileName [file nativename [file join $root_path $fileName]]

  if {![haveConstraint [appendArgs file_ $constraint]]} then {
    checkForFile $test_channel $fileName $constraint; # EXEMPT: Dynamic.
  }

  runTest {test [appendArgs version-1.21. $i] \
      [appendArgs "pattern {" $pattern "} in file \"" $fileName \"] -body {
    if {[hasRuntimeOption verbose]} then {
      tputs $test_channel [appendArgs \
          "---- checking pattern {" $pattern "} against file \"" $fileName \