On Thu, Jan 7, 2016 at 8:54 PM, Ross Berteig <r...@cheshireeng.com> wrote:
> > On a related note, I am dropping a signed Contributer Agreement in the > mail to Richard today. Once I work out (and document) how to run the test > suite "properly", my intent is to extend it to cover JSON support. I'm also > interested in fuzz testing, but want to cover the obvious low hanging fruit > first. In the tree there's a bit of JS code intended to be run with the 'rhino' interpreter which might be interesting for you, and might be able to provide a basis for running a test suite. Start your fossil server: [stephan@host:~/cvs/fossil/fossil]$ ./fossil server& [1] 32249 [stephan@host:~/cvs/fossil/fossil]$ Listening for HTTP requests on TCP port 8080 [stephan@host:~/cvs/fossil/fossil]$ cd ajax/i-test/ [stephan@host:~/cvs/fossil/fossil/ajax/i-test]$ ls foo.js rhino-shell.js rhino-test.js rhino-test.js~ tester.js [stephan@host:~/cvs/fossil/fossil/ajax/i-test]$ rhino rhino-test.js Running test #1: Get server version info. SENDING REQUEST: AJAJ options={"method":"GET","url":" http://localhost:8080/json/HAI ","asynchronous":false,"timeout":0,"fossilBinary":"fossil","propagateExceptions":false} GOT RESPONSE: { ...<huge snip>... } Done! If you don't see an exception message in the last few lines, you win! i haven't touched that in several years, but if i can be of any assistance with it, or with the C code, don't hesitate to ask. Also, if you're interested in getting edit rights on the JSON docs (in GDocs), send me your gmail address off-list and i'll get you set up. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________ fossil-dev mailing list fossil-dev@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/fossil-dev