Guten Tag Robert Middleton,
am Donnerstag, 30. Dezember 2021 um 00:24 schrieben Sie:

> After taking a look at this, maybe the best option is to add the
> throughput as a unit test so that we can set the path the same as the
> other unit tests?

If it fixes the path issue and enabling/disabling through the already
existing option works, sounds good to me.

> [...]You can
> also run individual tests through visual studio, so that might solve
> the problem.

This is possible with simply opening the source file of the throughput
test and choose to run it as well. Though, I wonder if CMAKE doesn't
properly take things like the "$<TARGET_FILE_DIR:log4cxx>" into
account then, because that part is simply not built when directly
running the throughput test as app only.

That might be different in the context of running all or individual
unit tests.

> On Windows, I manually copied troughputtests.exe to the installation
> directory (so log4cxx.dll is in the same directory).

I would like to avoid that and instead either copy the DLL into the
working dir of the throughput test or preferrably adopt the path to
the DLL based on that working dir. Something like the following:

> [...]\master\src\out\build\x64-Debug\src\main\cpp\log4cxx.dll
> set(LOG4CXX_DLL_DIR "$<SHELL_PATH:$<TARGET_FILE_DIR:log4cxx>>;")

vs.

> [...]\master\src\out\build\x64-Debug\src\test\cpp\throughput\log4cxx.dll
> set(LOG4CXX_DLL_DIR 
> "$<SHELL_PATH:$<TARGET_FILE_DIR:throughput???>\..\..\..\main\cpp>;")

Mit freundlichen Grüßen

Thorsten Schöning

-- 
AM-SoFT IT-Service - Bitstore Hameln GmbH
Mitglied der Bitstore Gruppe - Ihr Full-Service-Dienstleister für IT und TK

E-Mail: thorsten.schoen...@am-soft.de
Web:    http://www.AM-SoFT.de/

Tel:   05151-  9468- 0
Tel:   05151-  9468-55
Fax:   05151-  9468-88
Mobil:  0178-8 9468-04

AM-SoFT IT-Service - Bitstore Hameln GmbH, Brandenburger Str. 7c, 31789 Hameln
AG Hannover HRB 221853 - Geschäftsführer: Janine Galonska




Reply via email to