From: danielk1977 Date: Thu, 26 Jan 2006 13:11:36 +0000 (+0000) Subject: Add omittest.tcl script to automate testing compile-time OMIT symbols. (CVS 3031) X-Git-Tag: version-3.6.10~3136 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=9dfa60bf8cf22b0ad14897349329091a5bd5cbe3;p=thirdparty%2Fsqlite.git Add omittest.tcl script to automate testing compile-time OMIT symbols. (CVS 3031) FossilOrigin-Name: 540d28a7d355d846cedfc21fb5156379fec830ce --- diff --git a/manifest b/manifest index 7a66b3ec30..2126a5fbad 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Handle\sa\smalloc()\sfailure\sin\sresizeOpArray().\s(CVS\s3030) -D 2006-01-26T10:35:05 +C Add\somittest.tcl\sscript\sto\sautomate\stesting\scompile-time\sOMIT\ssymbols.\s(CVS\s3031) +D 2006-01-26T13:11:37 F Makefile.in e936c6fc3134838318aa0335a85041e6da31f6ee F Makefile.linux-gcc 74ba0eadf88748a9ce3fd03d2a3ede2e6715baec F README 9c4e2d6706bdcc3efdd773ce752a8cdab4f90028 @@ -229,7 +229,7 @@ F test/select6.test d8ea108b65607399580f2765df0aee5e464b0fd8 F test/select7.test 1bf795b948c133a15a2a5e99d3270e652ec58ce6 F test/server1.test e328b8e641ba8fe9273132cfef497383185dc1f5 F test/shared.test 0ed247941236788c255b3b29b5a82d5ca71b6432 -F test/shared2.test 3466dc54ca69a3c50ac259e106fb5cd067b8cd53 +F test/shared2.test 8b48f8d33494413ef4cf250110d89403e2bf6b23 F test/shared_err.test 299a9180a6376b2089e8e0d469f383fe91bfa4ff F test/sort.test 0e4456e729e5a92a625907c63dcdedfbe72c5dc5 F test/subquery.test ae324ee928c5fb463a3ce08a8860d6e7f1ca5797 @@ -284,6 +284,7 @@ F tool/memleak2.awk 9cc20c8e8f3c675efac71ea0721ee6874a1566e8 F tool/memleak3.tcl 7707006ee908cffff210c98158788d85bb3fcdbf F tool/mkkeywordhash.c fa58d31c047fa3411761b01907d6df05781970d6 F tool/mkopts.tcl 66ac10d240cc6e86abd37dc908d50382f84ff46e x +F tool/omittest.tcl 3d07c8f67e7e6c369b07d31d97aaa3e434f0e9e7 F tool/opcodeDoc.awk b3a2a3d5d3075b8bd90b7afe24283efdd586659c F tool/report1.txt 9eae07f26a8fc53889b45fc833a66a33daa22816 F tool/showdb.c a086a3d788c7a23cb008317c3180ceb19f20bce0 @@ -346,7 +347,7 @@ F www/tclsqlite.tcl bb0d1357328a42b1993d78573e587c6dcbc964b9 F www/vdbe.tcl 87a31ace769f20d3627a64fa1fade7fed47b90d0 F www/version3.tcl a99cf5f6d8bd4d5537584a2b342f0fb9fa601d8b F www/whentouse.tcl 97e2b5cd296f7d8057e11f44427dea8a4c2db513 -P 9e55dcd1a57f2b6ad5b267e8fa58c58b266dc8c7 -R 50d385e1d4cc2be81d84f045aa659461 +P 5cecb4527b40c245cc6f3d6ce9f33466045d1469 +R 167e219a347c7a86ebd59590ad4b4d34 U danielk1977 -Z 3e812ebff127cb7648b222781378b092 +Z 7e436f8b3b0e7e9dfae1126c1d6808ee diff --git a/manifest.uuid b/manifest.uuid index ed95691ea3..093daddd19 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -5cecb4527b40c245cc6f3d6ce9f33466045d1469 \ No newline at end of file +540d28a7d355d846cedfc21fb5156379fec830ce \ No newline at end of file diff --git a/test/shared2.test b/test/shared2.test index d7428fa51d..9af30de4fc 100644 --- a/test/shared2.test +++ b/test/shared2.test @@ -9,7 +9,7 @@ # #*********************************************************************** # -# $Id: shared2.test,v 1.3 2006/01/24 14:21:24 danielk1977 Exp $ +# $Id: shared2.test,v 1.4 2006/01/26 13:11:37 danielk1977 Exp $ set testdir [file dirname $argv0] source $testdir/tester.tcl @@ -21,7 +21,6 @@ ifcapable !shared_cache { } set ::enable_shared_cache [sqlite3_enable_shared_cache 1] - # Test that if we delete all rows from a table any read-uncommitted # cursors are correctly invalidated. Test on both table and index btrees. do_test shared2-1.1 { @@ -78,7 +77,9 @@ do_test shared2-1.3 { list $a $count } {32 64} -# Rollback data into or out of a table while a read-uncommitted +#--------------------------------------------------------------------------- +# These tests, shared2.2.*, test the outcome when data is added to or +# removed from a table due to a rollback while a read-uncommitted # cursor is scanning it. # do_test shared2-2.1 { diff --git a/tool/omittest.tcl b/tool/omittest.tcl new file mode 100644 index 0000000000..c8e0450895 --- /dev/null +++ b/tool/omittest.tcl @@ -0,0 +1,173 @@ + +set rcsid {$Id: omittest.tcl,v 1.1 2006/01/26 13:11:37 danielk1977 Exp $} + +# Documentation for this script. This may be output to stderr +# if the script is invoked incorrectly. +set ::USAGE_MESSAGE { +This Tcl script is used to test the various compile time options +available for omitting code (the SQLITE_OMIT_xxx options). It +should be invoked as follows: + +