1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Have tests pass when SQLITE_OMIT_MEMORYDB is defined. (CVS 2131)

FossilOrigin-Name: 9df837c03939cdcb31856ac17b2425a6dd92d7b2
This commit is contained in:
danielk1977
2004-11-22 05:26:27 +00:00
parent 215e64da5e
commit 03aded4924
10 changed files with 56 additions and 24 deletions

View File

@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing the SELECT statement.
#
# $Id: autovacuum.test,v 1.12 2004/11/14 04:04:18 drh Exp $
# $Id: autovacuum.test,v 1.13 2004/11/22 05:26:28 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -90,7 +90,6 @@ foreach delete_order $delete_orders {
} {ok}
}
# set btree_trace 1
foreach delete $delete_order {
# Delete one set of rows from the table.
do_test autovacuum-1.$tn.($delete).1 {

View File

@@ -11,12 +11,14 @@
# This file implements regression tests for SQLite library. The
# focus of this script is in-memory database backend.
#
# $Id: memdb.test,v 1.10 2004/11/04 14:47:13 drh Exp $
# $Id: memdb.test,v 1.11 2004/11/22 05:26:28 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
ifcapable memorydb {
# In the following sequence of tests, compute the MD5 sum of the content
# of a table, make lots of modifications to that table, then do a rollback.
# Verify that after the rollback, the MD5 checksum is unchanged.
@@ -367,4 +369,6 @@ for {set i 1} {$i<=256} {incr i} {
} [expr {256-$i}]
}
} ;# ifcapable memorydb
finish_test

View File

@@ -11,13 +11,17 @@
# This file implements regression tests for SQLite library. The
# focus of this script is page cache subsystem.
#
# $Id: pager2.test,v 1.4 2004/10/05 02:41:43 drh Exp $
# $Id: pager2.test,v 1.5 2004/11/22 05:26:28 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
# Don't run this test file if the pager test interface [pager_open] is not
# available, or the library was compiled without in-memory database support.
#
if {[info commands pager_open]!=""} {
ifcapable memorydb {
db close
# Basic sanity check. Open and close a pager.
@@ -397,7 +401,8 @@ do_test pager2-4.99 {
pager_close $::p1
} {}
} ;# end if( not mem: and has pager_open command );
} ;# ifcapable inmemory
} ;# end if( has pager_open command );
finish_test

View File

@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing the VACUUM statement.
#
# $Id: vacuum.test,v 1.29 2004/11/10 15:27:38 danielk1977 Exp $
# $Id: vacuum.test,v 1.30 2004/11/22 05:26:28 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -228,7 +228,11 @@ ifcapable {bloblit} {
} {1}
}
# Check what happens when an in-memory database is vacuumed.
# Check what happens when an in-memory database is vacuumed. The
# [file delete] command covers us in case the library was compiled
# without in-memory database support.
#
file delete -force :memory:
do_test vacuum-7.0 {
sqlite3 db2 :memory:
execsql {