You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_centos-release/centos-release_release_comp...

15 lines
497 B

#!/bin/sh
# Author: Athmane Madjoudj <athmanem@gmail.com>
t_Log "Running $0 - /etc/centos-release compatibility symbolic links test."
if [ "$centos_ver" -ge 6 ]
then
grep "CentOS" /etc/centos-release >/dev/null 2>&1
(file /etc/redhat-release | grep -E "symbolic link to .?centos-release.?" >/dev/null 2>&1) &&\
(file /etc/system-release | grep -E "symbolic link to .?centos-release.?" >/dev/null 2>&1)
else
echo "This test is not comptatible with CentOS <= 5"
fi
t_CheckExitStatus $?