From d98c0813c2998b6d8814db9f82ce51e405f86482 Mon Sep 17 00:00:00 2001 From: Varadharajan Date: Jul 22 2012 11:25:12 +0000 Subject: Added tests for bc --- diff --git a/tests/p_0-bc/0-install_bc.sh b/tests/p_0-bc/0-install_bc.sh new file mode 100755 index 0000000..2107276 --- /dev/null +++ b/tests/p_0-bc/0-install_bc.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# Author : Varadharajan M +# Manoj Mahalingam +t_InstallPackage bc +t_CheckExitStatus $? diff --git a/tests/p_0-bc/bc-test-basic-functionalities.sh b/tests/p_0-bc/bc-test-basic-functionalities.sh new file mode 100644 index 0000000..716b9a1 --- /dev/null +++ b/tests/p_0-bc/bc-test-basic-functionalities.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Author : Varadharajan M +# Manoj Mahalingam + +t_Log "Running $0 - Testing basic bc functionalities" +test `echo "5 + 6 * 5 / 10 - 1" | bc` -eq "7" ; t_CheckExitStatus $? diff --git a/tests/p_0-bc/bc-test-installation.sh b/tests/p_0-bc/bc-test-installation.sh new file mode 100644 index 0000000..a58d7a1 --- /dev/null +++ b/tests/p_0-bc/bc-test-installation.sh @@ -0,0 +1,8 @@ +#!/bin/bash +# Author : Varadharajan M +# Manoj Mahalingam + + +t_Log "Running $0 - Test bc is installed" +bc --version +t_CheckExitStatus $?