File: client

package info (click to toggle)
python-swiftclient 1%3A3.1.0-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,132 kB
  • ctags: 1,125
  • sloc: python: 13,833; makefile: 116; sh: 84
file content (18 lines) | stat: -rwxr-xr-x 382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
#-------------------------
# Testing client utilities
#-------------------------
set -e

cd "$ADTTMP"

HELP_CLIENTS=('swift' 'python2-swift' 'python3-swift')
for client in "${HELP_CLIENTS[@]}"; do
    if ! $client -h 2>&1 > /dev/null; then
        echo "ERROR, ${client} is not running"
        exit 1
    else
        echo "OK: ${client} is running"
    fi
done
exit 0