On Mon, 24 Mar 2025 14:35:50 GMT, Alexey Semenyuk <asemen...@openjdk.org> wrote:

> Follow-up for https://github.com/openjdk/jdk/pull/24087 PR. 
> Revamp signing tests:
>  - Run the tests only if `jpackage.test.MacSignTests` property is set to 
> "run". This property also can be set to "setup" and "teardown" to set up and 
> tear down jpackage signing test environment. See 
> https://github.com/openjdk/jdk/pull/24087 PR.
>  - Moved tests from SigningOptionsTest.java to ErrorTest.java. Altered 
> `JPackageCommand.validateOutput()` to safely handle the case of an empty list 
> of expected strings.
>  - Removed SigningCheck.java. Verification of jpackage signing test 
> environment is performed in `SigningBase.verifySignTestEnvReady()` method 
> using verification API from MacSign class. 
> `SigningBase.verifySignTestEnvReady()` method is called in every signing 
> jtreg test. It is a replacement for `SigningCheck.checkCertificates()` call.
>  - Change signatures of test methods to leverage capabilities of jpackage 
> test lib added in https://github.com/openjdk/jdk/pull/21996 PR.
> 
> Before these changes, if the signing test environment was not set, signing 
> tests exited with "skipped" status. With this change, these tests will not be 
> executed unless `jpackage.test.MacSignTests` property is set to "run". The 
> tests fail if the property is set and the signing test environment is not set 
> correctly. This is a deliberate choice to encourage running these tests only 
> if the signing test environment is configured correctly.

@sashamatveev PTAL

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24201#issuecomment-2749755409

Reply via email to