From 765ebf6d06f8ee91c021bafcdced8302e5ad91e1 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Jun 13 2011 22:59:10 +0000 Subject: - Added libvirt/virsh test. - Added Squid test. --- diff --git a/tests/p_libvirt/0-install_libvirt.sh b/tests/p_libvirt/0-install_libvirt.sh new file mode 100755 index 0000000..39952a2 --- /dev/null +++ b/tests/p_libvirt/0-install_libvirt.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_Log "$0 - installing libvirt" +t_InstallPackage libvirt +service libvirtd start diff --git a/tests/p_libvirt/libvirt_virsh_test.sh b/tests/p_libvirt/libvirt_virsh_test.sh new file mode 100755 index 0000000..3c09640 --- /dev/null +++ b/tests/p_libvirt/libvirt_virsh_test.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - Virsh test." + +virsh -c test:///default list > /dev/null + +t_CheckExitStatus $? diff --git a/tests/p_squid/0-install_squid.sh b/tests/p_squid/0-install_squid.sh new file mode 100755 index 0000000..3af06f2 --- /dev/null +++ b/tests/p_squid/0-install_squid.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_Log "$0 - installing Squid" +t_InstallPackage squid +service squid start diff --git a/tests/p_squid/squid_test.sh b/tests/p_squid/squid_test.sh new file mode 100755 index 0000000..c66c686 --- /dev/null +++ b/tests/p_squid/squid_test.sh @@ -0,0 +1,8 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - Squid test." + +squidclient -T 2 http://www.centos.org/ | grep "CentOS" >/dev/null 2>&1 + +t_CheckExitStatus $?