diff options
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 +} + |