blob: aeda754f9a6a689e61ddaf37418e3e0f33103e7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/bash
#-------------------------
# Testing client utilities
#-------------------------
set -e
HELP_CLIENTS=('radsniff')
for client in "${HELP_CLIENTS[@]}"; do
RET=$($client -h 2>&1 > /dev/null)
if [[ $RET ]]; then
echo "ERROR, ${client} is not running"
fi
done
VERSION_CLIENTS=('radclient' 'radeapclient')
for client in "${VERSION_CLIENTS[@]}"; do
RET=$($client -v 2>&1 > /dev/null)
if [[ $RET ]]; then
echo "ERROR, ${client} is not running"
exit $RET
fi
done
ALONE_CLIENTS=('radlast')
for client in "${ALONE_CLIENTS[@]}"; do
RET=$($client 2>&1 > /dev/null)
if [[ $RET ]]; then
echo "ERROR, ${client} is not running"
exit $RET
fi
done
|