All Projects → snikulov → Google Test Examples

snikulov / Google Test Examples

Short example how to use Google Test with CMake project

Programming Languages

cpp
1120 projects

Projects that are alternatives of or similar to Google Test Examples

AriaCloud
A Docker container for remote penetration testing.
Stars: ✭ 105 (-59.3%)
Mutual labels:  docker-container
cmake-maven-project
Project to enable using CMake from a Maven build.
Stars: ✭ 57 (-77.91%)
Mutual labels:  cmake
cmake-modules
CMake module collection
Stars: ✭ 30 (-88.37%)
Mutual labels:  cmake
OpenJij
OpenJij : Framework for the Ising model and QUBO.
Stars: ✭ 57 (-77.91%)
Mutual labels:  cmake
cmake-cheatsheet
CMake Cheat Sheet
Stars: ✭ 37 (-85.66%)
Mutual labels:  cmake
c-template
Boilerplate to set up a c project, include CuTest unit testing, cmake build setup
Stars: ✭ 69 (-73.26%)
Mutual labels:  cmake
docker-eks
Docker container for creating AWS EKS Cluster
Stars: ✭ 16 (-93.8%)
Mutual labels:  docker-container
catch cmake coverage
Integration of Catch, CMake and CMake CodeCoverage module and basic examples in C++.
Stars: ✭ 30 (-88.37%)
Mutual labels:  cmake
computer-vision-dojo
This is a repository to learn and get more computer vision skills, make robotics projects integrating the computer vision as a perception tool and create a lot of awesome advanced controllers for the robots of the future.
Stars: ✭ 15 (-94.19%)
Mutual labels:  cmake
cuda-cmake-gtest-gbench-starter
A cross-platform CUDA/C++14 starter project with google test and google benchmark support.
Stars: ✭ 24 (-90.7%)
Mutual labels:  cmake
esm
Lightweight communicating state machine framework for embedded systems
Stars: ✭ 21 (-91.86%)
Mutual labels:  cmake
python3-docker-devenv
Docker Start Guide with Python Development Environment
Stars: ✭ 13 (-94.96%)
Mutual labels:  docker-container
CmakeSettings
Example CmakeSettings.json for different configurations for using CMake inside of Visual Studio
Stars: ✭ 27 (-89.53%)
Mutual labels:  cmake
cpp-utilities
Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
Stars: ✭ 35 (-86.43%)
Mutual labels:  cmake
docker-acarshub
Docker container to utilize RTLSDR dongle(s) to view/stream ACARS/VDLM2 aircraft data transmissions
Stars: ✭ 12 (-95.35%)
Mutual labels:  docker-container
murmur
Murmur server (Mumble) Docker container - https://mumble.info
Stars: ✭ 31 (-87.98%)
Mutual labels:  docker-container
FindICU.cmake
[CMake] [BSD-2] CMake module to find ICU
Stars: ✭ 28 (-89.15%)
Mutual labels:  cmake
Vanilla Rtb
Real Time Bidding (RTB) - Demand Side Platform framework
Stars: ✭ 257 (-0.39%)
Mutual labels:  cmake
BunnyLOD
Cross platform GLFW based port of Stan Melax's BunnyLOD Easy Mesh Simplification
Stars: ✭ 60 (-76.74%)
Mutual labels:  cmake
CLUSEK-RT
Vulkan based C++ ray-tracing game engine.
Stars: ✭ 24 (-90.7%)
Mutual labels:  cmake

Short sample how-to use Google C++ Test Framework in cmakeable projects

  1. Google test will be downloaded from GitHub and built with your project

How to use:

  1. git clone https://github.com/snikulov/google-test-examples.git
  2. cd google-test-examples
  3. mkdir build
  4. cd build
  5. cmake ..
  6. cmake --build .
  7. ctest -VV

CI status:

Build Status | Build status

Known issues:

  • TBD

How to use (alternativ with docker containers)

Get repo

$ git clone https://github.com/snikulov/google-test-examples.git
$ cd google-test-examples

CMake

We can use CMake to configure/build/running tests:

Host side

$ cmake -P build.cmake

Docker Containers side

cmake -P build_with_docker.cmake

Makefile

Targets

$ make [tab]
make all
all                        build/Makefile             configure                  google-test-examples_test
build                      clean                      DOCKER_COMMAND             run
build_directory            clean_docker_image         docker_image
build_docker_image         CMAKE_COMMAND              DOCKER_IMAGE

Configure/Build/Running tests (with docker containers)

$ make all
docker build -t atty/google-test-examples:latest --file docker/Dockerfile .
Sending build context to Docker daemon  221.2kB
Step 1/1 : FROM rikorose/gcc-cmake:latest
...
1/1 Test #1: test1 ............................   Passed    0.00 sec
100% tests passed, 0 tests failed out of 1

Total Test time (real) =   0.00 sec

Screencast recording

asciicast

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].