File: call-programs

package info (click to toggle)
mtx 1.3.12-18
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,380 kB
  • sloc: ansic: 7,123; sh: 3,209; python: 203; perl: 117; makefile: 113
file content (17 lines) | stat: -rwxr-xr-x 332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# Test for correct output when calling the programs

set -e

echo "Print mtx version:"
mtx --version 2>&1 | grep "mtx version" && echo "... ok"
echo ""

PROGRAMS="loaderinfo scsieject scsitape tapeinfo"

for p in $PROGRAMS; do
	echo "Print $p usage:"
	$p --nonsense 2>&1 | grep "Usage: $p" && echo "... ok"
	echo ""
done