From: skaller <sk...@us...> - 2004-12-22 05:52:03
|
I have attached first cut of a test harness generator. (On my box it all runs, but one of the test cases now segfaults). to run it use this: ocamlc -o mktest unix.cma str.cma mktest.ml && ./mktest && ./extlib_test from a COPY (PLEASE!!) of extlib-test directory. This program makes a check for ALL extlib modules. It searches for files in the current (extlib-test) directory with this exact format: test_<author>_<module>_<test_name>.tst Note the test name is mandatory, and the extension must be .tst. It generates files: extlib_test.ml mtest_<module>.ml itest_<author>_<module>_<test_name>.ml and compiles and links everything together, including the utility util.ml. Bytecode only at the moment. To make this work, all individual tests mut be renamed to the correct format. Note: at present the only thing done to a *.tst file is to copy it to a *.ml file without touching anything inside. This code is *not supposed* to clobber any existing files. -- John Skaller, mailto:sk...@us... voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net |