I figure the first step to building test cases for JSON support is to prove I can build a fossil that passes its existing tests. Apparently that isn't the case.

Step one of the official release checklist is to run the test suite from a folder outside the tree, and email to this list in June 2014 encourages testing from an out-of-tree build. So I did this:

$ fossil clone http://fossil-scm.org/ f.fossil
$ mkdir work; cd work
$ fossil open ../f.fossil
$ mkdir ../build; cd ../build
$ ../work/configure --with-openssl=none
$ make test

I turned off openssl for this exercise because it seemed easier than getting the right library into the Ubuntu running in this VM, but I'll happily turn it back on again if that really is the issue. That should have got me a build of tip of trunk as of this afternoon, and then tested it with the matching test suite.

It stopped part way through amend.test.

I updated to the last tagged release,

$ make clean
$ pushd ../work; fossil update release; pushd
$ ../work/configure --with-openssl=none
$ make test

Same result, failure opening fossil_prompt_answer from amend.test line 381, which looks like nearly the last test case in that file.

So I figured I'd go back to an older version, perhaps from that point in 2014 when drh suggested that it worked, and bisect for the issue. I did:

$ make clean
$ pushd ../work; fossil update 2014-06-27; pushd
$ ../work/configure --with-openssl=none
$ make test

The output ran for a (long) while, then got to:
***** End of th1: 13 errors so far *****
***** utf ******
couldn't open "../work/src/../test/utf-check-100-0-0-0.jnk": no such file or directory while executing "open [file join $path utf-check-$fn-$i-$j-$k.nk] {WRONLY CREAT TRUNC}"
    invoked from within "createTestFiles $tempPath 100"

and more stack backtrace.

At this point, it seems wise to ask for advice about the general health
of tester.tcl and the test suite before I flail at it much more.

The VM is running Ubuntu Trusty, and is generally otherwise up to date. The host box is running Windows 7 Pro, but I know there is no joy attempting to make the test suite run in Windows.

Any thoughts?
--
Ross Berteig                               r...@cheshireeng.com
Cheshire Engineering Corp.           http://www.CheshireEng.com/

_______________________________________________
fossil-dev mailing list
fossil-dev@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/fossil-dev

Reply via email to