chiark
/
gitweb
/
~ian
/
userv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
ae2aa505512a5da3e9f0188bb91ce53b178211b7
[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
}