hpcc-systems/HPCC-Platform — pull request #3800 by rengolin (2012-12-17 12:54:24+00:00)
Title: HPCC-8410 Move daregress to CPPUNIT

Moving daregress to CPPUNIT and adding more tests that were not commonly used.
Also making the CDistributedFile::detachLogical() private, to avoid misuse and
moving some common CPPUNIT code to a shared header.

Main changes:
* Moving all daregress tests to CPPUNIT
* Moving common code in unittest to a common header
* Removing daregress directory and files
* Hiding detachLogical() so that it's only file public with CPPUNIT enabled

To the last point it's worth mentioning that being public in CDistributedFile will not expose it to users, since it's still impossible to do file->detachLogical() (as it's not in the interface any more), but it will be possible to call removeLogical(filename, user);

I could possibly add an ifdef for DEBUG mode as well, to stop people from using it in production with CPPUNIT enabled. Or, if anyone has a better solution without refactoring the whole structure of dadfs, I'm all ears.

Signed-off-by: Renato Golin