]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Add working -q and --help options to testfixture.
authordrh <drh@noemail.net>
Mon, 15 Feb 2016 19:38:17 +0000 (19:38 +0000)
committerdrh <drh@noemail.net>
Mon, 15 Feb 2016 19:38:17 +0000 (19:38 +0000)
FossilOrigin-Name: 404494e52b6385671ccde1c83b7b868986645536

manifest
manifest.uuid
test/tester.tcl

index aea14572f91a57d92181438cd4c4ba7b1f8f4650..4dbb251d569dc2fce9c82c9f4142fd74800a1272 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C In\sthe\stool/warning.sh\sscript,\sdisable\sAndroid-specific\scompiler\swarning\stests\nwhen\snot\srunning\son\sLinux.
-D 2016-02-15T18:58:37.285
+C Add\sworking\s-q\sand\s--help\soptions\sto\stestfixture.
+D 2016-02-15T19:38:17.026
 F Makefile.in 4e90dc1521879022aa9479268a4cd141d1771142
 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434
 F Makefile.msc 30f075dc4f27a07abb76088946b2944178d85347
@@ -1078,7 +1078,7 @@ F test/tclsqlite.test 7fb866443c7deceed22b63948ccd6f76b52ad054
 F test/tempdb.test 19d0f66e2e3eeffd68661a11c83ba5e6ace9128c
 F test/temptable.test d2c9b87a54147161bcd1822e30c1d1cd891e5b30
 F test/temptrigger.test 8ec228b0db5d7ebc4ee9b458fc28cb9e7873f5e1
-F test/tester.tcl 462376b478c1429030911b4cb7c8c517ef1fbd9b
+F test/tester.tcl 750365ff97047ded5f2d6e28df82a998f7c66ae0
 F test/thread001.test 9f22fd3525a307ff42a326b6bc7b0465be1745a5
 F test/thread002.test e630504f8a06c00bf8bbe68528774dd96aeb2e58
 F test/thread003.test ee4c9efc3b86a6a2767516a37bd64251272560a7
@@ -1427,7 +1427,7 @@ F tool/vdbe_profile.tcl 246d0da094856d72d2c12efec03250d71639d19f
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh a98af506df552f3b3c0d904f94e4cdc4e1a6d598
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 7026246300392a83cc23817dbc54c2c66bf1f2b3
-R fc9aa743a12cf9b6bf1ff5f64fb6b62a
+P 153f01a821e9844d0a2e418eb83c60f6c7695c8d
+R b996ecd577900723d8e8c822f6ba0fa2
 U drh
-Z e0842079d26b7ffa8e27ebf0376ee458
+Z 1c21e4bc8961adde657fcb0992c7a61d
index 186003bd91bbe4d962eab76a16689bc80aa3097a..33f1beae3eb2a769d065175f6fc9f11613fa3752 100644 (file)
@@ -1 +1 @@
-153f01a821e9844d0a2e418eb83c60f6c7695c8d
\ No newline at end of file
+404494e52b6385671ccde1c83b7b868986645536
\ No newline at end of file
index dc532c97fa370be598f920bdda9c56a92e8573d9..231cef5333984a153e416dbd0f1e4188df5a39f9 100644 (file)
@@ -374,6 +374,21 @@ proc do_not_use_codec {} {
   reset_db
 }
 
+# Print a HELP message and exit
+#
+proc print_help_and_quit {} {
+  puts {Options:
+  --pause                  Wait for user input before continuing
+  --soft-heap-limit=N      Set the soft-heap-limit to N
+  --maxerror=N             Quit after N errors
+  --verbose=(0|1)          Control the amount of output.  Default '1'
+  --output=FILE            set --verbose=2 and output to FILE.  Implies -q
+  -q                       Shorthand for --verbose=0
+  --help                   This message
+}
+  exit 1
+}
+
 # The following block only runs the first time this file is sourced. It
 # does not run in slave interpreters (since the ::cmdlinearg array is
 # populated before the test script is run in slave interpreters).
@@ -483,6 +498,13 @@ if {[info exists cmdlinearg]==0} {
           error "option --verbose= must be set to a boolean or to \"file\""
         }
       }
+      {.*help.*} {
+         print_help_and_quit
+      }
+      {^-q$} {
+        set cmdlinearg(output) test-out.txt
+        set cmdlinearg(verbose) 2
+      }
 
       default {
         lappend leftover $a