aboutsummaryrefslogtreecommitdiffstats
path: root/mutator.sh
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-11-30 09:22:05 +0000
committerbloodstalker <thabogre@gmail.com>2016-11-30 09:22:05 +0000
commit870ac7bde9936bb077e12ffadd679479046ef7df (patch)
tree9bc5052767fdb598c31ca06e0c2cf19da9361874 /mutator.sh
parentadded xml output support for the misra report (diff)
downloadmutator-870ac7bde9936bb077e12ffadd679479046ef7df.tar.gz
mutator-870ac7bde9936bb077e12ffadd679479046ef7df.zip
minor fix
Diffstat (limited to 'mutator.sh')
-rwxr-xr-xmutator.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/mutator.sh b/mutator.sh
index 0a6cac9..26d786e 100755
--- a/mutator.sh
+++ b/mutator.sh
@@ -49,7 +49,9 @@ do
while [[ $# -gt 0 ]]
do
case &arg in
-
+ -*)
+ ;;
+ default)
esac
done
;;
@@ -89,6 +91,8 @@ elif [[ "$COMMAND" == "run" ]];then
"./mutator" "$INPUT" -- > mutant-lvl1.c
"./mutator-lvl2" mutant-lvl1.c -- > $OUTPUT
elif [[ "$COMMAND" == "misrac" ]]; then
+ echo "Removing previous XML report..."
+ "rm" ./test/misrareport.xml
echo "checking input file(s) against Misra-C 2004..."
"./mutator-lvl0" "$INPUT" -- > ./test/misra-log
elif [[ "$COMMAND" == "default" ]]; then