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 $?