Debian Codegraph @

debian/tests/clients

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