ATF-devel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Another atf_check question
On Sun, Jan 9, 2011 at 3:03 PM, Paul Goyette <paul%whooppee.com@localhost>
wrote:
> What I ended up doing was to call the shell function with output
> redirection, then using cmp(1) to compare with the golden output.
>
> xxx_body() {
> xxx_test > out 2>&1
> atf-check -s 0 -o ignore -e ignore \
> "cmp -s out ${files}xxx.exp"
> }
If you want to go this route, I recommend either this:
cmp -s out ${files}xxx.exp || atf_fail "hey hey, i failed"
or this:
atf_check -o file:${files}xxx.exp cat out
--
Julio Merino
Home |
Main Index |
Thread Index |
Old Index