Skip to content

Commit

Permalink
Add function
Browse files Browse the repository at this point in the history
Add runondex-All

Optimize the script
  • Loading branch information
MyEnthusiastic committed Nov 26, 2023
1 parent cd88def commit a0a5db2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion auto-run-nondex/runNondex.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ runNondex () {
input="modnames"
while IFS= read -r line
do
mvn edu.illinois:nondex-maven-plugin:$nondex_version:nondex -pl :$line -Dlicense.skip=true | tee ./.runNondex/LOGSSS/$line.log
mvn edu.illinois:nondex-maven-plugin:$nondex_version:nondex -pl :$line -Dlicense.skip -Drat.skip --fail-at-end | tee ./.runNondex/LOGSSS/$line.log
done < "$input"
grep -rnil "There are test failures" ./.runNondex/LOGSSS/* | tee ./.runNondex/LOGresult
input=".runNondex/LOGresult"
Expand Down
5 changes: 5 additions & 0 deletions auto-run-nondex/runNondexAll.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Assume this script is run from the folder of .pom.xml files

mvn edu.illinois:nondex-maven-plugin:2.1.1:nondex -Dlicense.skip -Drat.skip --fail-at-end | tee ./nondex.log

awk '/\[INFO\] Across all seeds:/{flag=1; next} /\[INFO\] Test results can be found at:/{flag=0} flag' "./nondex.log" > "./result"

0 comments on commit a0a5db2

Please sign in to comment.