< Home - < Back

shunit2


Information about the package, shunit2, which is shipped with common Linux distributions. The shunit2 package is designed for, A xUnit based unit testing for Unix shell scripts.


Package Name:

shunit2

Summary:

A xUnit based unit testing for Unix shell scripts

Description:

shUnit2 is a xUnit unit test framework for Bourne based shell scripts, and it is designed to work in a similar manner to JUnit, PyUnit, etc. If you have ever had the desire to write a unit test for a shell script, shUnit2 can do the job.

Architecture:

noarch

Version:

2.1.6

Release:

3.el6

Size:

36 k

Repository:

epel

From Repository:

Licence:

LGPLv2



Handy Yum Commands for shunit2


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


Command

Description of Command

yum install shunit2

This command will install shunit2 on the server.

yum remove shunit2

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

yum -y remove shunit2

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

yum update shunit2

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

yum -y update shunit2

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

yum info shunit2

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

yum deplist shunit2

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

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