blob: e053504f7fee711beef9a346364a5d067f291c0b [file] [log] [blame] [edit]
# 2017 July 09
#
# 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 implements regression tests for SQLite library.
#
# The focus of this script is testing the server mode of SQLite.
# Specifically, that "PRAGMA freelist_format" works.
#
set testdir [file dirname $argv0]
source $testdir/tester.tcl
set testprefix server5
do_execsql_test 1.0 {
PRAGMA freelist_format;
} {1}
do_execsql_test 1.1 {
PRAGMA freelist_format = 2;
} {2}
do_execsql_test 1.2 {
PRAGMA freelist_format;
} {2}
do_execsql_test 1.3 {
PRAGMA freelist_format = 1;
} {1}
do_execsql_test 1.4 {
PRAGMA freelist_format;
} {1}
do_execsql_test 1.5 {
CREATE TABLE t1(x);
PRAGMA freelist_format = 2;
} {2}
do_execsql_test 1.6 {
CREATE TABLE t2(y);
}
do_execsql_test 1.6 {
PRAGMA freelist_format = 1;
} {2}
finish_test