3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #*************************************************************************
11 # This file implements regression tests for SQLite library. The
12 # focus of this script is testing the FTS4 module.
15 set testdir [file dirname $argv0]
16 source $testdir/tester.tcl
17 set testprefix fts4merge5
19 # If SQLITE_ENABLE_FTS3 is defined, omit this file.
25 source $testdir/genesis.tcl
28 CREATE TABLE t1(docid, words);
33 CREATE VIRTUAL TABLE x1 USING fts3;
34 INSERT INTO x1(x1) VALUES('nodesize=64');
35 INSERT INTO x1(x1) VALUES('maxpending=64');
39 INSERT INTO x1(docid, content) SELECT * FROM t1;
42 for {set tn 1} {1} {incr tn} {
43 set tc1 [db total_changes]
44 do_execsql_test 1.4.$tn.1 {
45 INSERT INTO x1(x1) VALUES('merge=1,2');
47 set tc2 [db total_changes]
49 if {($tc2 - $tc1)<2} break
51 do_execsql_test 1.4.$tn.1 {
52 INSERT INTO x1(x1) VALUES('integrity-check');