Execute cliargs script before running tests
This commit is contained in:
parent
cd34bb182c
commit
0156100013
5 changed files with 27 additions and 17 deletions
|
@ -1,16 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
MAIN="org.testng.TestNG"
|
|
||||||
TMPNEW=/tmp/checkcliargs-new
|
|
||||||
TMPOLD=/tmp/checkcliargs-old
|
|
||||||
|
|
||||||
java -cp "lib/test/*" $MAIN >$TMPNEW
|
|
||||||
java -cp "examples/lib/test/*" $MAIN >$TMPOLD
|
|
||||||
|
|
||||||
if [ "$1" = "-v" ]; then
|
|
||||||
code --wait --diff $TMPOLD $TMPNEW
|
|
||||||
else
|
|
||||||
diff $TMPOLD $TMPNEW
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -rf $TMPNEW $TMPOLD
|
|
|
@ -1,6 +1,7 @@
|
||||||
bld.downloadExtensionJavadoc=false
|
bld.downloadExtensionJavadoc=false
|
||||||
bld.downloadExtensionSources=true
|
bld.downloadExtensionSources=true
|
||||||
bld.extension-pmd=com.uwyn.rife2:bld-pmd:0.9.9
|
bld.extension-pmd=com.uwyn.rife2:bld-pmd:0.9.9
|
||||||
|
bld.extension-exec=com.uwyn.rife2:bld-exec:1.0.0
|
||||||
bld.repositories=MAVEN_CENTRAL,MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_CENTRAL,MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.downloadLocation=
|
bld.downloadLocation=
|
||||||
bld.sourceDirectories=
|
bld.sourceDirectories=
|
||||||
|
|
16
scripts/checkcliargs.sh
Executable file
16
scripts/checkcliargs.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
main="org.testng.TestNG"
|
||||||
|
new=/tmp/checkcliargs-new
|
||||||
|
old=/tmp/checkcliargs-old
|
||||||
|
|
||||||
|
java -cp "lib/test/*" $main 2>/dev/null >$new
|
||||||
|
java -cp "examples/lib/test/*" $main 2>/dev/null >$old
|
||||||
|
|
||||||
|
if [ "$1" = "-v" ]; then
|
||||||
|
code --wait --diff $old $new
|
||||||
|
else
|
||||||
|
diff $old $new
|
||||||
|
fi
|
||||||
|
|
||||||
|
rm -rf $new $old
|
|
@ -37,7 +37,7 @@ public class TestNgOperationBuild extends Project {
|
||||||
version = version(0, 9, 9, "SNAPSHOT");
|
version = version(0, 9, 9, "SNAPSHOT");
|
||||||
|
|
||||||
javaRelease = 17;
|
javaRelease = 17;
|
||||||
|
|
||||||
downloadSources = true;
|
downloadSources = true;
|
||||||
autoDownloadPurge = true;
|
autoDownloadPurge = true;
|
||||||
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
||||||
|
@ -101,4 +101,13 @@ public class TestNgOperationBuild extends Project {
|
||||||
.ruleSets("config/pmd.xml")
|
.ruleSets("config/pmd.xml")
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void test() throws Exception {
|
||||||
|
new ExecOperation()
|
||||||
|
.fromProject(this)
|
||||||
|
.command("scripts/cliargs.sh")
|
||||||
|
.execute();
|
||||||
|
super.test();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue