| 1 |
#!/bin/sh |
| 2 |
set -e |
| 3 |
|
| 4 |
echo "Testing barman CLI entry points..." |
| 5 |
|
| 6 |
# barman (main) |
| 7 |
barman --help > /dev/null |
| 8 |
echo " barman --help: OK" |
| 9 |
|
| 10 |
# barman-cli commands |
| 11 |
barman-wal-archive --help > /dev/null |
| 12 |
echo " barman-wal-archive --help: OK" |
| 13 |
|
| 14 |
barman-wal-restore --help > /dev/null |
| 15 |
echo " barman-wal-restore --help: OK" |
| 16 |
|
| 17 |
# barman-cli-cloud commands |
| 18 |
for cmd in \ |
| 19 |
barman-cloud-backup \ |
| 20 |
barman-cloud-backup-delete \ |
| 21 |
barman-cloud-backup-keep \ |
| 22 |
barman-cloud-backup-list \ |
| 23 |
barman-cloud-backup-show \ |
| 24 |
barman-cloud-check-wal-archive \ |
| 25 |
barman-cloud-restore \ |
| 26 |
barman-cloud-wal-archive \ |
| 27 |
barman-cloud-wal-restore \ |
| 28 |
; do |
| 29 |
"$cmd" --help > /dev/null |
| 30 |
echo " $cmd --help: OK" |
| 31 |
done |
| 32 |
|
| 33 |
echo "All CLI help tests passed." |