aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authordan <Dan Kennedy>2023-08-28 20:14:19 +0000
committerdan <Dan Kennedy>2023-08-28 20:14:19 +0000
commit35c7f538e9ca6c38340d284e877106ea45597573 (patch)
tree60b2f431d232a9eebd271f30494122170ef0c17c /ext
parentece2d7f2be16329e34e6acb7913b42c70447881b (diff)
parentecdc5b3e6f421de46780bab7b65e527df11d1531 (diff)
downloadsqlite-35c7f538e9ca6c38340d284e877106ea45597573.tar.gz
sqlite-35c7f538e9ca6c38340d284e877106ea45597573.zip
Updates to testrunner.tcl so that it runs fuzztest using multiple jobs.
FossilOrigin-Name: ceeabe9f8b31a30c65147fd270b92d43c7842247548cee9de165113991f6c2cf
Diffstat (limited to 'ext')
-rw-r--r--ext/fts5/test/fts5optimize2.test21
-rw-r--r--ext/fts5/test/fts5optimize3.test45
2 files changed, 46 insertions, 20 deletions
diff --git a/ext/fts5/test/fts5optimize2.test b/ext/fts5/test/fts5optimize2.test
index a0782ee79..b0b28874c 100644
--- a/ext/fts5/test/fts5optimize2.test
+++ b/ext/fts5/test/fts5optimize2.test
@@ -9,7 +9,7 @@
#
#***********************************************************************
#
-# TESTRUNNER: slow
+# TESTRUNNER: superslow
#
source [file join [file dirname [info script]] fts5_common.tcl]
@@ -42,23 +42,4 @@ do_execsql_test 1.2 {
SELECT count(*) FROM t1('mno')
} $nLoop
-do_execsql_test 2.0 {
- CREATE VIRTUAL TABLE t2 USING fts5(x);
- INSERT INTO t2(t2, rank) VALUES('pgsz', 32);
-}
-
-do_test 2.1 {
- for {set ii 0} {$ii < $nLoop} {incr ii} {
- execsql {
- INSERT INTO t2 VALUES('abc def ghi');
- INSERT INTO t2 VALUES('jkl mno pqr');
- INSERT INTO t2(t2, rank) VALUES('merge', -1);
- }
- }
-} {}
-
-do_execsql_test 2.2 {
- SELECT count(*) FROM t2('mno')
-} $nLoop
-
finish_test
diff --git a/ext/fts5/test/fts5optimize3.test b/ext/fts5/test/fts5optimize3.test
new file mode 100644
index 000000000..7b11b9402
--- /dev/null
+++ b/ext/fts5/test/fts5optimize3.test
@@ -0,0 +1,45 @@
+# 2023 Aug 27
+#
+# 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.
+#
+#***********************************************************************
+#
+# TESTRUNNER: superslow
+#
+
+source [file join [file dirname [info script]] fts5_common.tcl]
+set testprefix fts5optimize2
+
+# If SQLITE_ENABLE_FTS5 is defined, omit this file.
+ifcapable !fts5 {
+ finish_test
+ return
+}
+
+set nLoop 2500
+
+do_execsql_test 1.0 {
+ CREATE VIRTUAL TABLE t2 USING fts5(x);
+ INSERT INTO t2(t2, rank) VALUES('pgsz', 32);
+}
+
+do_test 1.1 {
+ for {set ii 0} {$ii < $nLoop} {incr ii} {
+ execsql {
+ INSERT INTO t2 VALUES('abc def ghi');
+ INSERT INTO t2 VALUES('jkl mno pqr');
+ INSERT INTO t2(t2, rank) VALUES('merge', -1);
+ }
+ }
+} {}
+
+do_execsql_test 1.2 {
+ SELECT count(*) FROM t2('mno')
+} $nLoop
+
+finish_test