api-sanity-checker command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
api-sanity-checker: command not found
or when using sudo you get the following error message
sudo: api-sanity-checker: command not found
Solutions to api-sanity-checker: command not found
How To Fix api-sanity-checker: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu api-sanity-checker is provided by api-sanity-checker package.
api-sanity-checker is:
API Sanity Checker is an automatic generator of basic unit tests for a C/C++ library. It helps to quickly generate simple (“sanity” or “shallow” quality) tests for every function in an API using their signatures, data type definitions and relationships between functions straight from the library header files (“Header-Driven Generation”). Each test case contains a function call with reasonable (in most, but unfortunately not all, cases) input parameters. The quality of generated tests allows one to check absence of critical errors in simple use cases and can be greatly improved by involving of highly reusable specialized types for the library.
The tool can execute generated tests and detect crashes, aborts, all kinds of emitted signals, non-zero program return code, program hang‐ ing and requirement failures (if specified). The tool can be considered as a tool for out-of-box low-cost sanity checking of library API or as a test development framework for initial generation of templates for advanced tests. Also it supports universal Template2Code format of tests, splint specifications, random test generation mode and other useful features.
To fix this problem, we can install more using the command below.
sudo apt-get -y install api-sanity-checker
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install api-sanity-checker.
sudo apt -y install api-sanity-checker
Or if you have aptitude installed you can use the following command.
sudo aptitude install api-sanity-checker
Summary
In this tutorial we learn how to fix api-sanity-checker command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.