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

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

Overview
Comment:Modify test automation to support the .NET Compact Framework 2.0.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: a7475169ba6f8cf5d9f6558c70f1da141632228d
User & Date: mistachkin 2013-03-14 08:41:38
Context
2013-03-14
08:49
Fix minor typos in names of the .NET Compact Framework installation cabinet files. check-in: e8c39e2bc8 user: mistachkin tags: trunk
08:41
Modify test automation to support the .NET Compact Framework 2.0. check-in: a7475169ba user: mistachkin tags: trunk
06:20
Support querying the processor architecture when running on the .NET Compact Framework via P/Invoke. check-in: 39903da2a4 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Setup/deployAndTestCe.eagle.

   127    127     #
   128    128     # NOTE: Grab the culture instance based on the configured culture name.
   129    129     #
   130    130     set cultureInfo [object invoke -alias System.Globalization.CultureInfo \
   131    131         GetCultureInfo $culture]
   132    132   
   133    133     #
   134         -  # NOTE: Build the list of .NET Compact Framework packages that need to be
   135         -  #       deployed to the target device.
          134  +  # NOTE: Build the list of .NET Compact Framework 2.0 packages that need to
          135  +  #       be deployed to the target device, if necessary.
   136    136     #
   137         -  if {![info exists packages]} then {
          137  +  if {![info exists packages(2005)]} then {
          138  +    #
          139  +    # NOTE: The three letter Windows language name is needed when building
          140  +    #       the default list of .NET Compact Framework packages because one
          141  +    #       of them is a localized resource package.
          142  +    #
          143  +    set language3 [string toupper \
          144  +        [$cultureInfo ThreeLetterWindowsLanguageName]]
          145  +
          146  +    #
          147  +    # NOTE: The default list of .NET Compact Framework 2.0 packages contains
          148  +    #       the .NET Compact Framework 2.0 installation CAB file for ARMV4
          149  +    #       on the Pocket PC and its associated resource installation CAB
          150  +    #       files.
          151  +    #
          152  +    set packages(2005) [list \
          153  +        abd785f0-cda7-41c5-8375-2451a7cbff26 \
          154  +        \\windows\\NETCFV2.ppc.armv4.cab \
          155  +        c0ccf48e-4bfb-4d84-827c-981a595e40b4 \
          156  +        [appendArgs \\windows\\System_SR_ $language3 .cab]]
          157  +  }
          158  +
          159  +  #
          160  +  # NOTE: Build the list of .NET Compact Framework 3.5 packages that need to
          161  +  #       be deployed to the target device, if necessary.
          162  +  #
          163  +  if {![info exists packages(2008)]} then {
   138    164       #
   139    165       # NOTE: The two letter ISO language name is needed when building the
   140    166       #       default list of .NET Compact Framework packages because one of
   141    167       #       them is a localized resource package.
   142    168       #
   143         -    set language [string toupper [$cultureInfo TwoLetterISOLanguageName]]
          169  +    set language2 [string toupper \
          170  +        [$cultureInfo TwoLetterISOLanguageName]]
   144    171   
   145    172       #
   146         -    # NOTE: The default list of .NET Compact Framework packages contains the
   147         -    #       .NET Compact Framework 3.5 installation CAB file for ARMV4 on the
   148         -    #       Pocket PC and its associated resource installation CAB file.
          173  +    # NOTE: The default list of .NET Compact Framework 3.5 packages contains
          174  +    #       the .NET Compact Framework 3.5 installation CAB file for ARMV4
          175  +    #       on the Pocket PC and its associated resource installation CAB
          176  +    #       files.
   149    177       #
   150         -    set packages [list abd785f0-cda7-41c5-8375-2451a7cbff37 \
   151         -        \\windows\\NETCFv35.ppc.armv4.cab c0ccf48e-4bfb-4d84-827c-981a595e40c5 \
   152         -        [appendArgs \\windows\\NETCFv35.Messages. $language .cab]]
          178  +    set packages(2008) [list \
          179  +        abd785f0-cda7-41c5-8375-2451a7cbff37 \
          180  +        \\windows\\NETCFv35.ppc.armv4.cab \
          181  +        c0ccf48e-4bfb-4d84-827c-981a595e40c5 \
          182  +        [appendArgs \\windows\\NETCFv35.Messages. $language2 .cab]]
   153    183     }
   154    184   
   155    185     #
   156    186     # NOTE: Save the path where this script is running from.
   157    187     #
   158    188     set path [file dirname [info script]]
   159    189   
................................................................................
   237    267     #
   238    268     # NOTE: Grab the file deployer instance for the target device.  This will
   239    269     #       be used to download packages and send files to the target device.
   240    270     #
   241    271     set fileDeployer [$device -alias GetFileDeployer]
   242    272   
   243    273     #
   244         -  # NOTE: Process each entry in the list of packages to be downloaded to the
   245         -  #       target device.  The package list must contain the package Id and the
   246         -  #       file name (relative to the target device), in that order, for each
   247         -  #       package to be downloaded to the target device.
          274  +  # NOTE: If the list of packages related to the configured build year do not
          275  +  #       exist, skip this step.
   248    276     #
   249         -  foreach {packageId packageFileName} $packages {
   250         -    qputs stdout [appendArgs \
   251         -        "downloading package \"" $packageId "\" to device..."]
          277  +  if {[info exists packages($year)]} then {
          278  +    #
          279  +    # NOTE: Process each entry in the list of packages to be downloaded to the
          280  +    #       target device.  The package list must contain the package Id and
          281  +    #       the file name (relative to the target device), in that order, for
          282  +    #       each package to be downloaded to the target device.
          283  +    #
          284  +    foreach {packageId packageFileName} $packages($year) {
          285  +      qputs stdout [appendArgs \
          286  +          "downloading package \"" $packageId "\" to device..."]
          287  +
          288  +      $fileDeployer DownloadPackage [object create \
          289  +          Microsoft.SmartDevice.Connectivity.ObjectId $packageId]
          290  +
          291  +      qputs stdout [appendArgs \
          292  +          "installing package file \"" $packageFileName "\" on device..."]
   252    293   
   253         -    $fileDeployer DownloadPackage [object create \
   254         -        Microsoft.SmartDevice.Connectivity.ObjectId $packageId]
   255         -
   256         -    qputs stdout [appendArgs \
   257         -        "installing package file \"" $packageFileName "\" on device..."]
   258         -
   259         -    startRemoteProcess $device wceload.exe [appendArgs "/noui " \
   260         -        $packageFileName]
          294  +      startRemoteProcess $device wceload.exe [appendArgs "/noui " \
          295  +          $packageFileName]
          296  +    }
   261    297     }
   262    298   
   263    299     #
   264    300     # NOTE: Process each application file to be sent to the target device.
   265    301     #
   266    302     foreach fileName $fileNames {
   267    303       qputs stdout [appendArgs \