aboutsummaryrefslogtreecommitdiffstats
path: root/mutator.sh
diff options
context:
space:
mode:
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