mirror of
https://github.com/sqlite/sqlite.git
synced 2026-10-26 21:59:27 +03:00
57 lines
1.1 KiB
Plaintext
57 lines
1.1 KiB
Plaintext
# 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
|
|
|