Debian Codegraph @

src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/testtools/testrunner/readme.md

raw
1 This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
2
3 # testrunnerswitcher
4
5 testrunnerswitcher is a simple library to switch test runners between azure-ctest (available at https://github.com/Azure/azure-ctest.git) and CppUnitTest.
6
7 ## Setup
8
9 - Clone azure-c-testrunnerswitcher by:
10 ```
11 git clone --recursive https://github.com/Azure/azure-c-testrunnerswitcher.git
12 ```
13 - Create a cmake folder under azure-c-testrunnerswitcher
14 - Switch to the cmake folder and run
15 cmake ..
16 - Build the code for your platform (msbuild for Windows, make for Linux, etc.)
17
18 ### Installation and Use
19 Optionally, you may choose to install testrunnerswitcher on your machine:
20
21 1. Switch to the *cmake* folder and run
22 ```
23 cmake --build . --target install
24 ```
25 or
26
27 Linux:
28 ```
29 sudo make install
30 ```
31
32 Windows:
33 ```
34 msbuild /m INSTALL.vcxproj
35 ```
36
37 2. Use it in your project (if installed)
38 ```
39 find_package(testrunnerswitcher REQUIRED CONFIG)
40 target_link_library(yourlib testrunnerswitcher)
41 ```