aboutsummaryrefslogtreecommitdiff
path: root/examples/pbuilder-test/001_apprun
blob: 470fa7b2d867eaf8b2a86b9cc60c803160234e10 (plain)
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