Blame tests/p_ruby/50-rdoc-version-test.sh

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 rdoc."
Christoph Galuschka 37e507
Christoph Galuschka 37e507
#allready prepared just in case versions should change between C5 and C6
39f042
if [ "$centos_ver" -ge 8 ] ; then
f49232
  rdoc -v | grep -q '6.'
Pablo Greco d0fb29
  ret_val=$?
Pablo Greco d0fb29
elif [ "$centos_ver" = "7" ] ; then
a4f4f3
  t_Log "CentOS $centos_ver rdoc has no version in cli -> SKIP"
a4f4f3
  t_CheckExitStatus 0
a4f4f3
  exit 0
Christoph Galuschka 37e507
else
Christoph Galuschka 37e507
  rdoc -v | grep -q '1.0.1'
Christoph Galuschka 37e507
  ret_val=$?
Christoph Galuschka 37e507
fi
Christoph Galuschka 37e507
Christoph Galuschka 37e507
t_CheckExitStatus $ret_val
Christoph Galuschka 37e507