From: MikhailFedotov <mi...@ki...> - 2003-06-05 07:08:56
|
Hi! > This is what I was talking about when I mentioned "makefile hacks". > Unfortunately, I know enough about the build environment of Windows > (despite several years busily repressing memories) that I am > wary of doing and scripting hacks. The only scripting language I am > sure exists is Ocaml. > > Hmm. That might be enough. All I need to do is: > > - move the original code foo.ml to a backup file. > > - concatenate the original code and the unit test code into > the new foo.ml I thought that the only problem is that internal functions are not present in the external interface, and can be solved by extending external inteface to include everything for the test version of the library. This way you'll end up with "testing the library", not just the code, as well as library compiling process, etc. More clean approach, without unwanted surprises. Mikhail |