sqlite/test/jrnlmode4.test
danielk1977 ea142bb6e6 Modify the header comment in jrnlmode2.test. No code or test changes. (CVS 5100)
FossilOrigin-Name: ed728104c8e77a5526a2fcb62fea577940731d90
2008-05-07 15:44:25 +00:00

61 lines
1.4 KiB
Plaintext

# 2007 March 26
#
# 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 runs a few of the other test files (select1.test etc.) with
# persistent journal mode disabled.
#
# $Id: jrnlmode4.test,v 1.3 2008/05/07 15:44:26 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
ifcapable {!pager_pragmas} {
finish_test
return
}
rename finish_test really_finish_test2
proc finish_test {} {}
set ISQUICK 1
rename sqlite3 real_sqlite3
proc sqlite3 {args} {
set r [eval "real_sqlite3 $args"]
if { [llength $args] == 2 } {
[lindex $args 0] eval {PRAGMA journal_mode = off}
}
set r
}
rename do_test really_do_test
proc do_test {args} {
set sc [concat really_do_test "jrlnmode4-[lindex $args 0]" \
[lrange $args 1 end]]
eval $sc
}
source $testdir/delete.test
source $testdir/delete2.test
source $testdir/insert.test
source $testdir/select1.test
source $testdir/select2.test
source $testdir/update.test
source $testdir/vacuum.test
rename sqlite3 ""
rename real_sqlite3 sqlite3
rename finish_test ""
rename really_finish_test2 finish_test
rename do_test ""
rename really_do_test do_test
finish_test