Re: [qmtest] QMTest Advice - Dependencies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qmtest] QMTest Advice - Dependencies



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...