[qmtest] QMTest Advice - Dependencies

Stefan Seefeld seefeld at sympatico.ca
Tue Dec 22 04:16:06 UTC 2009


On 12/21/2009 03:11 PM, Adrien Guillon wrote:

[...]

> These functions are only enabled with the appropriate preprocessor
> macro, and are cleanly separable from the whole project.  So for that
> reason, I'd like to test my C++ test case debugging_test_1.cpp with
> the #define EXTRA_DEBUGGING and since it's cleanly separable from the
> rest of the project, I only want to link it with extra_debugging.cpp
> (which was compiled with the same flags).  This comes down to the
> question of doing a compile and run test which has different
> dependencies than everything else.
>    

I'm not quite sure whether I understand the question, as you seem to 
have all the answers that you need:

You can specify the compilation command using the 
CompilerTable.cplusplus_options and CompilerTable.cplusplus_ldflags 
variables, and add whatever macro definition and extra libraries you 
need there.

You may do that even on a per-directory basis, i.e. each subdirectory in 
your test suite may have its own set of variables, overriding the global 
CompilerTable variables.

     Stefan

-- 

       ...ich hab' noch einen Koffer in Berlin...




More information about the qmtest mailing list