/ Check-in [fbf5e43c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Update test cases for the new "usage" for .output.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | excel-shell-cmd
Files: files | file ages | folders
SHA3-256: fbf5e43c07e7c012cb39b33a74b3fab9e46ba946c48497fbd990110692125f57
User & Date: drh 2018-01-10 23:27:30
Context
2018-01-10
23:29
Add the ".once -e" and ".once -x" commands to the CLI, and the ".excel" command that is an alias for ".once -x". check-in: a6ed5ab9 user: drh tags: trunk
23:27
Update test cases for the new "usage" for .output. Closed-Leaf check-in: fbf5e43c user: drh tags: excel-shell-cmd
22:27
Save and restore the output mode when doing ".once -x" or ".excel". check-in: f697c164 user: drh tags: excel-shell-cmd
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/shell1.test.

   491    491   } {0 {}}
   492    492   do_test shell1-3.15.2 {
   493    493     catchcmd "test.db" ".output FOO"
   494    494   } {0 {}}
   495    495   do_test shell1-3.15.3 {
   496    496     # too many arguments
   497    497     catchcmd "test.db" ".output FOO BAD"
   498         -} {1 {Usage: .output FILE}}
          498  +} {1 {Usage: .output [-e|-x|FILE]}}
   499    499   
   500    500   # .output stdout         Send output to the screen
   501    501   do_test shell1-3.16.1 {
   502    502     catchcmd "test.db" ".output stdout"
   503    503   } {0 {}}
   504    504   do_test shell1-3.16.2 {
   505    505     # too many arguments
   506    506     catchcmd "test.db" ".output stdout BAD"
   507         -} {1 {Usage: .output FILE}}
          507  +} {1 {Usage: .output [-e|-x|FILE]}}
   508    508   
   509    509   # .prompt MAIN CONTINUE  Replace the standard prompts
   510    510   do_test shell1-3.17.1 {
   511    511     catchcmd "test.db" ".prompt"
   512    512   } {0 {}}
   513    513   do_test shell1-3.17.2 {
   514    514     catchcmd "test.db" ".prompt FOO"