summaryrefslogtreecommitdiff
path: root/test/clierrors.sql
blob: eb2e0e09bf642a4e2276c6c51561c164816fc049 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#!sqlite3
#
# 2026-10-09
#
# 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.
#
#***********************************************************************
#
# Test cases for error handling in dot-commands.
#
#   ./sqlite3 test/clierrors.sql
#
#
.open :memory:
.mode -reset test
.testcase 100
.import file table extra
.check --glob <<END
*: .import file table extra
*:                    ^--- unknown argument
END
.testcase 110
.import file table --schema
.check --glob <<END
*: .import file table --schema
*:                    ^--- missing argument
END
.testcase 120
.import file table --skip
.check --glob <<END
*: .import file table --skip
*:                    ^--- missing argument
END
.testcase 130
.import --esc
.check --glob <<END
*: .import --esc
*:         ^--- missing argument
END
.testcase 140
.import --qesc
.check --glob <<END
*: .import --qesc
*:         ^--- missing argument
END
.testcase 150
.import --rowsep
.check --glob <<END
*: .import --rowsep
*:         ^--- missing argument
END
.testcase 160
.import --colsep
.check --glob <<END
*: .import --colsep
*:         ^--- missing argument
END
.testcase 170
.import --xyzzy
.check --glob <<END
*: .import --xyzzy
*:         ^--- unknown option
END
.testcase 180
.import --colsep hi
.check --glob <<END
*: Missing FILE argument
END