1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-10-26 21:59:27 +03:00
Files
sqlite/test/serverfreelist.test
dan 852841cc14 Add tests to this branch.
FossilOrigin-Name: abb6e076c851c0b10f62c02d0d7e54f24d86c75f01036dddbc0a8a7dfc627a0d
2017-08-18 18:55:22 +00:00

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