提交 6291662b 作者: Christian Couder

coverage_helper: output a result

License: MIT
Signed-off-by: 's avatarChristian Couder <chriscool@tuxfamily.org>
上级 06c3a21c
...@@ -106,23 +106,36 @@ reverse() { ...@@ -106,23 +106,36 @@ reverse() {
fi fi
} }
log "Math the test line commands with the commands they use" log "Match the test line commands with the commands they use"
GLOBAL_REV="$TMPDIR/global_results_reversed.txt"
reverse "$CMD_CMDS" | while read -r ipfs cmd sub1 sub2 reverse "$CMD_CMDS" | while read -r ipfs cmd sub1 sub2
do do
if test -n "$sub2" if test -n "$sub2"
then then
egrep "$ipfs(\W.*)*\W$cmd(\W.*)*\W$sub1(\W.*)*\W$sub2" "$CMD_RES" >"$TMPDIR/res_${ipfs}_${cmd}_${sub1}_${sub2}.txt" CMD_OUT="$TMPDIR/res_${ipfs}_${cmd}_${sub1}_${sub2}.txt"
egrep "$ipfs(\W.*)*\W$cmd(\W.*)*\W$sub1(\W.*)*\W$sub2" "$CMD_RES" >"$CMD_OUT"
reverse "$CMD_OUT" | sed -e 's/^sharness\///' | cut -d- -f1 | uniq -c >>"$GLOBAL_REV"
echo "$ipfs $cmd $sub1 $sub2" >>"$GLOBAL_REV"
else else
if test -n "$sub1" if test -n "$sub1"
then then
egrep "$ipfs(\W.*)*\W$cmd(\W.*)*\W$sub1" "$CMD_RES" >"$TMPDIR/res_${ipfs}_${cmd}_${sub1}.txt" CMD_OUT="$TMPDIR/res_${ipfs}_${cmd}_${sub1}.txt"
egrep "$ipfs(\W.*)*\W$cmd(\W.*)*\W$sub1" "$CMD_RES" >"$CMD_OUT"
reverse "$CMD_OUT" | sed -e 's/^sharness\///' | cut -d- -f1 | uniq -c >>"$GLOBAL_REV"
echo "$ipfs $cmd $sub1" >>"$GLOBAL_REV"
else else
if test -n "$cmd" if test -n "$cmd"
then then
egrep "$ipfs(\W.*)*\W$cmd" "$CMD_RES" >"$TMPDIR/res_${ipfs}_${cmd}.txt" CMD_OUT="$TMPDIR/res_${ipfs}_${cmd}.txt"
egrep "$ipfs(\W.*)*\W$cmd" "$CMD_RES" >"$CMD_OUT"
reverse "$CMD_OUT" | sed -e 's/^sharness\///' | cut -d- -f1 | uniq -c >>"$GLOBAL_REV"
echo "$ipfs $cmd" >>"$GLOBAL_REV"
fi fi
fi fi
fi fi
done done
log "Print results"
reverse "$GLOBAL_REV"
# Remove temp directory... # Remove temp directory...
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论