diff options
author | dan miller | 2007-10-20 02:49:29 +0000 |
---|---|---|
committer | dan miller | 2007-10-20 02:49:29 +0000 |
commit | e36d23a85ebff914d74bb541558c2b6082b78edb (patch) | |
tree | 54b58fdf162e78af64055282a6035c8d2443389d /libraries/sqlite/unix/sqlite-3.5.1/test/quick.test | |
parent | * Fixed an issue whereby avatar chat distances were being calculated against ... (diff) | |
download | opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.zip opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.gz opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.bz2 opensim-SC-e36d23a85ebff914d74bb541558c2b6082b78edb.tar.xz |
sqlite source (unix build) added to libraries
Diffstat (limited to 'libraries/sqlite/unix/sqlite-3.5.1/test/quick.test')
-rw-r--r-- | libraries/sqlite/unix/sqlite-3.5.1/test/quick.test | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/libraries/sqlite/unix/sqlite-3.5.1/test/quick.test b/libraries/sqlite/unix/sqlite-3.5.1/test/quick.test new file mode 100644 index 0000000..a87ae93 --- /dev/null +++ b/libraries/sqlite/unix/sqlite-3.5.1/test/quick.test | |||
@@ -0,0 +1,109 @@ | |||
1 | # | ||
2 | # May you do good and not evil. | ||
3 | # May you find forgiveness for yourself and forgive others. | ||
4 | # May you share freely, never taking more than you give. | ||
5 | # | ||
6 | #*********************************************************************** | ||
7 | # This file runs all tests. | ||
8 | # | ||
9 | # $Id: quick.test,v 1.64 2007/09/14 16:20:01 danielk1977 Exp $ | ||
10 | |||
11 | proc lshift {lvar} { | ||
12 | upvar $lvar l | ||
13 | set ret [lindex $l 0] | ||
14 | set l [lrange $l 1 end] | ||
15 | return $ret | ||
16 | } | ||
17 | while {[set arg [lshift argv]] != ""} { | ||
18 | switch -- $arg { | ||
19 | -sharedpagercache { | ||
20 | sqlite3_enable_shared_cache 1 | ||
21 | } | ||
22 | -soak { | ||
23 | set SOAKTEST 1 | ||
24 | } | ||
25 | default { | ||
26 | set argv [linsert $argv 0 $arg] | ||
27 | break | ||
28 | } | ||
29 | } | ||
30 | } | ||
31 | |||
32 | set testdir [file dirname $argv0] | ||
33 | source $testdir/tester.tcl | ||
34 | rename finish_test really_finish_test | ||
35 | proc finish_test {} {} | ||
36 | set ISQUICK 1 | ||
37 | |||
38 | set EXCLUDE { | ||
39 | all.test | ||
40 | async.test | ||
41 | async2.test | ||
42 | btree2.test | ||
43 | btree3.test | ||
44 | btree4.test | ||
45 | btree5.test | ||
46 | btree6.test | ||
47 | corrupt.test | ||
48 | crash.test | ||
49 | crash2.test | ||
50 | crash3.test | ||
51 | exclusive3.test | ||
52 | fuzz.test | ||
53 | fuzz_malloc.test | ||
54 | in2.test | ||
55 | loadext.test | ||
56 | malloc.test | ||
57 | malloc2.test | ||
58 | malloc3.test | ||
59 | malloc4.test | ||
60 | memleak.test | ||
61 | misc7.test | ||
62 | misuse.test | ||
63 | onefile.test | ||
64 | quick.test | ||
65 | soak.test | ||
66 | speed1.test | ||
67 | speed2.test | ||
68 | sqllimits1.test | ||
69 | |||
70 | thread001.test | ||
71 | thread002.test | ||
72 | |||
73 | incrvacuum_ioerr.test | ||
74 | autovacuum_crash.test | ||
75 | btree8.test | ||
76 | utf16.test | ||
77 | shared_err.test | ||
78 | vtab_err.test | ||
79 | } | ||
80 | |||
81 | if {[sqlite3 -has-codec]} { | ||
82 | # lappend EXCLUDE \ | ||
83 | # conflict.test | ||
84 | } | ||
85 | |||
86 | |||
87 | # Files to include in the test. If this list is empty then everything | ||
88 | # that is not in the EXCLUDE list is run. | ||
89 | # | ||
90 | set INCLUDE { | ||
91 | } | ||
92 | |||
93 | foreach testfile [lsort -dictionary [glob $testdir/*.test]] { | ||
94 | set tail [file tail $testfile] | ||
95 | if {[lsearch -exact $EXCLUDE $tail]>=0} continue | ||
96 | if {[llength $INCLUDE]>0 && [lsearch -exact $INCLUDE $tail]<0} continue | ||
97 | source $testfile | ||
98 | catch {db close} | ||
99 | if {$sqlite_open_file_count>0} { | ||
100 | puts "$tail did not close all files: $sqlite_open_file_count" | ||
101 | incr nErr | ||
102 | lappend ::failList $tail | ||
103 | set sqlite_open_file_count 0 | ||
104 | } | ||
105 | } | ||
106 | source $testdir/misuse.test | ||
107 | |||
108 | set sqlite_open_file_count 0 | ||
109 | really_finish_test | ||