aboutsummaryrefslogtreecommitdiffstats
path: root/mutator.sh
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-11-04 22:56:57 +0000
committerbloodstalker <thabogre@gmail.com>2016-11-04 22:56:57 +0000
commitd172b4507e982b0faf53283a1355c6e6c2f6808f (patch)
tree4d2280d5daa4919f6952688add9b87c8242dc294 /mutator.sh
parentminor fixes (diff)
downloadmutator-d172b4507e982b0faf53283a1355c6e6c2f6808f.tar.gz
mutator-d172b4507e982b0faf53283a1355c6e6c2f6808f.zip
now runs lvl 2 mutations.
Diffstat (limited to '')
-rwxr-xr-xmutator.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/mutator.sh b/mutator.sh
index 58da33d..616b9cc 100755
--- a/mutator.sh
+++ b/mutator.sh
@@ -74,7 +74,8 @@ elif [[ "$COMMAND" == "build-all" ]]; then
"make" all
elif [[ "$COMMAND" == "run" ]];then
echo "Running executables on target file..."
- "./mutator" "$INPUT" -- > "$OUTPUT"
+ "./mutator" "$INPUT" -- > mutant-lvl1.c
+ "./mutator-lvl2" mutant-lvl1.c -- > $OUTPUT
elif [[ "$COMMAND" == "default" ]]; then
echo "Building all target executables..."
"make" all
@@ -82,7 +83,10 @@ elif [[ "$COMMAND" == "default" ]]; then
"/home/bloodstalker/llvm-clang/build/bin/clang-format" $INPUT -- > $OUTPUT_FORMAT
"cp" $OUTPUT_FORMAT ./medium.c
echo "Running all exetubales on target input..."
- "./mutator" "$OUTPUT_FORMAT" -- > "$OUTPUT"
+ echo "Level 1..."
+ "./mutator" "$OUTPUT_FORMAT" -- > mutant-lvl1.c
+ echo "Level 2..."
+ "./mutator-lvl2" mutant-lvl1.c -- > $OUTPUT
echo 'Using clang-format to format the mutant...'
"/home/bloodstalker/llvm-clang/build/bin/clang-format" $OUTPUT -- > $OUTPUT_FORMAT
elif [[ "$COMMAND" == "jack" ]]; then