[Clam-devel] patch showing outportpublisher problem

Pau Arumi parumi at iua.upf.edu
Mon Jun 25 07:10:40 PDT 2007


En/na Greg Kellum ha escrit:
> Hi Pau,
> 
> I haven't been using the files in the NetworkEditor subfolder, because 
> it shortened the time needed for each build-run-test development cycle 
> considerably to simply use an example file testing the functionality 
> rather than the NetworkEditor.  But now that you've shown me how to add 
> an example file to the NetworkEditor folder, I'll work over there 
> instead...  Actually, I would ideally just be running a test case rather 
> than an example file.  Is there any way with scons and CPlusUnit to run 
> an individual test case rather than the entire test suite?  That would 
> help keep the build-run-test time low...

To convert your example into an automatic cppunit test you'll need
to create a new SConstruct in the NE tree.
It's quite straightforward, just adapt the CLAM/test/SConstruct
(taking into account that the file selection code is in
CLAM/test/UnitTests/SConscript). I'd put the new SConstruct in
NE/test.
But don't loose much time on it, if you get blocked notice me and
I'll help.

How to run an individual test case? It's simple, just hack the test
SConscript file. For example, after the line:
   sources = scanFiles('*.cxx', folders)
redefine sources like this (add this line):
   sources = os.path.join('DescriptorsTests','ProofOfConceptTest.cxx')

BTW, I'll try to add the publish-publisher feature soon.
And don't forget to synchronize your sandbox and SVN by sending me
a patch!

Cheers,
Pau




More information about the clam-devel mailing list