This repository contains examples of how to build GoogleTest examples using CMake and how to run GoogleTest examples using CTest.
To build the custom Docker image, please run the following command.
$ GOOGLETEST_VERSION=1.15.2
$ docker build -f docker/googletest.Dockerfile --build-arg GOOGLETEST_VERSION=${GOOGLETEST_VERSION} --tag googletest:${GOOGLETEST_VERSION} .To run the custom Docker container, please run the following command.
$ GOOGLETEST_VERSION=1.15.2
$ docker run -it --rm --gpus device=0 -v $(pwd):/mnt googletest:${GOOGLETEST_VERSION}To build the GoogleTest examples, please run the following command.
$ cmake -B build
$ cmake --build build --config Release --parallelTo run the GoogleTest examples, please run the following command.
$ ctest --test-dir build/ --verbose