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