Google test demo.
Start with installing Google test on Linux:
sudo apt-get install libgtest-dev
Then optionally install cmake
sudo apt-get install cmake
Then compile Google test
cd /usr/src/gtest sudo cmake CMakeLists.txt sudo make sudo cp *.a /usr/lib
Clone this repository. Enter the repository folder.
- Create build folder: mkdir build
- cd build
- cmake ..
- make
- ./my-test-app
- Stay in build folder
- Remove everything from build folder
- cmake -DGTEST=ON ..
- make
- ./tests/run-gtest