Execute cliargs script before running tests

This commit is contained in:
Erik C. Thauvin 2024-05-28 14:27:54 -07:00
parent ec50e5272b
commit e6230a3644
Signed by: erik
GPG key ID: 776702A6A2DA330E
6 changed files with 23 additions and 13 deletions

12
scripts/checkcliargs.sh Executable file
View file

@ -0,0 +1,12 @@
#!/bin/bash
main="org.pitest.mutationtest.commandline.MutationCoverageReport"
new=/tmp/checkcliargs-new
old=/tmp/checkcliargs-old
java -cp "lib/test/*" $main --help >$new
java -cp "examples/lib/test/*" $main --help >$old
diff $old $new
rm -rf $new $old

7
scripts/cliargs.sh Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash
java -cp "lib/test/*" org.pitest.mutationtest.commandline.MutationCoverageReport --help |\
grep "^.*--.*" |\
sed -e "s/\* --/--/" -e "s/ .*//" |\
sort |\
sed -e '/testPlugin/d' -e '/--help/d' -e '/---/d' > src/test/resources/pitest-args.txt