From: drh <> Date: Sun, 2 Aug 2026 17:22:13 +0000 (+0000) Subject: Reduce the size of test cases for the closure extension so that they X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a1594cadeba2e4a6dc9c8207f8e3e6d9724d06ee;p=thirdparty%2Fsqlite.git Reduce the size of test cases for the closure extension so that they run faster. The closure extension is not important for anything anymore and is retained mostly for historical reference. There is no point in burning CPU cycles testing it with large cases. FossilOrigin-Name: 73350e128141ab21d8f4c1213a1cca4e153151d85e39643defd438341ed53d14 --- diff --git a/manifest b/manifest index 635a7932dd..3b6cecba20 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Enhance\sthe\s(unsupported)\sclosure\sextension\sto\ssupport\s64-bit\s"depth"\nvalues.\s[bugs:/info/2026-08-02T13:11:13Z|Bug\s2026-08-02T13:11:13Z]. -D 2026-08-02T17:12:01.022 +C Reduce\sthe\ssize\sof\stest\scases\sfor\sthe\sclosure\sextension\sso\sthat\sthey\nrun\sfaster.\s\sThe\sclosure\sextension\sis\snot\simportant\sfor\sanything\sanymore\nand\sis\sretained\smostly\sfor\shistorical\sreference.\s\sThere\sis\sno\spoint\sin\nburning\sCPU\scycles\stesting\sit\swith\slarge\scases. +D 2026-08-02T17:22:13.875 F .fossil-settings/binary-glob 61195414528fb3ea9693577e1980230d78a1f8b0a54c78cf1b9b24d0a409ed6a x F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea @@ -977,7 +977,7 @@ F test/checkfault.test da6cb3d50247169efcb20bdf57863a3ccfa1d27d9e55cd324f0680096 F test/chunksize.test faea11c5d6df9d392252a8dd879e1b1d68c9d3e8b7909cbed8bcec3b60c706f1 F test/cksumvfs.test f9639eac08c06485ecf62eed3c558521d2ffe62de0774248d6862826740fe433 F test/close.test eccbad8ecd611d974cbf47278c3d4e5874faf02d811338d5d348af42d56d647c -F test/closure01.test 3ce2739ebd732d9e84005de89bb2ec326198fd03250b9278be7dfd22176b6b61 +F test/closure01.test 39fcc76ccf078b66c3969ab36aaad992ed7e2f4aabc7de33ca7ab754ba1673e5 F test/coalesce.test cee0dccb9fbd2d494b77234bccf9dc6c6786eb91 F test/collate1.test 0890fa372753b59eba53832d37328af815f6b8e4b16761823180eeb62c8e8f64 F test/collate2.test 471c6f74573382b89b0f8b88a05256faa52f7964f9e4799e76708a3b1ece6ba4 @@ -2218,8 +2218,8 @@ F tool/warnings-clang.sh bbf6a1e685e534c92ec2bfba5b1745f34fb6f0bc2a362850723a9ee F tool/warnings.sh a554d13f6e5cf3760f041b87939e3d616ec6961859c3245e8ef701d1eafc2ca2 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f F tool/winmain.c 00c8fb88e365c9017db14c73d3c78af62194d9644feaf60e220ab0f411f3604c -P 5e347561c3f8d271bf47c44473fa4b51b87ccab91b40c33f5aad28990a26e9ba -R bd10eb8279d2014e2b963934b3496904 +P fccfd5c410c875c35b72475d442c9c1d384deaef1859ba05586841d6c0909e0d +R 90778cc7b21b2749b9c21414bec95aee U drh -Z d819623a3f1c0555578818bd773f452c +Z f0ac2f799c0844b946d3f34a21fe99fa # Remove this line to create a well-formed Fossil manifest. diff --git a/manifest.uuid b/manifest.uuid index f3f5b0e5f4..e658b5ea11 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -fccfd5c410c875c35b72475d442c9c1d384deaef1859ba05586841d6c0909e0d +73350e128141ab21d8f4c1213a1cca4e153151d85e39643defd438341ed53d14 diff --git a/test/closure01.test b/test/closure01.test index a5305ff8a0..d5e3babe94 100644 --- a/test/closure01.test +++ b/test/closure01.test @@ -23,7 +23,7 @@ do_execsql_test 1.0 { BEGIN; CREATE TABLE t1(x INTEGER PRIMARY KEY, y INTEGER); WITH RECURSIVE - cnt(i) AS (VALUES(1) UNION ALL SELECT i+1 FROM cnt LIMIT 131072) + cnt(i) AS (VALUES(1) UNION ALL SELECT i+1 FROM cnt LIMIT 4096) INSERT INTO t1(x, y) SELECT i, nullif(i,1)/2 FROM cnt; CREATE INDEX t1y ON t1(y); COMMIT; @@ -34,7 +34,7 @@ do_execsql_test 1.0 { # The entire table do_timed_execsql_test 1.1 { SELECT count(*), depth FROM cx WHERE root=1 GROUP BY depth ORDER BY 1; -} {/1 0 1 17 2 1 4 2 8 3 16 4 .* 65536 16/} +} {1 0 1 12 2 1 4 2 8 3 16 4 32 5 64 6 128 7 256 8 512 9 1024 10 2048 11} do_timed_execsql_test 1.1-cte { WITH RECURSIVE below(id,depth) AS ( @@ -44,67 +44,67 @@ do_timed_execsql_test 1.1-cte { FROM t1 JOIN below on t1.y=below.id ) SELECT count(*), depth FROM below GROUP BY depth ORDER BY 1; -} {/1 0 1 17 2 1 4 2 8 3 16 4 .* 65536 16/} +} {1 0 1 12 2 1 4 2 8 3 16 4 32 5 64 6 128 7 256 8 512 9 1024 10 2048 11} -# descendents of 32768 +# descendents of 1024 do_timed_execsql_test 1.2 { - SELECT * FROM cx WHERE root=32768 ORDER BY id; -} {32768 0 65536 1 65537 1 131072 2} + SELECT * FROM cx WHERE root=1024 ORDER BY id; +} {1024 0 2048 1 2049 1 4096 2} do_timed_execsql_test 1.2-cte { WITH RECURSIVE below(id,depth) AS ( - VALUES(32768,0) + VALUES(1024,0) UNION ALL SELECT t1.x, below.depth+1 FROM t1 JOIN below on t1.y=below.id WHERE below.depth<2 ) SELECT id, depth FROM below ORDER BY id; -} {32768 0 65536 1 65537 1 131072 2} +} {1024 0 2048 1 2049 1 4096 2} -# descendents of 16384 +# descendents of 512 do_timed_execsql_test 1.3 { - SELECT * FROM cx WHERE root=16384 AND depth<=2 ORDER BY id; -} {16384 0 32768 1 32769 1 65536 2 65537 2 65538 2 65539 2} + SELECT * FROM cx WHERE root=512 AND depth<=2 ORDER BY id; +} {512 0 1024 1 1025 1 2048 2 2049 2 2050 2 2051 2} do_timed_execsql_test 1.3-cte { WITH RECURSIVE below(id,depth) AS ( - VALUES(16384,0) + VALUES(512,0) UNION ALL SELECT t1.x, below.depth+1 FROM t1 JOIN below on t1.y=below.id WHERE below.depth<2 ) SELECT id, depth FROM below ORDER BY id; -} {16384 0 32768 1 32769 1 65536 2 65537 2 65538 2 65539 2} +} {512 0 1024 1 1025 1 2048 2 2049 2 2050 2 2051 2} -# children of 16384 +# children of 2048 do_execsql_test 1.4 { SELECT id, depth, root, tablename, idcolumn, parentcolumn FROM cx - WHERE root=16384 + WHERE root=2048 AND depth=1 ORDER BY id; -} {32768 1 {} t1 x y 32769 1 {} t1 x y} +} {4096 1 {} t1 x y} -# great-grandparent of 16384 +# great-grandparent of 1024 do_timed_execsql_test 1.5 { SELECT id, depth, root, tablename, idcolumn, parentcolumn FROM cx - WHERE root=16384 + WHERE root=1024 AND depth=3 AND idcolumn='Y' AND parentcolumn='X'; -} {2048 3 {} t1 Y X} +} {128 3 {} t1 Y X} do_timed_execsql_test 1.5-cte { WITH RECURSIVE above(id,depth) AS ( - VALUES(16384,0) + VALUES(1024,0) UNION ALL SELECT t1.y, above.depth+1 FROM t1 JOIN above ON t1.x=above.id WHERE above.depth<3 ) SELECT id FROM above WHERE depth=3; -} {2048} +} {128} # depth<5 do_timed_execsql_test 1.6 {