I'm developing a driver which contains some rather complex code. Using MS VS Community 2013.
So in order to easier develop / test the code, I've written the tests such that they run in user mode (standard console app, using CATCH as test framework).
I'm running into two issues:
-
MSVC constantly bugs me about deployment not being set up when I try to debug. Message says: ´The driver must be deployed to the target computer for debugging to work. Deployment is not currently configured´.
-
I'm also having issues including same files in both projects (driver and test). I don't really want to create another project for the library alone, I want to keep it under driver directory tree, but then any including / compilation is extremely difficult.
#include "..\util\memutils.h" //vs #include "..\driver\util\memutils.h"
Of course, the .c files don't automatically get compiled. I'm solving this by #includeing them into the test main .c for now, but I'm confident a more elegant solution exists for that.
Aucun commentaire:
Enregistrer un commentaire