Execute cliargs script before running tests
This commit is contained in:
parent
7413565d87
commit
be15297cc5
6 changed files with 29 additions and 17 deletions
12
scripts/checkcliargs.sh
Executable file
12
scripts/checkcliargs.sh
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash
|
||||
|
||||
main=io.gitlab.arturbosch.detekt.cli.Main
|
||||
new=/tmp/checkcliargs-new
|
||||
old=/tmp/checkcliargs-old
|
||||
|
||||
java -cp "lib/compile/*:examples/lib/bld/*" $main --help >$new
|
||||
java -cp "examples/lib/bld/*" $main --help >$old
|
||||
|
||||
diff $old $new
|
||||
|
||||
rm -rf $new $old
|
8
scripts/cliargs.sh
Executable file
8
scripts/cliargs.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
java -cp "lib/compile/*:examples/lib/bld/*" io.gitlab.arturbosch.detekt.cli.Main --help |\
|
||||
grep "^ --.*" |\
|
||||
sed -e "s/ //" -e "s/, .*//" -e '/version/d' -e '/help/d' |\
|
||||
sort |\
|
||||
sed -e '$s/,//' > "src/test/resources/detekt-args.txt"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue