File: cli

package info (click to toggle)
python-json-pointer 1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 224 kB
  • ctags: 122
  • sloc: python: 449; makefile: 172; sh: 42
file content (18 lines) | stat: -rwxr-xr-x 373 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 cli utilities
#----------------------
set -e

cd "$ADTTMP"

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