This is a simple project to demonstrate how to use Google Test (gtest) for C++ unit testing.
- C++ compiler
- CMake
- Git
- Google Test (already included in this repository)
- Python3 (for running the scripts and generating random data)
git clone https://github.com/cheshmi/gtest-tutorial.git
cd gtest-tutorial
cmake -S . -B build
cmake --build build
There are two test suites in this project: convolution_test
and sampling_test
.
Tests for convolution:
./build/test/convolution_test
Tests for sampling:
./build/test/sampling_test
Tests for fft:
./build/test/fft_test