File: 001_apprun

package info (click to toggle)
pbuilder 0.231.1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,864 kB
  • sloc: sh: 5,726; xml: 1,755; makefile: 248; ansic: 11
file content (14 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# run the program without parameters, or run it with --help parameter,
# and check that it returns the expected return-code. Suitable test
# for non-interactive non-GUI operation.

set +e 
program
case $? in
     1) exit 0;;
     *) exit 1;;
esac