1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-02 17:26:44 +03:00

Move the shell test scripts into the test/ subfolder so that they are

run automatically by "make test".

FossilOrigin-Name: 9fb7da6904e479f4671eeebf1a4b7e4e4e4f2b7b
This commit is contained in:
drh
2012-04-24 12:46:05 +00:00
parent b202d70a87
commit 8df9185ce4
8 changed files with 84 additions and 179 deletions

View File

@ -518,6 +518,16 @@ proc do_test {name cmd expected} {
flush stdout
}
proc catchcmd {db {cmd ""}} {
global CLI
set out [open cmds.txt w]
puts $out $cmd
close $out
set line "exec $CLI $db < cmds.txt"
set rc [catch { eval $line } msg]
list $rc $msg
}
proc filepath_normalize {p} {
# test cases should be written to assume "unix"-like file paths
if {$::tcl_platform(platform)!="unix"} {