System.Data.SQLite
Check-in [13498a4979]
Not logged in

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

Overview
Comment:Enhance the test suite infrastructure to permit a non-default .NET Framework version to be used for a particular 'build year'.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 13498a49797c5110d76302349d88456573b2afcf
User & Date: mistachkin 2015-07-24 00:59:31
Original Comment: Enhance the test suite infrastructure to permit a non-default .NET Framwork version to be used for a particular 'build year'.
Context
2015-07-24
19:18
Update SQLite core library to the latest RC. check-in: 8dbd32a7ae user: mistachkin tags: trunk
00:59
Enhance the test suite infrastructure to permit a non-default .NET Framework version to be used for a particular 'build year'. check-in: 13498a4979 user: mistachkin tags: trunk
00:17
Update SQLite core library to the latest trunk code. check-in: d4447158f6 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Externals/Eagle/lib/Eagle1.0/vendor.eagle.

   336    336       #
   337    337       checkForTestOverrides stdout [expr {[info exists test_overrides] ? \
   338    338           $test_overrides : [list binary_directory build_base_directory \
   339    339           build_directory common_directory connection_flags database_directory \
   340    340           datetime_format execute_on_setup release_version scratch_directory \
   341    341           temporary_directory test_clr test_clr_v2 test_clr_v4 \
   342    342           test_configuration test_configurations test_constraints test_machine \
   343         -        test_net_fx test_overrides test_platform test_suite test_year \
   344         -        test_years test_year_clr_v2 test_year_clr_v4 vendor_directory \
   345         -        vendor_test_directory]}] false
          343  +        test_net_fx test_net_fx_2005 test_net_fx_2008 test_net_fx_2010 \
          344  +        test_net_fx_2012 test_net_fx_2013 test_net_fx_2015 test_overrides \
          345  +        test_platform test_suite test_year test_years test_year_clr_v2 \
          346  +        test_year_clr_v4 vendor_directory vendor_test_directory]}] false
   346    347   
   347    348       #
   348    349       # NOTE: Set the name of the running test suite, if necessary.
   349    350       #
   350    351       if {![info exists test_suite]} then {
   351    352         set test_suite "System.Data.SQLite Test Suite for Eagle"
   352    353       }

Changes to lib/System.Data.SQLite/common.eagle.

   175    175             [string length $::test_net_fx] > 0} then {
   176    176           #
   177    177           # NOTE: Use the specified test .NET Framework.
   178    178           #
   179    179           return $::test_net_fx
   180    180         } else {
   181    181           set year [getBuildYear]
   182         -
   183         -        switch -exact -- $year {
   184         -          2005 {
   185         -            return netFx20
   186         -          }
   187         -          2008 {
   188         -            return netFx35
   189         -          }
   190         -          2010 {
   191         -            return netFx40
   192         -          }
   193         -          2012 {
   194         -            return netFx45
   195         -          }
   196         -          2013 {
   197         -            return netFx451
   198         -            # return netFx452
   199         -          }
   200         -          2015 {
   201         -            return netFx46
   202         -          }
   203         -          default {
   204         -            return netFx35; # TODO: Good "fallback" default?
          182  +        set yearVarName [appendArgs ::test_net_fx_ $year]
          183  +
          184  +        if {[info exists $yearVarName] && \
          185  +            [string length [set $yearVarName]] > 0} then {
          186  +          #
          187  +          # NOTE: Use the specified test .NET Framework, based on the build
          188  +          #       year.
          189  +          #
          190  +          return [set $yearVarName]
          191  +        } else {
          192  +          #
          193  +          # NOTE: Fallback to the "well known" .NET Framework version that
          194  +          #       is most closely associated with a particular version of
          195  +          #       Visual Studio.
          196  +          #
          197  +          switch -exact -- $year {
          198  +            2005 {
          199  +              return netFx20
          200  +            }
          201  +            2008 {
          202  +              return netFx35
          203  +            }
          204  +            2010 {
          205  +              return netFx40
          206  +            }
          207  +            2012 {
          208  +              return netFx45
          209  +            }
          210  +            2013 {
          211  +              return netFx451; # TODO: Or "netFx452"?
          212  +            }
          213  +            2015 {
          214  +              return netFx46
          215  +            }
          216  +            default {
          217  +              return netFx35; # TODO: Good "fallback" default?
          218  +            }
   205    219             }
   206    220           }
   207    221         }
   208    222       }
   209    223   
   210    224       #
   211    225       # NOTE: This procedure should return non-zero if the configured test