How To Install btest on CentOS 7

In this tutorial we learn how to install btest on CentOS 7. btest is A Simple Driver for Basic Unit Tests

Introduction

In this tutorial we learn how to install btest on CentOS 7.

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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install btest.

Install btest on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install btest

Install btest on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install btest

How To Uninstall btest on CentOS 7

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

sudo dnf remove btest

References

Summary

In this tutorial we learn how to install btest on CentOS 7 using yum and dnf.