27.3.9.2. GoogleTest

On Ubuntu 20.04, the package:

sudo apt install googletest

does not contain prebuilts, and it is intentional, it is incomprehensible:

so you might as well just git clone and build the damned thing yourself:

git submodule update --init submodules/googletest
cd submodules/googletest
mkdir build
cd build
cmake ..
make -j`nproc`
cd ../../userland/libs/googletest
./build
  • userland/libs/googletest/main.cpp[]