How To Install btest on Fedora 34

btest is A Simple Driver for Basic Unit Tests

Introduction

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

What is btest

The btest is a simple framework for writing unit tests. Freely borrowing some ideas from other packages, it’s main objective is to provide an easy-to-use, straightforward driver for a suite of shell-based tests. Each test consists of a set of command lines that will be executed, and success is determined based on their exit codes. btest comes with some additional tools that can be used within such tests to compare output against a previously established baseline.

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

Install btest 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 btest using dnf by running the following command:

sudo dnf -y install btest

Install btest 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 btest using yum by running the following command:

sudo yum -y install btest

How To Uninstall btest on Fedora 34

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

sudo dnf remove btest

btest Package Contents on Fedora 34

/usr/bin/btest
/usr/bin/btest-ask-update
/usr/bin/btest-bg-run
/usr/bin/btest-bg-run-helper
/usr/bin/btest-bg-wait
/usr/bin/btest-diff
/usr/bin/btest-diff-rst
/usr/bin/btest-progress
/usr/bin/btest-rst-cmd
/usr/bin/btest-rst-include
/usr/bin/btest-rst-pipe
/usr/bin/btest-setsid
/usr/lib/python3.9/site-packages/__pycache__
/usr/lib/python3.9/site-packages/__pycache__/btest-sphinx.cpython-39.opt-1.pyc
/usr/lib/python3.9/site-packages/__pycache__/btest-sphinx.cpython-39.pyc
/usr/lib/python3.9/site-packages/btest-0.57-py3.9.egg-info
/usr/lib/python3.9/site-packages/btest-sphinx.py
/usr/share/doc/btest
/usr/share/doc/btest/README

References

Summary

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