Project

General

Profile

Error Message during the test of Metakit installation on Raspberry Pi

Added by Markos 2 months ago

Hi,

I installed the Metakit database on a Raspberry Pi running the Raspbian, with the commands:

pi@raspberrypi:~/Metakit/metakit-master/tbuild $ CC=g++ sh ../tcl/configure --with-tcl=/usr/lib/tcl8.5

pi@raspberrypi:~/Metakit/metakit-master/tbuild $ make

But when I run the test (make test) command appears at the end an error message:

...
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expected 3 got 5
while executing
"equal [mk::view size db.a] 5"
("uplevel" body line 24)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== 1 FAILED

fixed.test
limit.test
object.test

Tests ended at Fri Dec 16 17:53:45 UTC 2016
all.tcl: Total 46 Passed 45 Skipped 0 Failed 1
Sourced 5 Test Files.
Files with failing tests: commit.test

I don't know if this is a critical error to the use of Metakit database.

Any tip?

Thanks,
Markos

PS: All output

TCL_LIBRARY=echo /usr/include/tcl8.5/tcl-private/library LD_LIBRARY_PATH=".:/usr/lib/tcl8.5:" PATH=".:/usr/lib/tcl8.5:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games" TCLLIBPATH="." /usr/bin/tclsh8.5 echo ../tcl/tests/all.tcl
Tests running in interp: /usr/bin/tclsh8.5
Tests located in: /home/pi/Metakit/metakit-master/tcl/tests
Tests running in: /home/pi/Metakit/metakit-master/tbuild
Temporary files stored in /home/pi/Metakit/metakit-master/tbuild
Test files sourced into current interpreter
Running tests that match: *
Skipping test files that match: l.*.test
Only running test files that match: *.test
Tests began at Fri Dec 16 17:53:38 UTC 2016
basic.test
commit.test

==== 1 simple commit aside FAILED
==== Contents of test case:

file delete $f $g

mk::file open db $f
mk::view layout db.a i:I
mk::row append db.a i 111
mk::row append db.a i 222
mk::row append db.a i 333
mk::file close db

mk::file open db $f -readonly
mk::file open dba $g

equal [mk::view size db.a] 3
mk::file aside db dba
equal [mk::view size db.a] 3

mk::row append db.a i 444
mk::row append db.a i 555

equal [mk::view size db.a] 5
mk::file commit db
mk::file commit dba
equal [mk::view size db.a] 5

mk::row append db.a i 666
equal [mk::view size db.a] 6

mk::file rollback db
equal [mk::view size db.a] 5
mk::file rollback db -full
equal [mk::view size db.a] 3

mk::file close db
mk::file close dba

mk::file open db $f -readonly
equal [mk::view size db.a] 3

equal [mk::get db.a!0 i] 111
equal [mk::get db.a!1 i] 222
equal [mk::get db.a!2 i] 333

mk::file open dba $g -readonly
mk::file aside db dba
equal [mk::view size db.a] 5

equal [mk::get db.a!0 i] 111
equal [mk::get db.a!1 i] 222
equal [mk::get db.a!2 i] 333
equal [mk::get db.a!3 i] 444
equal [mk::get db.a!4 i] 555

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: expected 3 got 5
while executing
"equal [mk::view size db.a] 5"
("uplevel" body line 24)
invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== 1 FAILED

fixed.test
limit.test
object.test

Tests ended at Fri Dec 16 17:53:45 UTC 2016
all.tcl: Total 46 Passed 45 Skipped 0 Failed 1
Sourced 5 Test Files.
Files with failing tests: commit.test


Replies (2)

RE: Error Message during the test of Metakit installation on Raspberry Pi - Added by jcw about 2 months ago

I'm afraid I'll have to pass on this. It's been over ten years since I've used Metakit and Tcl. I can't see anything obvious stand out in the code you submitted. My suggestion would be to compare it against results on other hardware - i.e. 32- and 64-bit x86 systems. Maybe it's possible to narrow it down that way.

RE: Error Message during the test of Metakit installation on Raspberry Pi - Added by Markos about 2 months ago

Hi Jean,

I have been using Metakit with Tcl because the ease of implementing a database for lab automation.

What other database alternative do you suggest to use with Tcl on the Raspberry Pi platform?

Thanks for your attention,
Markos

    (1-2/2)