Blame tests/p_wireshark/wireshark_test.sh
|
Christoph Galuschka |
0623ce |
#!/bin/sh
|
|
Christoph Galuschka |
0623ce |
# Author: Athmane Madjoudj <athmanem@gmail.com>
|
|
Christoph Galuschka |
0623ce |
# Author: Christoph Galuschka <christoph.galuschka@chello.at>
|
|
Christoph Galuschka |
0623ce |
|
|
Christoph Galuschka |
0623ce |
if (t_GetPkgRel basesystem | grep -q el6)
|
|
Christoph Galuschka |
0623ce |
then
|
|
Christoph Galuschka |
0623ce |
t_Log "Running $0 - basic wireshark test."
|
|
Christoph Galuschka |
0623ce |
|
|
Christoph Galuschka |
0623ce |
# just checking version
|
|
Christoph Galuschka |
0623ce |
|
|
Christoph Galuschka |
0623ce |
VERSION="wireshark 1.2"
|
|
Christoph Galuschka |
0623ce |
wireshark -v | grep "${VERSION}" >/dev/null 2>&1
|
|
Christoph Galuschka |
446da1 |
# if version checking is not desired
|
|
Christoph Galuschka |
446da1 |
#wireshark -v | grep "wireshark.org" >/dev/null 2>&1
|
|
Christoph Galuschka |
446da1 |
# please choose the preferred method
|
|
Christoph Galuschka |
0623ce |
t_CheckExitStatus $?
|
|
Christoph Galuschka |
0623ce |
else
|
|
Christoph Galuschka |
0623ce |
echo "Skipped on CentOS 5"
|
|
Christoph Galuschka |
0623ce |
fi
|