On Sun 06 Jan 2013 03:49:46 PM CET, rvj wrote: > Yes thanks ..... > > Thats where I started before getting sidetracked looking for > test functions in the Mercurial source ...something which I am just > finding my around https://github.com/protz/gpgfox/blob/0d2fb7c0e207c8a76def0d87b0888b759b2f6ffe/lib/gpg.js#L100 has an example of how to use the subprocess.call function, assuming you've properly done the Components.utils.import(...) call. But all of those requirements are properly detailed at http://hg.mozilla.org/ipccode/file/b3725e9efa10/modules/subprocess.jsm#l39 and the library is really easy to use. Maybe what you're missing is some background on what a JSM is. If that is the case, I suggest https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules as a starting point. > > PS do you understand the reference to compilation of tests? The tests for the library itself need to simulate calling a binary process. Therefore, there is a little bit of compilation involved, but that is not relevant to what you need to do as a client of the library.
Hope that helps, jonathan _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform