From 5d4771032d11724abec6123f4f68c1583d90ae89 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Nov 09 2011 18:49:06 +0000 Subject: Add repoclosure test --- diff --git a/tests/z_repoclosure/repoclosure_test.sh b/tests/z_repoclosure/repoclosure_test.sh new file mode 100755 index 0000000..16a179d --- /dev/null +++ b/tests/z_repoclosure/repoclosure_test.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - repoclosure test ." + +t_InstallPackage yum-utils + +repoclosure > /tmp/repoclosure.log 2>&1 +grep -q 'unresolved deps' /tmp/repoclosure.log +if [ $? -eq 0 ] ; then + ret_val=1 +else + ret_val=0 +fi + +# print the output of repoclosure when it fails +[ $ret_val -eq 1 ] && tail /tmp/repoclosure.log + +t_CheckExitStatus $ret_val