diff --git a/helper-scripts/project-impl/variables.sh b/helper-scripts/project-impl/variables.sh index 552ca87..9e95c04 100644 --- a/helper-scripts/project-impl/variables.sh +++ b/helper-scripts/project-impl/variables.sh @@ -9,7 +9,7 @@ maven_version="3.9.3" maven_bin="./apache-maven-$maven_version/bin/mvn" lib_pomFile="./helper-scripts/project-impl/publishing/jector.pom" -ext_pomFile="./helper-scripts/project-impl/publishing/jector.pom" +ext_pomFile="./helper-scripts/project-impl/publishing/jector-monkey.pom" passphrase="avrsandbox" diff --git a/helper-scripts/tests/check-pom-paths.py b/helper-scripts/tests/check-pom-paths.py new file mode 100644 index 0000000..a6b8fda --- /dev/null +++ b/helper-scripts/tests/check-pom-paths.py @@ -0,0 +1,9 @@ +"""Check publishing metadata paths without signing or publishing anything.""" +from pathlib import Path +import re +variables = (Path(__file__).parents[1] / "project-impl/variables.sh").read_text() +paths = dict(re.findall(r'^(lib_pomFile|ext_pomFile)="([^"]+)"', variables, re.M)) +assert paths["lib_pomFile"] != paths["ext_pomFile"], "Core and extension POMs must not overwrite each other" +assert Path(paths["lib_pomFile"]).name == "jector.pom" +assert Path(paths["ext_pomFile"]).name == "jector-monkey.pom" +print("PASS: distinct core and extension POM paths")