From 6ce9d31862dfd45285d51b52e83d8ac2ea95fc04 Mon Sep 17 00:00:00 2001 From: Sahil Muthoo Date: Jul 22 2012 11:21:59 +0000 Subject: Add ruby tests - verify ruby installed - verify irb installed - verify versions of both --- diff --git a/tests/0_ruby/0-install-ruby.sh b/tests/0_ruby/0-install-ruby.sh new file mode 100755 index 0000000..42ecd58 --- /dev/null +++ b/tests/0_ruby/0-install-ruby.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: White team + +t_Log "Running $0 - attempting to install openssl." +t_InstallPackage ruby +t_InstallPackage ruby-irb + + diff --git a/tests/0_ruby/10-ruby-installed-test.sh b/tests/0_ruby/10-ruby-installed-test.sh new file mode 100755 index 0000000..cf3783e --- /dev/null +++ b/tests/0_ruby/10-ruby-installed-test.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Author: Nikhil Lanjewar +# Author: Sahil Muthoo +# Author: Sahil Aggarwal +# Author: Saager Mhatre + +t_Log "Running $0 - Check successful installation of ruby." +ruby -v +t_CheckExitStatus $? + diff --git a/tests/0_ruby/20-ruby-version-test.sh b/tests/0_ruby/20-ruby-version-test.sh new file mode 100755 index 0000000..94bef97 --- /dev/null +++ b/tests/0_ruby/20-ruby-version-test.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Author: Nikhil Lanjewar +# Author: Sahil Muthoo +# Author: Sahil Aggarwal +# Author: Saager Mhatre + +t_Log "Running $0 - Check successful installation of ruby." +ruby -v | grep -q '1.8.7' +t_CheckExitStatus $? + diff --git a/tests/0_ruby/30-irb-test.sh b/tests/0_ruby/30-irb-test.sh new file mode 100755 index 0000000..53e09d8 --- /dev/null +++ b/tests/0_ruby/30-irb-test.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# Author: Nikhil Lanjewar +# Author: Sahil Muthoo +# Author: Sahil Aggarwal +# Author: Saager Mhatre + +t_Log "Running $0 - Check successful installation of irb." + +irb -v | grep '0.9.5' + +t_CheckExitStatus $? +