chiark
/
gitweb
/
~ian
/
userv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
autopkgtests: wip, an actual very simple test
[userv.git]
/
tests
/
lib
1
# -*- shell-script -*-
2
3
expect_output () {
4
local e_status=$1; shift
5
local e_stdout=$1; shift
6
set +e
7
local g_stdout="$( "$@" )"
8
local g_status=$?
9
set -e
10
test "$g_status" = "$e_status"
11
test "$g_stdout" = "$e_stdout"
12
}