diff options
| author | Clark Williams <williams@redhat.com> | 2010-07-16 07:57:57 -0500 |
|---|---|---|
| committer | Clark Williams <williams@redhat.com> | 2010-07-27 13:59:07 -0500 |
| commit | 2149d0815501d3721ccfdb8203e54a7bcb59ff32 (patch) | |
| tree | 9a826c9796826dbac7b3ecdf16814e08da1a027b /tests/functions | |
| parent | ed9826cee13b35c1c9df2a8018459394064767ff (diff) | |
moved test suite to 'tests' directory
Moved test infrastructure into the tests directory and broke
component tests out into individual scripts.
Signed-off-by: Clark Williams <williams@redhat.com>
Diffstat (limited to 'tests/functions')
| -rw-r--r-- | tests/functions | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/functions b/tests/functions new file mode 100644 index 0000000..ca597ac --- /dev/null +++ b/tests/functions @@ -0,0 +1,16 @@ +#!/bin/sh + +header() { + echo "" + echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" + echo $1 + echo "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%" + echo "" +} + +runcmd() { + echo $1 + ret=time sh -c "$1" + return $ret +} + |
