Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | In the test suite infrastructure, also check the configured LKG directory, if any, for available System.Data.SQLite assemblies. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
368a495e57c1d9f0130b21c8ee5c2586 |
User & Date: | mistachkin 2013-11-01 06:23:44.117 |
Context
2013-11-01
| ||
06:33 | Add a diagnostic message if the LKG directory is not set. check-in: 601536b42f user: mistachkin tags: trunk | |
06:23 | In the test suite infrastructure, also check the configured LKG directory, if any, for available System.Data.SQLite assemblies. check-in: 368a495e57 user: mistachkin tags: trunk | |
2013-10-29
| ||
21:34 | Code style fix. check-in: fc1d93be1c user: mistachkin tags: trunk | |
Changes
Changes to Tests/common.eagle.
︙ | ︙ | |||
796 797 798 799 800 801 802 | set ::test_configuration $configuration tputs $channel [appendArgs \ "yes, selected (" [expr {$native ? "native/" : ""}] \ [expr {[string length $platform] > 0 ? [appendArgs \ $platform /] : ""}] $year / $configuration ")\n"] | | > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 | set ::test_configuration $configuration tputs $channel [appendArgs \ "yes, selected (" [expr {$native ? "native/" : ""}] \ [expr {[string length $platform] > 0 ? [appendArgs \ $platform /] : ""}] $year / $configuration ")\n"] return true } else { tputs $channel yes\n } } else { tputs $channel no\n } } } } return false } proc checkForSQLiteReleases { channel {select false} } { # # NOTE: Check for past releases of System.Data.SQLite in the directory # contained in the "System.Data.SQLite" environment variable, if # present. # if {[info exists ::env(System.Data.SQLite)] && \ [string length $::env(System.Data.SQLite)] > 0} then { set directory $::env(System.Data.SQLite) set fileName [file nativename [file join $directory \ System.Data.SQLite.dll]] tputs $channel [appendArgs \ "---- checking for System.Data.SQLite release \"" \ $fileName "\"... "] if {[file exists $fileName]} then { if {$select} then { set ::build_directory $directory tputs $channel [appendArgs "yes (" $directory ")\n"] return true } else { tputs $channel yes\n } } else { tputs $channel no\n foreach path [lsort -decreasing [file list $directory *]] { if {[file exists $path] && [file isdirectory $path]} then { set fileName [file nativename [file join $path \ System.Data.SQLite.dll]] tputs $channel [appendArgs \ "---- checking for System.Data.SQLite release \"" \ $fileName "\"... "] if {[file exists $fileName]} then { if {$select} then { set ::build_directory $path tputs $channel [appendArgs "yes, selected (" $path ")\n"] return true } else { tputs $channel yes\n } } else { tputs $channel no\n } } } } } return false } proc checkForSQLiteLibrary { channel } { tputs $channel "---- checking for SQLite core library... " if {[catch { object invoke -flags +NonPublic System.Data.SQLite.SQLite3 \ |
︙ | ︙ | |||
1954 1955 1956 1957 1958 1959 1960 | tryDeleteAssembly System.Data.SQLite.Linq.dll removeConstraint file_System.Data.SQLite.Linq.dll } # # NOTE: Check for the "autoSelect" runtime option. If present, # attempt to automatically select the first available | > | | > > | 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 | tryDeleteAssembly System.Data.SQLite.Linq.dll removeConstraint file_System.Data.SQLite.Linq.dll } # # NOTE: Check for the "autoSelect" runtime option. If present, # attempt to automatically select the first available # build (or "release") of SQLite and System.Data.SQLite # for use with the test suite. # if {[hasRuntimeOption autoSelect]} then { if {![checkForSQLiteBuilds $::test_channel true]} then { checkForSQLiteReleases $::test_channel true } } # # NOTE: Skip trying to verify the build directory if we are so # instructed; otherwise, make sure it actually exists or # halt the entire testing process if it does not exist. # |
︙ | ︙ | |||
2115 2116 2117 2118 2119 2120 2121 | tputs $::test_channel [appendArgs $sourceId \n] } else { tputs $::test_channel unknown\n } } # | | > > | 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 | tputs $::test_channel [appendArgs $sourceId \n] } else { tputs $::test_channel unknown\n } } # # NOTE: Check the available builds (and "releases") of SQLite and # System.Data.SQLite. # checkForSQLiteBuilds $::test_channel checkForSQLiteReleases $::test_channel # # NOTE: Now, we need to know if the SQLite core library is available # (i.e. because the managed-only System.Data.SQLite assembly can # load without it; however, it cannot do anything useful without # it). If we are using the mixed-mode assembly and we already # found it (above), this should always succeed. |
︙ | ︙ |