1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-06-13 15:41:37 +03:00

Add further pager tests.

FossilOrigin-Name: 4104b175a8c3560a7680f3d2b54416821bb2e19d
This commit is contained in:
dan
2010-06-21 07:45:47 +00:00
parent 248af428ea
commit 153eda0aa4
7 changed files with 240 additions and 115 deletions

View File

@ -49,6 +49,8 @@
# crashsql ARGS...
# integrity_check TESTNAME ?DB?
# do_test TESTNAME SCRIPT EXPECTED
# do_execsql_test TESTNAME SQL EXPECTED
# do_catchsql_test TESTNAME SQL EXPECTED
#
# Commands providing a lower level interface to the global test counters:
#
@ -316,6 +318,14 @@ proc do_test {name cmd expected} {
}
flush stdout
}
proc do_execsql_test {testname sql result} {
uplevel do_test $testname [list "execsql {$sql}"] [list $result]
}
proc do_catchsql_test {testname sql result} {
uplevel do_test $testname [list "catchsql {$sql}"] [list $result]
}
# Run an SQL script.
# Return the number of microseconds per statement.