On Tue, 2008-02-12 at 11:27 +1300, Amos Jeffries wrote: > >> > >> * Add automatic testing for header dependency > >> - script to perform universal include unit-test for .h files > >> - link to automatic unit-testing in each directory > >> - fix the compile errors! > >>
> I am thinking along the lines of unit-testing the compilation of each *.h > file. > > At present a fvery few of the important .h files have a hard-coded .cc in > the tests directory and that gets built when unit-testing. All it does is > "#include <something.h>" > > What I'm planning is a test-suite script that when passed a directory, > scans it for all .h files. Writes the .cc and attempts a build. Any > compile errors are dependancy errors needing a fix. > > That would speed-track the dependancy testing in future with no need for > manually adding these tests, or a large set of files for them. It is > particularly useful for the struct and proto re-arranging. Sounds good. Thank you, Alex.