aboutsummaryrefslogtreecommitdiffstats
path: root/mutator.sh
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-11-04 05:08:48 +0000
committerbloodstalker <thabogre@gmail.com>2016-11-04 05:08:48 +0000
commit413ab371b3cf087a07919736a072ab8a795db754 (patch)
treebfec8db7ecc097137c74a101dfb9d27394b0280a /mutator.sh
parentchanged the makefile to build the new source file also. (diff)
downloadmutator-413ab371b3cf087a07919736a072ab8a795db754.tar.gz
mutator-413ab371b3cf087a07919736a072ab8a795db754.zip
minor change for llvm-format
Diffstat (limited to 'mutator.sh')
-rwxr-xr-xmutator.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/mutator.sh b/mutator.sh
index 4cd5310..58da33d 100755
--- a/mutator.sh
+++ b/mutator.sh
@@ -78,8 +78,13 @@ elif [[ "$COMMAND" == "run" ]];then
elif [[ "$COMMAND" == "default" ]]; then
echo "Building all target executables..."
"make" all
+ echo "Ruunning the input through clang-format..."
+ "/home/bloodstalker/llvm-clang/build/bin/clang-format" $INPUT -- > $OUTPUT_FORMAT
+ "cp" $OUTPUT_FORMAT ./medium.c
echo "Running all exetubales on target input..."
- "./mutator" "$INPUT" -- > "$OUTPUT"
+ "./mutator" "$OUTPUT_FORMAT" -- > "$OUTPUT"
+ echo 'Using clang-format to format the mutant...'
+ "/home/bloodstalker/llvm-clang/build/bin/clang-format" $OUTPUT -- > $OUTPUT_FORMAT
elif [[ "$COMMAND" == "jack" ]]; then
echo
else