commit 946c33e268ce7d7da7f8647ca5ad028252372659
parent 6554ca3f159d2daf8bbde19b9264cbc0b5ca5b49
Author: Kyle Milz <kyle@0x30.net>
Date: Sun, 7 Aug 2016 20:19:13 -0600
test: add new test shell library
Diffstat:
1 file changed, 17 insertions(+), 0 deletions(-)
diff --git a/test/utils.sh b/test/utils.sh
@@ -0,0 +1,17 @@
+
+function setup
+{
+ tmpdir=`mktemp -d /tmp/citrun.XXXXXXXXXX`
+ trap "rm -rf $tmpdir" EXIT
+
+ export PATH="`pwd`/src:${PATH}"
+ cd $tmpdir
+}
+
+function process_citrun_log
+{
+ sed -e "s,^.*: ,," \
+ -e "s,'.*',''," \
+ -e "s,(.*),()," \
+ < citrun.log > citrun.log.proc
+}