Mercurial Hosting > bricolage
comparison example.sh @ 0:ed67ca9ff4c7
initial commit
author | Serge A. Zaitsev <zaitsev.serge@gmail.com> |
---|---|
date | Thu, 18 Dec 2014 23:49:30 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:ed67ca9ff4c7 |
---|---|
1 # Include bricolage library | |
2 . ./b.sh | |
3 | |
4 # Simple test | |
5 mytest() { | |
6 ok 1 -eq 1 | |
7 ok foo = foo | |
8 foo="Foo bar" | |
9 ok "$foo" = "Foo bar" | |
10 } | |
11 | |
12 myspytest() { | |
13 spy date | |
14 date | |
15 ok "$(cat $T/spy.date.stdout)" != "foo" | |
16 echo foo > $T/spy.date | |
17 date | |
18 ok "$(tail -n 1 $T/spy.date.stdout)" = "foo" | |
19 } | |
20 | |
21 # Run tests | |
22 bricolage mytest | |
23 bricolage myspytest | |
24 | |
25 # Remove test data | |
26 rm -r "$T" | |
27 |