Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: third_party/sqlite/src/test/fts2.test

Issue 6990047: Import SQLite 3.7.6.3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/src/test/fkey_malloc.test ('k') | third_party/sqlite/src/test/fts3.test » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 2008 July 22 1 # 2008 July 22
2 # 2 #
3 # May you do good and not evil. 3 # May you do good and not evil.
4 # May you find forgiveness for yourself and forgive others. 4 # May you find forgiveness for yourself and forgive others.
5 # May you share freely, never taking more than you give. 5 # May you share freely, never taking more than you give.
6 # 6 #
7 #*********************************************************************** 7 #***********************************************************************
8 # This file runs all tests. 8 # This file runs all tests.
9 # 9 #
10 # $Id: fts2.test,v 1.2 2008/07/23 18:17:32 drh Exp $ 10 # $Id: fts2.test,v 1.2 2008/07/23 18:17:32 drh Exp $
11 11
12 proc lshift {lvar} { 12 proc lshift {lvar} {
13 upvar $lvar l 13 upvar $lvar l
14 set ret [lindex $l 0] 14 set ret [lindex $l 0]
15 set l [lrange $l 1 end] 15 set l [lrange $l 1 end]
16 return $ret 16 return $ret
17 } 17 }
18 while {[set arg [lshift argv]] != ""} { 18 while {[set arg [lshift argv]] != ""} {
19 switch -- $arg { 19 switch -- $arg {
20 -sharedpagercache { 20 -sharedpagercache {
21 sqlite3_enable_shared_cache 1 21 sqlite3_enable_shared_cache 1
22 } 22 }
23 -soak { 23 -soak {
24 set SOAKTEST 1 24 set G(issoak) 1
25 } 25 }
26 default { 26 default {
27 set argv [linsert $argv 0 $arg] 27 set argv [linsert $argv 0 $arg]
28 break 28 break
29 } 29 }
30 } 30 }
31 } 31 }
32 32
33 set testdir [file dirname $argv0] 33 set testdir [file dirname $argv0]
34 source $testdir/tester.tcl 34 source $testdir/tester.tcl
35 # If SQLITE_ENABLE_FTS2 is defined, omit this file. 35 # If SQLITE_ENABLE_FTS2 is defined, omit this file.
36 ifcapable !fts2 { 36 ifcapable !fts2 {
37 return 37 return
38 } 38 }
39 rename finish_test really_finish_test 39 rename finish_test really_finish_test
40 proc finish_test {} {} 40 proc finish_test {} {}
41 set ISQUICK 1 41 set G(isquick) 1
42 42
43 set EXCLUDE { 43 set EXCLUDE {
44 fts2.test 44 fts2.test
45 } 45 }
46 46
47 # Files to include in the test. If this list is empty then everything 47 # Files to include in the test. If this list is empty then everything
48 # that is not in the EXCLUDE list is run. 48 # that is not in the EXCLUDE list is run.
49 # 49 #
50 set INCLUDE { 50 set INCLUDE {
51 } 51 }
52 52
53 foreach testfile [lsort -dictionary [glob $testdir/fts2*.test]] { 53 foreach testfile [lsort -dictionary [glob $testdir/fts2*.test]] {
54 set tail [file tail $testfile] 54 set tail [file tail $testfile]
55 if {[lsearch -exact $EXCLUDE $tail]>=0} continue 55 if {[lsearch -exact $EXCLUDE $tail]>=0} continue
56 if {[llength $INCLUDE]>0 && [lsearch -exact $INCLUDE $tail]<0} continue 56 if {[llength $INCLUDE]>0 && [lsearch -exact $INCLUDE $tail]<0} continue
57 source $testfile 57 source $testfile
58 catch {db close} 58 catch {db close}
59 if {$sqlite_open_file_count>0} { 59 if {$sqlite_open_file_count>0} {
60 puts "$tail did not close all files: $sqlite_open_file_count" 60 puts "$tail did not close all files: $sqlite_open_file_count"
61 incr nErr 61 fail_test $tail
62 lappend ::failList $tail
63 set sqlite_open_file_count 0 62 set sqlite_open_file_count 0
64 } 63 }
65 } 64 }
66 65
67 set sqlite_open_file_count 0 66 set sqlite_open_file_count 0
68 really_finish_test 67 really_finish_test
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/fkey_malloc.test ('k') | third_party/sqlite/src/test/fts3.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698