First cookbook example for the docs: Hello World in C.
This commit is contained in:
parent
d664099c9d
commit
d663c9b67d
10 changed files with 216 additions and 2 deletions
12
Documentation/cookbook/hello/test.do
Normal file
12
Documentation/cookbook/hello/test.do
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Make sure everything has been built before we start
|
||||
redo-ifchange all
|
||||
|
||||
# Ensure that the hello program, when run, says
|
||||
# hello like we expect.
|
||||
if ./hello | grep -i 'hello' >/dev/null; then
|
||||
echo "success" >&2
|
||||
exit 0
|
||||
else
|
||||
echo "missing 'hello' message!" >&2
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue