
Introduction
In this tutorial we learn how to install cxxtest on Kali Linux.
What is cxxtest
cxxtest is:
CxxTest is a unit testing framework for C++ that is similar in spirit to
JUnit, CppUnit, and xUnit. It provides assertions for checking conditions
and classes for defining unit-test cases.
CxxTest is easy to use because it does not require precompiling a CxxTest
testing library, it employs no advanced features of C++ (e.g. RTTI) and it
supports a very flexible form of test discovery, which simplifies the creation
of test drivers. It includes a script that parses C++ files that define unit
tests and then generates a C++ test runner. When compiled, the test runner
manages the execution of all unit tests in a flexible manner.
There are three methods to install cxxtest on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install cxxtest Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install cxxtest using apt-get by running the following command:
sudo apt-get -y install cxxtest
Install cxxtest Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install cxxtest using apt by running the following command:
sudo apt -y install cxxtest
Install cxxtest Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install cxxtest using aptitude by running the following command:
sudo aptitude -y install cxxtest
How To Uninstall cxxtest on Kali Linux
To uninstall only the cxxtest package we can use the following command:
sudo apt-get remove cxxtest
Uninstall cxxtest And Its Dependencies
To uninstall cxxtest and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove cxxtest
Remove cxxtest Configurations and Data
To remove cxxtest configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge cxxtest
Remove cxxtest configuration, data, and all of its dependencies
We can use the following command to remove cxxtest configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge cxxtest
Dependencies
cxxtest have the following dependencies:
References
Summary
In this tutorial we learn how to install cxxtest package on Kali Linux using different package management tools: apt, apt-get and aptitude.
