Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/azure/c-testrunnerswitcher
C test runner switcher repo to be broken off from azure-c-shared-utility so it can be reused in several of our IoT repos
https://github.com/azure/c-testrunnerswitcher
c testrunnerswitcher
Last synced: 3 months ago
JSON representation
C test runner switcher repo to be broken off from azure-c-shared-utility so it can be reused in several of our IoT repos
- Host: GitHub
- URL: https://github.com/azure/c-testrunnerswitcher
- Owner: Azure
- Created: 2016-09-03T03:35:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-26T19:09:52.000Z (3 months ago)
- Last Synced: 2024-09-30T16:11:22.995Z (3 months ago)
- Topics: c, testrunnerswitcher
- Language: CMake
- Size: 1.03 MB
- Stars: 8
- Watchers: 52
- Forks: 12
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
- Security: SECURITY.md
Awesome Lists containing this project
README
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.
# testrunnerswitcher
testrunnerswitcher is a simple library to switch test runners between ctest (available at https://github.com/Azure/ctest.git) and CppUnitTest.
## Setup
- Clone c-testrunnerswitcher by:
```
git clone --recursive https://github.com/Azure/c-testrunnerswitcher.git
```
- Create a cmake folder under c-testrunnerswitcher
- Switch to the cmake folder and run
cmake ..
- Build the code for your platform (msbuild for Windows, make for Linux, etc.)### Installation and Use
Optionally, you may choose to install testrunnerswitcher on your machine:1. Switch to the *cmake* folder and run
```
cmake --build . --target install
```
orLinux:
```
sudo make install
```Windows:
```
msbuild /m INSTALL.vcxproj
```2. Use it in your project (if installed)
```
find_package(testrunnerswitcher REQUIRED CONFIG)
target_link_library(yourlib testrunnerswitcher)
```