run-tests on WSL; was Re: RFR: JDK-8245033 Fixes for building in WSL

Magnus Ihse Bursie magnus.ihse.bursie at oracle.com
Fri May 15 07:08:53 UTC 2020



On 2020-05-14 19:00, Jonathan Gibbons wrote:
> Separate from this RFR, jtreg supports WSL (or is supposed to!) and so 
> I wonder if you have looked at using WSL in the run-tests framework.

I just did "make test-tier1", and got this:

==============================
Test summary
==============================
    TEST                                              TOTAL  PASS FAIL 
ERROR
    jtreg:open/test/hotspot/jtreg:tier1                1527  1527 0     0
 >> jtreg:open/test/jdk:tier1                          1918 1902    
16     0 <<
 >> jtreg:open/test/langtools:tier1                    4037 4028     
9     0 <<
    jtreg:open/test/jaxp:tier1                            0     0 0     0
==============================
TEST FAILURE


So, it's not DOA, we can  certainly run tests. But I got in total 25 
failures, and it seems likely that these are caused by quirks in the WSL 
environment. I looked at a few arbitrarily selected, and all of them 
where shell tests that had the same failure mode:

ACTION: shell -- Failed. Execution failed: exit code 2
REASON: User specified action: run shell Class-Path2.sh
TIME:   0.098 seconds
messages:
command: shell Class-Path2.sh
reason: User specified action: run shell Class-Path2.sh
elapsed time (seconds): 0.098
STDOUT:
STDERR:
/mnt/c/localdata/hg/sandbox-ALT/open/test/langtools/tools/javac/Paths/Class-Path2.sh: 
34: .: Can't open 
C:/localdata/hg/sandbox-ALT/open/test/langtools/tools/javac/Paths/Util.sh

... which definitely sounds fishy.

/Magnus




More information about the build-dev mailing list