RFR: 8372290: jpackage test lib improvements
Alexey Semenyuk
asemenyuk at openjdk.org
Thu Nov 20 18:40:56 UTC 2025
Collect updates to jpackage test lib from different work-in-progress fixes:
- ConfigFilesStasher: fix "ServiceTest.testAddLFromAppImage" test failure on Linux
- Move PropertyFile class to the package level and make it not throw IOException
- Update test/jdk/tools/jpackage/clean_stashed_files.sh and test/jdk/tools/jpackage/clean_test_output.sh scripts
- CannedFormattedString: make it implement CannedArgument; add `addPrefix()`, and `mapArgs()`
- JPackageCommand: add `makeError()` and `makeAdvice()`
Additionally, add a test case to the AppImagePackageTest test to test that jpackage placed launcher .so in the correct location when using the predefined app image and installing the "/usr" tree on Linux.
-------------
Commit messages:
- CannedArgument: fix the copyright year
- ErrorTest: fix the merge
- JPackageCommand: add makeError() and makeAdvice() functions
- CannedFormattedString: make it implement CannedArgument; add addPrefix(), and mapArgs()
- Fix cleanup scripts
- Move PropertyFile to the package level and make it not throw IOException.
- 8371384: libapplauncher.so is copied to a wrong location in two step packaging when --install-dir=/usr
- LauncherAsServiceVerifier: reduce copy/paste code in launcherAsService()
- ConfigFilesStasher: fix ServiceTest.testAddLFromAppImage test failure on Linux
Changes: https://git.openjdk.org/jdk/pull/28439/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28439&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8372290
Stats: 210 lines in 14 files changed: 145 ins; 48 del; 17 mod
Patch: https://git.openjdk.org/jdk/pull/28439.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28439/head:pull/28439
PR: https://git.openjdk.org/jdk/pull/28439
More information about the core-libs-dev
mailing list