aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2016-11-19 12:56:53 +0000
committerbloodstalker <thabogre@gmail.com>2016-11-19 12:56:53 +0000
commit22e919d075434c974719a66e5b1266188d420aaa (patch)
treef8c449817ba77330276e45c4da961a1af752dcd3
parentadded misra-c check for 16.1 16.2 16.4 16.6 (diff)
downloadmutator-22e919d075434c974719a66e5b1266188d420aaa.tar.gz
mutator-22e919d075434c974719a66e5b1266188d420aaa.zip
minor change to where the build artifacts and outputs are put
-rwxr-xr-xmutator.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/mutator.sh b/mutator.sh
index 5776021..0bf7e35 100755
--- a/mutator.sh
+++ b/mutator.sh
@@ -4,7 +4,7 @@
#the arguments' positions are not important. you also get log and short options.
#default args
-INPUT="./covtest/testFuncs1.c"
+INPUT="./test/testFuncs1.c"
OUTPUT="./mutant.c"
OUTPUT_FORMAT="./mutant_format.c"
COMMAND="jack"
@@ -79,20 +79,20 @@ elif [[ "$COMMAND" == "run" ]];then
"./mutator-lvl2" mutant-lvl1.c -- > $OUTPUT
elif [[ "$COMMAND" == "misrac" ]]; then
echo "checking input file(s) against Misra-C 2004..."
- "./mutator-lvl0" "$INPUT" -- > ./covtest/misra-log
+ "./mutator-lvl0" "$INPUT" -- > ./test/misra-log
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 -- > ./covtest/$OUTPUT_FORMAT
- "cp" ./covtest/$OUTPUT_FORMAT ./covtest/medium.c
+ "/home/bloodstalker/llvm-clang/build/bin/clang-format" $INPUT -- > ./test/$OUTPUT_FORMAT
+ "cp" ./test/$OUTPUT_FORMAT ./test/medium.c
echo "Running all exetubales on target input..."
echo "Level 1..."
- "./mutator" ./covtest/medium.c -- > ./covtest/mutant-lvl1.c
+ "./mutator" ./test/medium.c -- > ./test/mutant-lvl1.c
echo "Level 2..."
- "./mutator-lvl2" ./covtest/mutant-lvl1.c -- > ./covtest/$OUTPUT
+ "./mutator-lvl2" ./test/mutant-lvl1.c -- > ./test/$OUTPUT
echo 'Using clang-format to format the mutant...'
- "/home/bloodstalker/llvm-clang/build/bin/clang-format" ./covtest/$OUTPUT -- > ./covtest/$OUTPUT_FORMAT
+ "/home/bloodstalker/llvm-clang/build/bin/clang-format" ./test/$OUTPUT -- > ./test/$OUTPUT_FORMAT
elif [[ "$COMMAND" == "jack" ]]; then
echo
else