File: tools-usage

package info (click to toggle)
rtrlib 0.8.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,636 kB
  • sloc: ansic: 9,862; perl: 5,146; makefile: 177; sh: 109
file content (16 lines) | stat: -rwxr-xr-x 381 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

# Very basic autopkg test to validate the two command line utilities rtrclient
# and rpki-rov print a usage message when run without any arguments.

for prg in rtrclient rpki-rov
do
	out=$("$prg" 2>&1)

	if ! echo "${out}" | grep -q '^Usage:'
	then
		echo "Error running ${prg}:" >&2
		echo "Expected output to start with \"Usage:\", got:\n${out}" >&2
		exit 1
	fi
done