< Home - < Back

cmockery2


Information about the package, cmockery2, which is shipped with common Linux distributions. The cmockery2 package is designed for, Lightweight C unit testing framework.


Package Name:

cmockery2

Summary:

Lightweight C unit testing framework

Description:

Cmockery tests are compiled into a stand-alone executable and linked with the cmockery library, the standard C library and module being tested. Any symbols external to the module being tested should be mocked - replaced with functions that return values determined by the test - within the test application. Even though significant differences may exist between the target execution environment of a code module and the environment used to test the code the unit testing is still valid since its goal is to test the logic of a code modules at a functional level and not necessarily all of its interactions with the target execution environment. Other features: * Lightweight C Unit test with mocking support * JUnit XML report output which can be used with Jenkins * Provides design-by-contract support This project is a successor of http://code.google.com/p/cmockery-staging/ which is a successor of Google's http://code.google.com/p/cmockery/.

Architecture:

x86_64

Version:

1.3.9

Release:

1.el6

Size:

30 k

Repository:

epel

From Repository:

Licence:

ASL 2.0



Handy Yum Commands for cmockery2


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


Command

Description of Command

yum install cmockery2

This command will install cmockery2 on the server.

yum remove cmockery2

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

yum -y remove cmockery2

This command will un-install cmockery2 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 cmockery2 when using the -y flag.

yum update cmockery2

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

yum -y update cmockery2

This command will update cmockery2 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 cmockery2 when using the -y flag.

yum info cmockery2

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

yum deplist cmockery2

This command will show you the dependencies for cmockery2. 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 cmockery2

This command will check if there is an update waiting on cmockery2. 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.