Import Tcl 8.6.11
This commit is contained in:
20
pkgs/sqlite3.34.0/tests/all.tcl
Normal file
20
pkgs/sqlite3.34.0/tests/all.tcl
Normal file
@@ -0,0 +1,20 @@
|
||||
# all.tcl --
|
||||
#
|
||||
# This file contains a top-level script to run all of the Tcl
|
||||
# tests. Execute it by invoking "source all.test" when running tcltest
|
||||
# in this directory.
|
||||
#
|
||||
# Copyright (c) 1998-1999 by Scriptics Corporation.
|
||||
# Copyright (c) 2000 by Ajuba Solutions
|
||||
#
|
||||
# See the file "license.terms" for information on usage and redistribution
|
||||
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
||||
|
||||
package require tcltest 2.2
|
||||
namespace import tcltest::*
|
||||
configure {*}$argv -testdir [file dir [info script]]
|
||||
if {[singleProcess]} {
|
||||
interp debug {} -frame 1
|
||||
}
|
||||
runAllTests
|
||||
proc exit args {}
|
||||
48
pkgs/sqlite3.34.0/tests/leapsecond.test
Normal file
48
pkgs/sqlite3.34.0/tests/leapsecond.test
Normal file
@@ -0,0 +1,48 @@
|
||||
# -*- sqlite3 -*-
|
||||
# Commands covered: julianday
|
||||
#
|
||||
# This file contains a testcase which checks whether sqlite3
|
||||
# can parse a ISO-8601 timestap containing a leap second. Last
|
||||
# leap second (to date) happened at "2012-06-30 23:59:60", which
|
||||
# is a perfectly valid time-stap, but stock sqlite cannot handle that.
|
||||
#
|
||||
# This file is put into public domain, under the same terms as the
|
||||
# rest of the SQLite code.
|
||||
|
||||
if {[lsearch [namespace children] ::tcltest] == -1} {
|
||||
package require tcltest
|
||||
namespace import -force ::tcltest::*
|
||||
}
|
||||
|
||||
::tcltest::loadTestedCommands
|
||||
|
||||
|
||||
package require sqlite3
|
||||
|
||||
set path [file join [file nativename [pwd]] test.db]
|
||||
file delete $path
|
||||
sqlite3 db $path
|
||||
|
||||
test pkgconfig-1.1 {query keys} {
|
||||
db eval {
|
||||
BEGIN EXCLUSIVE;
|
||||
CREATE TABLE t1(x);
|
||||
INSERT INTO t1 VALUES(julianday('2012-06-30 23:59:60'));
|
||||
SELECT x FROM t1 ORDER BY x;
|
||||
COMMIT;
|
||||
}
|
||||
} {2456109.5}
|
||||
|
||||
db close
|
||||
file delete $path
|
||||
|
||||
# cleanup
|
||||
::tcltest::cleanupTests
|
||||
return
|
||||
|
||||
# Local Variables:
|
||||
# mode: tcl
|
||||
# tcl-indent-level: 4
|
||||
# fill-column: 78
|
||||
# End:
|
||||
|
||||
Reference in New Issue
Block a user