Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/sqlite/sqlite-src-3080704/test/shell3.test

Issue 2363173002: [sqlite] Remove obsolete reference version 3.8.7.4. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3080704/test/shell3.test
diff --git a/third_party/sqlite/sqlite-src-3080704/test/shell3.test b/third_party/sqlite/sqlite-src-3080704/test/shell3.test
deleted file mode 100644
index ce1fd4ecb5d82931fc0dddf5abaa1f2b63a71885..0000000000000000000000000000000000000000
--- a/third_party/sqlite/sqlite-src-3080704/test/shell3.test
+++ /dev/null
@@ -1,97 +0,0 @@
-# 2009 Dec 16
-#
-# The author disclaims copyright to this source code. In place of
-# a legal notice, here is a blessing:
-#
-# May you do good and not evil.
-# May you find forgiveness for yourself and forgive others.
-# May you share freely, never taking more than you give.
-#
-#***********************************************************************
-#
-# The focus of this file is testing the CLI shell tool.
-#
-# $Id: shell2.test,v 1.7 2009/07/17 16:54:48 shaneh Exp $
-#
-
-# Test plan:
-#
-# shell3-1.*: Basic tests for running SQL statments from command line.
-# shell3-2.*: Basic tests for running SQL file from command line.
-#
-set testdir [file dirname $argv0]
-source $testdir/tester.tcl
-if {$tcl_platform(platform)=="windows"} {
- set CLI "sqlite3.exe"
-} else {
- set CLI "./sqlite3"
-}
-if {![file executable $CLI]} {
- finish_test
- return
-}
-db close
-forcedelete test.db test.db-journal test.db-wal
-sqlite3 db test.db
-
-#----------------------------------------------------------------------------
-# shell3-1.*: Basic tests for running SQL statments from command line.
-#
-
-# Run SQL statement from command line
-do_test shell3-1.1 {
- forcedelete foo.db
- set rc [ catchcmd "foo.db \"CREATE TABLE t1(a);\"" ]
- set fexist [file exist foo.db]
- list $rc $fexist
-} {{0 {}} 1}
-do_test shell3-1.2 {
- catchcmd "foo.db" ".tables"
-} {0 t1}
-do_test shell3-1.3 {
- catchcmd "foo.db \"DROP TABLE t1;\""
-} {0 {}}
-do_test shell3-1.4 {
- catchcmd "foo.db" ".tables"
-} {0 {}}
-do_test shell3-1.5 {
- catchcmd "foo.db \"CREATE TABLE t1(a); DROP TABLE t1;\""
-} {0 {}}
-do_test shell3-1.6 {
- catchcmd "foo.db" ".tables"
-} {0 {}}
-do_test shell3-1.7 {
- catchcmd "foo.db \"CREATE TABLE\""
-} {1 {Error: near "TABLE": syntax error}}
-
-#----------------------------------------------------------------------------
-# shell3-2.*: Basic tests for running SQL file from command line.
-#
-
-# Run SQL file from command line
-do_test shell3-2.1 {
- forcedelete foo.db
- set rc [ catchcmd "foo.db" "CREATE TABLE t1(a);" ]
- set fexist [file exist foo.db]
- list $rc $fexist
-} {{0 {}} 1}
-do_test shell3-2.2 {
- catchcmd "foo.db" ".tables"
-} {0 t1}
-do_test shell3-2.3 {
- catchcmd "foo.db" "DROP TABLE t1;"
-} {0 {}}
-do_test shell3-2.4 {
- catchcmd "foo.db" ".tables"
-} {0 {}}
-do_test shell3-2.5 {
- catchcmd "foo.db" "CREATE TABLE t1(a); DROP TABLE t1;"
-} {0 {}}
-do_test shell3-2.6 {
- catchcmd "foo.db" ".tables"
-} {0 {}}
-do_test shell3-2.7 {
- catchcmd "foo.db" "CREATE TABLE"
-} {1 {Error: incomplete SQL: CREATE TABLE}}
-
-finish_test
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/test/shell2.test ('k') | third_party/sqlite/sqlite-src-3080704/test/shell4.test » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698