How To Install api-sanity-checker on Fedora 36
Introduction
In this tutorial we learn how to install api-sanity-checker
on Fedora 36.
What is api-sanity-checker
API Sanity Checker (ASC) is an automatic generator of basic unit tests for shared C/C++ libraries. It is able to generate reasonable (in most, but unfortunately not all, cases) input data for parameters and compose simple (“sanity” or “shallow”-quality) test cases for every function in the API through the analysis of declarations in header files. The quality of generated tests allows to check absence of critical errors in simple use cases. The tool is able to build and execute generated tests and detect crashes (segfaults), aborts, all kinds of emitted signals, non-zero program return code and program hanging. It may be considered as a tool for out-of-the-box low-cost sanity checking (fuzzing) of the library API or as a test development framework for initial generation of templates for advanced tests. Also it supports universal format of tests, random test generation mode, specialized data types and other useful features.
We can use yum
or dnf
to install api-sanity-checker
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install api-sanity-checker.
Install api-sanity-checker on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install api-sanity-checker
using dnf
by running the following command:
sudo dnf -y install api-sanity-checker
Install api-sanity-checker on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install api-sanity-checker
using yum
by running the following command:
sudo yum -y install api-sanity-checker
How To Uninstall api-sanity-checker on Fedora 36
To uninstall only the api-sanity-checker
package we can use the following command:
sudo dnf remove api-sanity-checker
api-sanity-checker Package Contents on Fedora 36
/usr/bin/api-sanity-checker
/usr/share/api-sanity-checker
/usr/share/api-sanity-checker/modules
/usr/share/api-sanity-checker/modules/Internals
/usr/share/api-sanity-checker/modules/Internals/RegTests.pm
/usr/share/api-sanity-checker/modules/Internals/Scripts
/usr/share/api-sanity-checker/modules/Internals/Scripts/Sections.js
/usr/share/api-sanity-checker/modules/Internals/Styles
/usr/share/api-sanity-checker/modules/Internals/Styles/List.css
/usr/share/api-sanity-checker/modules/Internals/Styles/Report.css
/usr/share/api-sanity-checker/modules/Internals/Styles/Test.css
/usr/share/doc/api-sanity-checker
/usr/share/doc/api-sanity-checker/Changelog.html
/usr/share/doc/api-sanity-checker/README
/usr/share/doc/api-sanity-checker/Specialized-Type.html
/usr/share/doc/api-sanity-checker/Xml-Descriptor.html
/usr/share/doc/api-sanity-checker/index.html
/usr/share/licenses/api-sanity-checker
/usr/share/licenses/api-sanity-checker/LICENSE
/usr/share/man/man1/api-sanity-checker.1.gz
References
Summary
In this tutorial we learn how to install api-sanity-checker
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).