How To Install cxxtest on Fedora 34

cxxtest is A JUnit-like testing framework for C++

Introduction

In this tutorial we learn how to install cxxtest on Fedora 34.

What is cxxtest

CxxTest is a unit testing framework for C++ that is similar in spirit to JUnit, CppUnit, and xUnit. 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.

We can use yum or dnf to install cxxtest on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install cxxtest.

Install cxxtest on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install cxxtest using dnf by running the following command:

sudo dnf -y install cxxtest

Install cxxtest on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install cxxtest using yum by running the following command:

sudo yum -y install cxxtest

How To Uninstall cxxtest on Fedora 34

To uninstall only the cxxtest package we can use the following command:

sudo dnf remove cxxtest

cxxtest Package Contents on Fedora 34

/usr/bin/cxxtestgen
/usr/include/cxxtest
/usr/include/cxxtest/Descriptions.cpp
/usr/include/cxxtest/Descriptions.h
/usr/include/cxxtest/DummyDescriptions.cpp
/usr/include/cxxtest/DummyDescriptions.h
/usr/include/cxxtest/ErrorFormatter.h
/usr/include/cxxtest/ErrorPrinter.h
/usr/include/cxxtest/Flags.h
/usr/include/cxxtest/GlobalFixture.cpp
/usr/include/cxxtest/GlobalFixture.h
/usr/include/cxxtest/Gui.h
/usr/include/cxxtest/LinkedList.cpp
/usr/include/cxxtest/LinkedList.h
/usr/include/cxxtest/MSVCErrorPrinter.h
/usr/include/cxxtest/Mock.h
/usr/include/cxxtest/ParenPrinter.h
/usr/include/cxxtest/QtGui.h
/usr/include/cxxtest/RealDescriptions.cpp
/usr/include/cxxtest/RealDescriptions.h
/usr/include/cxxtest/Root.cpp
/usr/include/cxxtest/SelfTest.h
/usr/include/cxxtest/StdHeaders.h
/usr/include/cxxtest/StdTestSuite.h
/usr/include/cxxtest/StdValueTraits.h
/usr/include/cxxtest/StdioFilePrinter.h
/usr/include/cxxtest/StdioPrinter.h
/usr/include/cxxtest/TeeListener.h
/usr/include/cxxtest/TestListener.h
/usr/include/cxxtest/TestMain.h
/usr/include/cxxtest/TestRunner.h
/usr/include/cxxtest/TestSuite.cpp
/usr/include/cxxtest/TestSuite.h
/usr/include/cxxtest/TestTracker.cpp
/usr/include/cxxtest/TestTracker.h
/usr/include/cxxtest/ValueTraits.cpp
/usr/include/cxxtest/ValueTraits.h
/usr/include/cxxtest/Win32Gui.h
/usr/include/cxxtest/X11Gui.h
/usr/include/cxxtest/XUnitPrinter.h
/usr/include/cxxtest/XmlFormatter.h
/usr/include/cxxtest/XmlPrinter.h
/usr/include/cxxtest/YesNoRunner.h
/usr/include/cxxtest/unix.h
/usr/lib/python3.9/site-packages/cxxtest
/usr/lib/python3.9/site-packages/cxxtest-4.4-py3.9.egg-info
/usr/lib/python3.9/site-packages/cxxtest-4.4-py3.9.egg-info/PKG-INFO
/usr/lib/python3.9/site-packages/cxxtest-4.4-py3.9.egg-info/SOURCES.txt
/usr/lib/python3.9/site-packages/cxxtest-4.4-py3.9.egg-info/dependency_links.txt
/usr/lib/python3.9/site-packages/cxxtest-4.4-py3.9.egg-info/top_level.txt
/usr/lib/python3.9/site-packages/cxxtest/__init__.py
/usr/lib/python3.9/site-packages/cxxtest/__pycache__
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/__init__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/__init__.cpython-39.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/__release__.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/__release__.cpython-39.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/cxx_parser.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/cxx_parser.cpython-39.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/cxxtest_fog.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/cxxtest_fog.cpython-39.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/cxxtest_misc.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/cxxtest_misc.cpython-39.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/cxxtest_parser.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/cxxtest_parser.cpython-39.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/cxxtestgen.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/cxxtest/__pycache__/cxxtestgen.cpython-39.pyc
/usr/lib/python3.9/site-packages/cxxtest/__release__.py
/usr/lib/python3.9/site-packages/cxxtest/cxx_parser.py
/usr/lib/python3.9/site-packages/cxxtest/cxxtest_fog.py
/usr/lib/python3.9/site-packages/cxxtest/cxxtest_misc.py
/usr/lib/python3.9/site-packages/cxxtest/cxxtest_parser.py
/usr/lib/python3.9/site-packages/cxxtest/cxxtestgen.py
/usr/share/doc/cxxtest
/usr/share/doc/cxxtest/COPYING
/usr/share/doc/cxxtest/README
/usr/share/doc/cxxtest/Versions
/usr/share/man/man1/cxxtestgen.1.gz
/usr/share/pkgconfig/cxxtest.pc

References

Summary

In this tutorial we learn how to install cxxtest on Fedora 34 using yum and dnf.