[jdk20] RFR: 8298324: Unable to run shell test with make

Erik Joelsson erikj at openjdk.org
Thu Dec 8 20:46:56 UTC 2022


The parsing of the TestID in the TEST parameter currently only handles tests that are .java files. Jtreg tests can also be .html and .sh files. This patch extends the macro to also handle these kinds of files.

Without the patch, trying to run a shell test directly would fail like this:


$ make test TEST=open/test/jdk/sun/security/tools/keytool/ListKeychainStore.sh
Building target 'test' in configuration 'linux-x64'
Test selection 'open/test/jdk/sun/security/tools/keytool/ListKeychainStore.sh', will run:
* jtreg:open/test/jdk/sun/security/tools/keytool/ListKeychainStore.sh.sh

Running test 'jtreg:open/test/jdk/sun/security/tools/keytool/ListKeychainStore.sh.sh'
Error: Cannot find file: open/test/jdk/sun/security/tools/keytool/ListKeychainStore.sh.sh

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

Commit messages:
 - JDK-8298324

Changes: https://git.openjdk.org/jdk20/pull/5/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk20&pr=5&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8298324
  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk20/pull/5.diff
  Fetch: git fetch https://git.openjdk.org/jdk20 pull/5/head:pull/5

PR: https://git.openjdk.org/jdk20/pull/5



More information about the build-dev mailing list