< Home - < Back

libcmocka


Information about the package, libcmocka, which is shipped with common Linux distributions. The libcmocka package is designed for, Lightweight library to simplify and generalize unit tests for C.


Package Name:

libcmocka

Summary:

Lightweight library to simplify and generalize unit tests for C

Description:

There are a variety of C unit testing frameworks available however many of them are fairly complex and require the latest compiler technology. Some development requires the use of old compilers which makes it difficult to use some unit testing frameworks. In addition many unit testing frameworks assume the code being tested is an application or module that is targeted to the same platform that will ultimately execute the test. Because of this assumption many frameworks require the inclusion of standard C library headers in the code module being tested which may collide with the custom or incomplete implementation of the C library utilized by the code under test. CMocka only requires a test application is linked with the standard C library which minimizes conflicts with standard C library headers. Also, CMocka tries to avoid the use of some of the newer features of C compilers. This results in CMocka being a relatively small library that can be used to test a variety of exotic code. If a developer wishes to simply test an application with the latest compiler then other unit testing frameworks may be preferable. This is the successor of Google's Cmockery.

Architecture:

x86_64

Version:

1.0.1

Release:

1.el6

Size:

28 k

Repository:

epel

From Repository:

Licence:

ASL 2.0



Handy Yum Commands for libcmocka


Control the libcmocka package with the following handy commands outlined below.


Command

Description of Command

yum install libcmocka

This command will install libcmocka on the server.

yum remove libcmocka

This command will un-install libcmocka on the server. When you run this command, you will be asked if you are sure that you want to remove libcmocka, so you have to manually confirm that you want to do this.

yum -y remove libcmocka

This command will un-install libcmocka on the server. When you run this command with th e -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove libcmocka when using the -y flag.

yum update libcmocka

This command will update libcmocka to the latest version. When you run this command, you will be asked if you are sure that you want to remove libcmocka, so you have to manually confirm that you want to do this.

yum -y update libcmocka

This command will update libcmocka to the latest version. When you run this command with the -y flag, you will not be prompted to check that you are sure you want to remove the package - so be sure you absolutely want to remove libcmocka when using the -y flag.

yum info libcmocka

This command will show you core information about the libcmocka package.

yum deplist libcmocka

This command will show you the dependencies for libcmocka. Thankfully, when using Yum, if dependencies are required, these are also installed at the same time so you don't have to worry too much about that.

yum check-update libcmocka

This command will check if there is an update waiting on libcmocka. When you run this command this will return nothing if there is nothing to update, or, will return the package name if the package is due to be updated.