diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 23:37:03 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-18 23:37:03 +0000 |
commit | e33cba46498a40774bc6d33a9258afbd5fa059e6 (patch) | |
tree | 4ce6b22f4f7b2b245b2d89bb9209a53e3274b263 /third_party/sqlite/test/pcache2.test | |
parent | aaf6472fd01db928919d4dc13687bde2a4b5c7b9 (diff) | |
download | chromium_src-e33cba46498a40774bc6d33a9258afbd5fa059e6.zip chromium_src-e33cba46498a40774bc6d33a9258afbd5fa059e6.tar.gz chromium_src-e33cba46498a40774bc6d33a9258afbd5fa059e6.tar.bz2 |
Move bundled copy of sqlite one level deeper to better separate it
from our patches, READMEs, etc.
Also, add a shim header so we can use it for building
with system sqlite.
TEST=compile
BUG=22208
Review URL: http://codereview.chromium.org/3108030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56619 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/sqlite/test/pcache2.test')
-rw-r--r-- | third_party/sqlite/test/pcache2.test | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/third_party/sqlite/test/pcache2.test b/third_party/sqlite/test/pcache2.test deleted file mode 100644 index 14df52e..0000000 --- a/third_party/sqlite/test/pcache2.test +++ /dev/null @@ -1,80 +0,0 @@ -# 2008 September 15 -# -# The author disclaims copyright to this source code. In place of -# a legal notice, here is a blessing: -# -# May you do good and not evil. -# May you find forgiveness for yourself and forgive others. -# May you share freely, never taking more than you give. -# -#*********************************************************************** -# -# This file is focused on testing the pcache module. -# -# $Id: pcache2.test,v 1.5 2009/07/18 14:36:24 danielk1977 Exp $ - -set testdir [file dirname $argv0] -source $testdir/tester.tcl - - -# Set up a pcache memory pool so that we can easily track how many -# pages are being used for cache. -# -do_test pcache2-1.1 { - db close - sqlite3_reset_auto_extension - sqlite3_shutdown - sqlite3_config_pagecache 6000 100 - sqlite3_initialize - autoinstall_test_functions - sqlite3_status SQLITE_STATUS_PAGECACHE_USED 1 - sqlite3_status SQLITE_STATUS_PAGECACHE_USED 0 -} {0 0 0} - -# Open up two database connections to separate files. -# -do_test pcache2-1.2 { - file delete -force test.db test.db-journal - sqlite3 db test.db - db eval {PRAGMA cache_size=10} - lindex [sqlite3_status SQLITE_STATUS_PAGECACHE_USED 0] 1 -} {2} -do_test pcache2-1.3 { - file delete -force test2.db test2.db-journal - sqlite3 db2 test2.db - db2 eval {PRAGMA cache_size=50} - lindex [sqlite3_status SQLITE_STATUS_PAGECACHE_USED 0] 1 -} {4} - - -# Make lots of changes on the first connection. Verify that the -# page cache usage does not grow to consume the page space set aside -# for the second connection. -# -do_test pcache2-1.4 { - db eval { - CREATE TABLE t1(a,b); - CREATE TABLE t2(x,y); - INSERT INTO t1 VALUES(1, zeroblob(800)); - INSERT INTO t1 VALUES(2, zeroblob(800)); - INSERT INTO t2 SELECT * FROM t1; - INSERT INTO t1 SELECT x+2, y FROM t2; - INSERT INTO t2 SELECT a+10, b FROM t1; - INSERT INTO t1 SELECT x+10, y FROM t2; - INSERT INTO t2 SELECT a+100, b FROM t1; - INSERT INTO t1 SELECT x+100, y FROM t2; - INSERT INTO t2 SELECT a+1000, b FROM t1; - INSERT INTO t1 SELECT x+1000, y FROM t2; - } - sqlite3_status SQLITE_STATUS_PAGECACHE_USED 0 -} {0 13 13} - -db close -catch {db2 close} -sqlite3_reset_auto_extension -sqlite3_shutdown -sqlite3_config_pagecache 0 0 -sqlite3_initialize -autoinstall_test_functions - -finish_test |