Blame tests/p_ruby/30-irb-version-test.st

Christoph Galuschka 37e507
#!/bin/sh
Christoph Galuschka 37e507
# Author: Nikhil Lanjewar <nikhil@lanjewar.com>
Christoph Galuschka 37e507
# Author: Sahil Muthoo <sahilm@thoughtworks.com>
Christoph Galuschka 37e507
# Author: Sahil Aggarwal <sahilagg@gmail.com>
Christoph Galuschka 37e507
# Author: Saager Mhatre <saager.mhatre@gmail.com>
Christoph Galuschka 37e507
#	  Christoph Galuschka <christoph.galuschka@chello.at>
Christoph Galuschka 37e507
Christoph Galuschka 37e507
t_Log "Running $0 - Check version of irb."
Christoph Galuschka 37e507
Christoph Galuschka 37e507
#allready prepared just in case versions should change between C5 and C6
Christoph Galuschka 37e507
if (t_GetPkgRel basesystem | grep -q el5)
Christoph Galuschka 37e507
  then
Christoph Galuschka 37e507
  irb -v | grep -q '0.9.5'
Christoph Galuschka 37e507
  ret_val=$?
Christoph Galuschka 37e507
else
Christoph Galuschka 37e507
  irb -v | grep -q '0.9.5'
Christoph Galuschka 37e507
  ret_val=$?
Christoph Galuschka 37e507
fi
Christoph Galuschka 37e507
Christoph Galuschka 37e507
t_CheckExitStatus $ret_val