bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_minicom/minicom_test.sh

Christoph Galuschka d545cf
#!/bin/sh
Christoph Galuschka d545cf
# Author: Athmane Madjoudj <athmanem@gmail.com>
Christoph Galuschka 1525a9
# Author: Christoph Galuschka <christoph.galuschka@tiwag.at>
Christoph Galuschka d545cf
Christoph Galuschka d545cf
t_Log "Running $0 - very basic minicom test."
Christoph Galuschka d545cf
Christoph Galuschka d545cf
# Only checking for correct output of '-v'
Christoph Galuschka d545cf
# with respect to different versions on C5 and C6
Christoph Galuschka d545cf
Christoph Galuschka d545cf
if (t_GetPkgRel basesystem | grep -q el6)
Christoph Galuschka d545cf
then
Christoph Galuschka d545cf
  VERSION="2.3"
Christoph Galuschka d545cf
else
Christoph Galuschka d545cf
  VERSION="2.1"
Christoph Galuschka d545cf
fi
Christoph Galuschka d545cf
Athmane Madjoudj 9d2331
minicom -v | grep "${VERSION}"  >/dev/null 2>&1
Christoph Galuschka d545cf
Christoph Galuschka d545cf
t_CheckExitStatus $?