Google Test is a C++ testing framework developed by Google.
Requirements for Google Test include a GNU-compatible Make or "gmake", POSIX-standard shell, POSIX(-2) Regular Expressions (regex.h), and a C++98 standards compliant compiler. Furthermore, Automake >= 1.9, Autoconf >= 2.59, Libtool / Libtoolize, and Python >= 2.4 are also required.
To build the source, there are two options available - building it inside the source code tree or in a separate directory. It is recommended to build in a separate directory, as this is likely to produce more consistent results and easier to clean up should anything go wrong. Once you have chosen where to build Google Test, create the directory if necessary, and enter it.
To install Google Test libraries, public headers, and utilities, allowing other programs and libraries to leverage its functionality, use the following command:
$ sudo make install
If you need to remove Google Test from your system after installation, run the following command on the exact same Google Test build you ran the install from:
$ sudo make uninstall
Please note that if you install Google Test on your system and are working from a VCS checkout, you must run the uninstall command before updating your checkout of the source. Finally, it is important to expand the section on locating, including, and linking against Google Test when the 'gtest-config' script is finished and Autoconf macro's are provided (or not provided).
Version 1.2.0: N/A