System.Data.SQLite
Check-in [7b5145866e]
Not logged in

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

Overview
Comment:In the test suite infrastructure, allow the database and temporary directories to be overridden via the scratch_directory variable.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7b5145866e940d8946fb850d179e68b04cc9aebe
User & Date: mistachkin 2012-10-13 15:52:42
Context
2012-10-13
17:57
Modify the debug defines in the interop assembly project to include SQLITE_ENABLE_EXPENSIVE_ASSERT. check-in: 232e3ae933 user: mistachkin tags: trunk
15:52
In the test suite infrastructure, allow the database and temporary directories to be overridden via the scratch_directory variable. check-in: 7b5145866e user: mistachkin tags: trunk
09:09
Reduce the use of global variables by the stress test workloads. check-in: 3ef1f5528b user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

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

   171    171       #
   172    172       # NOTE: Check for any overridden settings that may have been specified via
   173    173       #       the command line, etc.
   174    174       #
   175    175       checkForTestOverrides stdout [expr {[info exists test_overrides] ? \
   176    176           $test_overrides : [list binary_directory build_base_directory \
   177    177           build_directory common_directory connection_flags database_directory \
   178         -        datetime_format temporary_directory test_configuration test_overrides \
   179         -        test_year test_year_clr_v2 test_year_clr_v4 vendor_directory]}] false
          178  +        datetime_format scratch_directory temporary_directory \
          179  +        test_configuration test_overrides test_year test_year_clr_v2 \
          180  +        test_year_clr_v4 vendor_directory]}] false
   180    181   
   181    182       #
   182    183       # NOTE: This variable will contain the name of the directory containing the
   183    184       #       vendor-specific testing infrastructure.  If the variable does not
   184    185       #       already exist, create it; otherwise, it has been overridden and the
   185    186       #       existing value should be left intact.
   186    187       #

Changes to Tests/common.eagle.

   305    305         if {[info exists ::database_directory] && \
   306    306             [string length $::database_directory] > 0} then {
   307    307           #
   308    308           # NOTE: The location of the database directory has been overridden;
   309    309           #       therefore, use it.
   310    310           #
   311    311           return [file normalize $::database_directory]
          312  +      } elseif {[info exists ::scratch_directory] && \
          313  +          [string length $::scratch_directory] > 0} then {
          314  +        #
          315  +        # NOTE: The location of the scratch directory has been overridden;
          316  +        #       therefore, use it.
          317  +        #
          318  +        return [file normalize $::scratch_directory]
   312    319         } else {
   313    320           return [getTemporaryPath]
   314    321         }
   315    322       }
   316    323   
   317    324       proc getTemporaryDirectory {} {
   318    325         #
................................................................................
   323    330         if {[info exists ::temporary_directory] && \
   324    331             [string length $::temporary_directory] > 0} then {
   325    332           #
   326    333           # NOTE: The location of the temporary directory has been overridden;
   327    334           #       therefore, use it.
   328    335           #
   329    336           return [file normalize $::temporary_directory]
          337  +      } elseif {[info exists ::scratch_directory] && \
          338  +          [string length $::scratch_directory] > 0} then {
          339  +        #
          340  +        # NOTE: The location of the scratch directory has been overridden;
          341  +        #       therefore, use it.
          342  +        #
          343  +        return [file normalize $::scratch_directory]
   330    344         } else {
   331    345           return [getTemporaryPath]
   332    346         }
   333    347       }
   334    348   
   335    349       proc getTestOverridesPreamble { {extraVarNames ""} } {
   336    350         set varNames [list]