blob: d705e01a336a631ca143b36c5ba23c08c7db01a1 (
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=('radsecret')
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
|