From 0623ce982474b988ba6fe0e4d33bb8c3380e406e Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Nov 18 2011 08:58:52 +0000 Subject: Added Test for Wireshark --- diff --git a/tests/p_wireshark/0-install_wireshark.sh b/tests/p_wireshark/0-install_wireshark.sh new file mode 100755 index 0000000..feabb99 --- /dev/null +++ b/tests/p_wireshark/0-install_wireshark.sh @@ -0,0 +1,11 @@ +#!/bin/bash +# Author: Christoph Galuschka +# Athmane Madjoudj + +if (t_GetPkgRel basesystem | grep -q el6) +then + # Install wireshark + t_InstallPackage wireshark +else + echo "Skipped on CentOS 5" +fi diff --git a/tests/p_wireshark/wireshark_test.sh b/tests/p_wireshark/wireshark_test.sh new file mode 100755 index 0000000..e72bcf7 --- /dev/null +++ b/tests/p_wireshark/wireshark_test.sh @@ -0,0 +1,16 @@ +#!/bin/sh +# Author: Athmane Madjoudj +# Author: Christoph Galuschka + +if (t_GetPkgRel basesystem | grep -q el6) +then + t_Log "Running $0 - basic wireshark test." + + # just checking version + + VERSION="wireshark 1.2" + wireshark -v | grep "${VERSION}" >/dev/null 2>&1 + t_CheckExitStatus $? +else + echo "Skipped on CentOS 5" +fi