Vault7: CIA Hacking Tools Revealed
Navigation: » Latest version
Unit test Project Setup
This page serves to describe the initial test project setup within the KRAKEN client project.
The following was tested with gtest-1.7.0 (\\fs-01\share\Google\Google Test\gtest-1.7.0)
Open the KRAKEN client project in Visual Studio
First check whether your client project is using a dynamic or static version of the runtime (Project Properties->C++->Code Generation->Runtime Library)
- Use gtest-1.7.0\msvc\gtest-md.sln if you are using a DLLDynamic Link Library version
- Use gtest-1.7.0\msvc\gtest.sln if you are using a static version
Select Visual Studio 2013->File->Add->Existing Project... and add the appropriate gtest project based on the above
- if you are using the gtest-md solution, Right click the gtest-md project in the solutions explorer, select Properties..->Librarian->Output File and change the entry to $(OutDir)gtest-md.lib
Create a new project (Win32 Console Application) with _tests appended to the name
- Right click the new unittest project in the solutions explorer, select Add->References...->Add New Reference... and select gtest-md and the KRAKEN client
- Right click the new unittest project in the solutions explorer, select Build Dependencies->Project Dependencies and select gtest-md and the KRAKEN client
- Right click the new unittest project in the solutions explorer, select Properties..->C/C++->Additional Include Directories and add the path to the KRAKEN client headers (TBD) and the gtestheaders (gtest-1.7.0\include)
Resources
- GTest Primer
- GTest FAQ
- GTest Advanced Guide