| Index: third_party/sqlite/sqlite-src-3100200/test/shell4.test
|
| diff --git a/third_party/sqlite/sqlite-src-3080704/test/shell4.test b/third_party/sqlite/sqlite-src-3100200/test/shell4.test
|
| similarity index 79%
|
| copy from third_party/sqlite/sqlite-src-3080704/test/shell4.test
|
| copy to third_party/sqlite/sqlite-src-3100200/test/shell4.test
|
| index c29faf00cfa18c085bdb862caa7d5693c4508cdb..fcb0b2b715042bfe2f4984a01b208afc3b1545b6 100644
|
| --- a/third_party/sqlite/sqlite-src-3080704/test/shell4.test
|
| +++ b/third_party/sqlite/sqlite-src-3100200/test/shell4.test
|
| @@ -12,12 +12,12 @@
|
| # The focus of this file is testing the CLI shell tool.
|
| # These tests are specific to the .stats command.
|
| #
|
| -# $Id: shell4.test,v 1.7 2009/07/17 16:54:48 shaneh Exp $
|
| -#
|
| +# 2015-03-19: Added tests for .trace
|
|
|
| # Test plan:
|
| #
|
| # shell4-1.*: Basic tests specific to the "stats" command.
|
| +# shell4-2.*: Basic tests for ".trace"
|
| #
|
| set testdir [file dirname $argv0]
|
| source $testdir/tester.tcl
|
| @@ -113,4 +113,24 @@ SELECT 1;
|
| [regexp {Autoindex Inserts} $res]
|
| } {1 1 1}
|
|
|
| +do_test shell4-2.1 {
|
| + catchcmd ":memory:" "CREATE TABLE t1(x);\n.trace"
|
| +} {1 {Usage: .trace FILE|off}}
|
| +do_test shell4-2.2 {
|
| + catchcmd ":memory:" "CREATE TABLE t1(x);\n.trace off\n.trace off\n"
|
| +} {0 {}}
|
| +do_test shell4-2.3 {
|
| + catchcmd ":memory:" ".trace stdout\n.trace\n.trace off\n.dump\n"
|
| +} {/^1 {PRAGMA.*Usage:.*}$/}
|
| +ifcapable trace {
|
| +do_test shell4-2.4 {
|
| + catchcmd ":memory:" ".trace stdout\nCREATE TABLE t1(x);SELECT * FROM t1;"
|
| +} {0 {CREATE TABLE t1(x);
|
| +SELECT * FROM t1;}}
|
| +do_test shell4-2.5 {
|
| + catchcmd ":memory:" "CREATE TABLE t1(x);\n.trace stdout\nSELECT * FROM t1;"
|
| +} {0 {SELECT * FROM t1;}}
|
| +}
|
| +
|
| +
|
| finish_test
|
|
|