From 03d0b4b936668e42fb60a167e1ff9e20c8346d82 Mon Sep 17 00:00:00 2001 From: Sahil Muthoo Date: Jul 22 2012 11:45:50 +0000 Subject: Add more ruby tests - Successful ruby-ri, ruby-rdoc installation - Version check for ruby-ri - Version check for ruby-rdoc --- diff --git a/tests/0_ruby/0-install-ruby.sh b/tests/0_ruby/0-install-ruby.sh index 42ecd58..14d98b9 100755 --- a/tests/0_ruby/0-install-ruby.sh +++ b/tests/0_ruby/0-install-ruby.sh @@ -1,8 +1,12 @@ #!/bin/sh -# Author: White team +# Author: Nikhil Lanjewar +# Author: Sahil Muthoo +# Author: Sahil Aggarwal +# Author: Saager Mhatre -t_Log "Running $0 - attempting to install openssl." +t_Log "Running $0 - attempting to install ruby, ruby-irb, ruby-ri and ruby-rdoc4" t_InstallPackage ruby t_InstallPackage ruby-irb - +t_InstallPackage ruby-ri +t_InstallPackage ruby-rdoc diff --git a/tests/0_ruby/40-ri-test.sh b/tests/0_ruby/40-ri-test.sh new file mode 100755 index 0000000..1a5d230 --- /dev/null +++ b/tests/0_ruby/40-ri-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 ruby ri." + +ri -v | grep 'v1.0.1' + +t_CheckExitStatus $? + diff --git a/tests/0_ruby/50-rdoc-test.sh b/tests/0_ruby/50-rdoc-test.sh new file mode 100755 index 0000000..9d351dd --- /dev/null +++ b/tests/0_ruby/50-rdoc-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 ruby rdoc." + +rdoc -v | grep 'V1.0.1' + +t_CheckExitStatus $? +