Check-in [bbc27a0fd1]
Overview
Comment:Added Metakit test
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: bbc27a0fd1f694375e6458d6340b401669090949
User & Date: rkeene on 2010-10-03 21:01:14
Other Links: manifest | tags
Context
2010-10-03
21:02
Updated Mk4tcl to default to being built as a shared object if target is KitDLL check-in: eea8763689 user: rkeene tags: trunk
21:01
Added Metakit test check-in: bbc27a0fd1 user: rkeene tags: trunk
19:09
Updated KitDLL to load the vfslib, to make vfs::zip work check-in: 64818401f4 user: rkeene tags: trunk
Changes

Added build/test/tests/11-metakit.tcl version [ef16a161c4].





























































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
#! /usr/bin/env tclsh

set buildflags [split [lindex $argv 1] -]

# This test works implicitly on Tclkits without Metakit4
foreach flag [list nomk4 min] {
	if {[lsearch -exact $buildflags $flag] != -1} {
		exit 0
	}
}

catch {
	file delete -force datafile.mk
}

set testval "<Not Found>"
set errorInfo_save "<No Error>"
if {[catch {
	package require Mk4tcl

	mk::file open db datafile.mk
	mk::view layout db.test {first second}
	mk::row append db.test first Joe second Bob
	mk::file commit db
	mk::file close db

	mk::file open db datafile.mk
	set testval [mk::get db.test!0 first]
	mk::file close db
}]} {
	set errorInfo_save $errorInfo
}

catch {
	file delete -force datafile.mk
}

if {$testval == "Joe"} {
	exit 0
}

puts "Returned: $testval"
puts "Expected: Joe"
puts "Error   : $errorInfo_save"

exit 1