System.Data.SQLite
Check-in [ff63be6a1f]
Not logged in

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

Overview
Comment:Add tests to verify the assembly versions of the core projects.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ff63be6a1f1168d499f840df9751a5deac728776
User & Date: mistachkin 2011-10-11 04:53:42
Context
2011-10-11
07:21
Merge all fixes, enhancements, and tests related to ticket [343d392b51] into trunk. check-in: fc49363310 user: mistachkin tags: trunk
04:53
Add tests to verify the assembly versions of the core projects. check-in: ff63be6a1f user: mistachkin tags: trunk
04:22
Make sure all remaining version numbers match the core projects, adding tests to verify them. check-in: a36b502b6a user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Tests/version.eagle.

    79     79   
    80     80   runTest {test version-1.1 {'System.Data.SQLite' binary version} -body {
    81     81     file version $systemDataSQLiteDllFile
    82     82   } -constraints {eagle file_System.Data.SQLite.dll} -result $version(full)}
    83     83   
    84     84   ###############################################################################
    85     85   
    86         -runTest {test version-1.2 {'System.Data.SQLite.Linq' binary version} -body {
           86  +runTest {test version-1.2 {'System.Data.SQLite' assembly version} -body {
           87  +  set assembly [object load System.Data.SQLite]
           88  +
           89  +  foreach assembly [object assemblies] {
           90  +    if {[string match System.Data.SQLite,* $assembly]} then {
           91  +      return [regexp -- [appendArgs Version= [string map [list . \\.] \
           92  +          $version(full)] ,] $assembly]
           93  +    }
           94  +  }
           95  +
           96  +  return false
           97  +} -cleanup {
           98  +  unset -nocomplain assembly
           99  +} -constraints {eagle SQLite System.Data.SQLite} -result {1}}
          100  +
          101  +###############################################################################
          102  +
          103  +runTest {test version-1.3 {'System.Data.SQLite.Linq' binary version} -body {
    87    104     file version $systemDataSQLiteLinqDllFile
    88    105   } -constraints {eagle file_System.Data.SQLite.Linq.dll} -result $version(full)}
    89    106   
    90    107   ###############################################################################
    91    108   
    92         -runTest {test version-1.3 {'test' binary version} -body {
          109  +runTest {test version-1.4 {'System.Data.SQLite.Linq' assembly version} -body {
          110  +  set assembly [object load System.Data.SQLite.Linq]
          111  +
          112  +  foreach assembly [object assemblies] {
          113  +    if {[string match System.Data.SQLite.Linq,* $assembly]} then {
          114  +      return [regexp -- [appendArgs Version= [string map [list . \\.] \
          115  +          $version(full)] ,] $assembly]
          116  +    }
          117  +  }
          118  +
          119  +  return false
          120  +} -cleanup {
          121  +  unset -nocomplain assembly
          122  +} -constraints {eagle SQLite System.Data.SQLite System.Data.SQLite.Linq} \
          123  +-result {1}}
          124  +
          125  +###############################################################################
          126  +
          127  +runTest {test version-1.5 {'test' binary version} -body {
    93    128     file version $testExeFile
    94    129   } -constraints {eagle file_test.exe} -result $version(full)}
    95    130   
    96    131   ###############################################################################
    97    132   
    98         -runTest {test version-1.4 {'testlinq' binary version} -body {
          133  +runTest {test version-1.6 {'testlinq' binary version} -body {
    99    134     file version $testLinqExeFile
   100    135   } -constraints {eagle file_testlinq.exe} -result $version(full)}
   101    136   
   102    137   ###############################################################################
   103    138   
   104    139   set patterns [list \
   105    140       [appendArgs <version> [string map [list . \\.] $version(full)] \
................................................................................
   202    237     set constraint [string map [list / _ \\ _] $fileName]
   203    238     set fileName [file join $root_path $fileName]
   204    239   
   205    240     if {![haveConstraint [appendArgs file_ $constraint]]} then {
   206    241       checkForFile $test_channel $fileName $constraint
   207    242     }
   208    243   
   209         -  runTest {test [appendArgs version-1.5. $i] \
          244  +  runTest {test [appendArgs version-1.7. $i] \
   210    245         [appendArgs "pattern {" $pattern "} in file \"" $fileName \"] -body {
   211    246       regexp -- $pattern [readFile $fileName]
   212    247     } -constraints [list eagle [appendArgs file_ $constraint]] -result {1}}
   213    248   }
   214    249   
   215    250   ###############################################################################
   216    251