# Linux Kernel Module Cheat

##### 27.3.9.2. GoogleTest

https://github.com/google/googletest

On Ubuntu 20.04, the package:

    sudo apt install googletest

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

- https://askubuntu.com/questions/97626/how-to-install-googletest/1295185#1295185

- https://askubuntu.com/questions/145887/why-no-library-files-installed-for-google-test

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:

- userland/libs/googletest/main.cpp[]