I’ve moved the test suite from citeproc-js to a new home under
xbiblio/csl/data/std.
There are a few changes. The test files are generated by a newly
added Python script, grind.py, which is in the top level of the test
suite (./std/grind.py). The new script goes a little further than the
shell script had done, parsing out the elements in names expressed in
the shorthand syntax used in the human-readable files into the form
recognized by the processor API. The script no longer generates the
./csl directory that formerly contained the extracted CSL for each
test fixture (can restore this if it is needed). The README has been
updated to provide some information on the names API.
Enjoy!
Frank
Nice, but how do you use it?
A more detailed usage statement and -h/–help flag would be helpful.
Or if I have this right, then I’m finding a bug:
$ ./grind.py
Traceback (most recent call last):
File “./grind.py”, line 149, in
tests.process()
File “./grind.py”, line 51, in process
self.clear()
File “./grind.py”, line 48, in clear
os.unlink( self.path(“machines”, file) )
OSError: [Errno 21] Is a directory:
’/home/darcusb/Code/csl/data/std/machines/.svn’
Bruce
I’ve moved the test suite from citeproc-js to a new home under
xbiblio/csl/data/std.
There are a few changes. The test files are generated by a newly
added Python script, grind.py, which is in the top level of the test
suite (./std/grind.py).
Nice, but how do you use it?
A more detailed usage statement and -h/–help flag would be helpful.
Good point, I’ll stir that in.
Or if I have this right, then I’m finding a bug:
$ ./grind.py
Traceback (most recent call last):
File “./grind.py”, line 149, in
tests.process()
File “./grind.py”, line 51, in process
self.clear()
File “./grind.py”, line 48, in clear
os.unlink( self.path(“machines”, file) )
OSError: [Errno 21] Is a directory:
‘/home/darcusb/Code/csl/data/std/machines/.svn’
Yep, that’s a bug.
It was trying to handle the .svn directory as a test file. Oops.
Should be working okay now.
Frank