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