From b908fc511e74bfe495c4fed9cf6b9a12bae1ffa3 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 12 Feb 2017 06:53:06 +0330 Subject: now you can run the precommit tests with the driver --- mutator.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mutator.sh b/mutator.sh index cb31ba8..ea775bc 100755 --- a/mutator.sh +++ b/mutator.sh @@ -37,7 +37,7 @@ do echo "-i, --input, -input lets you choose the input file(or white-space-separated list of files) that is going to be passed to the mutator executable(s)." echo "-o, --output, -output lets you choose where to put the mutant." echo "-pp, --print-pretty, prints the output in a pretty format in a new file. The new file has the same name with a \"-pretty\" added to the name in the same directory." - echo "-t, --test, runs the tests on the built executables. It should be followed by an executable name and the test to run on it. The accepted options are: tdd,valgrind,xsd." + echo "-t, --test, runs the tests on the built executables. It should be followed by an executable name and the test to run on it. The accepted options are: tdd,valgrind,xsd,precommit." echo " For example: ./mutator.sh --test mutator-lvl0 valgrind" echo "-opts --options, pass options to the executable(s). The executables support all the clang options. Please enclose all the options in double quatation." echo " For example: -opts \"-Wall std=c89\"" @@ -61,6 +61,9 @@ do elif [[ "$2" == mutator-lvl0 && "$3" == xsd ]]; then echo "xmllint --noout --schema ./samples/mutator0-report-schema.xsd ./test/misrareport.xml" "xmllint" --noout --schema ./samples/mutator0-report-schema.xsd ./test/misrareport.xml + elif [[ "$2" == precommit ]]; then + cd ./extra-tools + "./precommitTests.sh" else echo "unknown combination of options: $2 and $3" exit 127 -- cgit v1.2.3