How To Install kyua on Fedora 34

kyua is Testing framework for infrastructure software

Introduction

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

What is kyua

Kyua is a testing framework for infrastructure software, originally designed to equip BSD-based operating systems with a test suite. This means that Kyua is lightweight and simple, and that Kyua integrates well with various build systems and continuous integration frameworks. Kyua features an expressive test suite definition language, a safe runtime engine for test suites and a powerful report generation engine. Kyua is for both developers and users, from the developer applying a simple fix to a library to the system administrator deploying a new release on a production machine. Kyua is able to execute test programs written with a plethora of testing libraries and languages. The library of choice is ATF, for which Kyua was originally designed, but simple, framework-less test programs and TAP-compliant test programs can also be executed through Kyua.

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

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

sudo dnf -y install kyua

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

sudo yum -y install kyua

How To Uninstall kyua on Fedora 34

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

sudo dnf remove kyua

kyua Package Contents on Fedora 34

/usr/bin/kyua
/usr/lib/.build-id
/usr/lib/.build-id/ef
/usr/lib/.build-id/ef/75a448153107977a0310b2a5d1ce151ea7dcd2
/usr/share/doc/kyua
/usr/share/doc/kyua/AUTHORS
/usr/share/doc/kyua/CONTRIBUTORS
/usr/share/doc/kyua/NEWS.md
/usr/share/doc/kyua/README.md
/usr/share/kyua
/usr/share/kyua/examples
/usr/share/kyua/examples/Kyuafile.top
/usr/share/kyua/examples/kyua.conf
/usr/share/kyua/misc
/usr/share/kyua/misc/context.html
/usr/share/kyua/misc/index.html
/usr/share/kyua/misc/report.css
/usr/share/kyua/misc/test_result.html
/usr/share/kyua/store
/usr/share/kyua/store/migrate_v1_v2.sql
/usr/share/kyua/store/migrate_v2_v3.sql
/usr/share/kyua/store/schema_v3.sql
/usr/share/licenses/kyua
/usr/share/licenses/kyua/LICENSE
/usr/share/man/man1/kyua-about.1.gz
/usr/share/man/man1/kyua-config.1.gz
/usr/share/man/man1/kyua-db-exec.1.gz
/usr/share/man/man1/kyua-db-migrate.1.gz
/usr/share/man/man1/kyua-debug.1.gz
/usr/share/man/man1/kyua-help.1.gz
/usr/share/man/man1/kyua-list.1.gz
/usr/share/man/man1/kyua-report-html.1.gz
/usr/share/man/man1/kyua-report-junit.1.gz
/usr/share/man/man1/kyua-report.1.gz
/usr/share/man/man1/kyua-test.1.gz
/usr/share/man/man1/kyua.1.gz
/usr/share/man/man5/kyua.conf.5.gz
/usr/share/man/man5/kyuafile.5.gz

References

Summary

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