doc/testing.html
changeset 54473 e437ad5643d6
parent 54268 0cf2c87ce79a
child 54525 5ae4d3f46537
equal deleted inserted replaced
54472:89295131e353 54473:e437ad5643d6
     1 <!DOCTYPE html>
     1 <!DOCTYPE html>
     2 <html>
     2 <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
     3 <head>
     3 <head>
     4   <meta charset="utf-8">
     4   <meta charset="utf-8" />
     5   <meta name="generator" content="pandoc">
     5   <meta name="generator" content="pandoc" />
     6   <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
     6   <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
     7   <title>Testing the JDK</title>
     7   <title>Testing the JDK</title>
     8   <style type="text/css">code{white-space: pre;}</style>
     8   <style type="text/css">
     9   <link rel="stylesheet" href="../make/data/docs-resources/resources/jdk-default.css">
     9       code{white-space: pre-wrap;}
       
    10       span.smallcaps{font-variant: small-caps;}
       
    11       span.underline{text-decoration: underline;}
       
    12       div.column{display: inline-block; vertical-align: top; width: 50%;}
       
    13   </style>
       
    14   <link rel="stylesheet" href="../make/data/docs-resources/resources/jdk-default.css" />
    10   <!--[if lt IE 9]>
    15   <!--[if lt IE 9]>
    11     <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
    16     <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
    12   <![endif]-->
    17   <![endif]-->
    13   <style type="text/css">pre, code, tt { color: #1d6ae5; }</style>
    18   <style type="text/css">pre, code, tt { color: #1d6ae5; }</style>
    14 </head>
    19 </head>
    15 <body>
    20 <body>
    16 <header>
    21 <header id="title-block-header">
    17 <h1 class="title">Testing the JDK</h1>
    22 <h1 class="title">Testing the JDK</h1>
    18 </header>
    23 </header>
    19 <nav id="TOC">
    24 <nav id="TOC">
    20 <ul>
    25 <ul>
    21 <li><a href="#using-make-test-the-run-test-framework">Using &quot;make test&quot; (the run-test framework)</a><ul>
    26 <li><a href="#using-make-test-the-run-test-framework">Using &quot;make test&quot; (the run-test framework)</a><ul>
    31 <li><a href="#test-suite-control">Test suite control</a><ul>
    36 <li><a href="#test-suite-control">Test suite control</a><ul>
    32 <li><a href="#general-keywords-test_opts">General keywords (TEST_OPTS)</a></li>
    37 <li><a href="#general-keywords-test_opts">General keywords (TEST_OPTS)</a></li>
    33 <li><a href="#jtreg-keywords">JTReg keywords</a></li>
    38 <li><a href="#jtreg-keywords">JTReg keywords</a></li>
    34 <li><a href="#gtest-keywords">Gtest keywords</a></li>
    39 <li><a href="#gtest-keywords">Gtest keywords</a></li>
    35 <li><a href="#microbenchmark-keywords">Microbenchmark keywords</a></li>
    40 <li><a href="#microbenchmark-keywords">Microbenchmark keywords</a></li>
       
    41 </ul></li>
       
    42 <li><a href="#notes-for-specific-tests">Notes for Specific Tests</a><ul>
       
    43 <li><a href="#docker-tests">Docker Tests</a></li>
    36 </ul></li>
    44 </ul></li>
    37 </ul>
    45 </ul>
    38 </nav>
    46 </nav>
    39 <h2 id="using-make-test-the-run-test-framework">Using &quot;make test&quot; (the run-test framework)</h2>
    47 <h2 id="using-make-test-the-run-test-framework">Using &quot;make test&quot; (the run-test framework)</h2>
    40 <p>This new way of running tests is developer-centric. It assumes that you have built a JDK locally and want to test it. Running common test targets is simple, and more complex ad-hoc combination of tests is possible. The user interface is forgiving, and clearly report errors it cannot resolve.</p>
    48 <p>This new way of running tests is developer-centric. It assumes that you have built a JDK locally and want to test it. Running common test targets is simple, and more complex ad-hoc combination of tests is possible. The user interface is forgiving, and clearly report errors it cannot resolve.</p>
   178 <p>Specify to have the test run save a log of the values. Accepts the same values as <code>-rff</code>, i.e., <code>text</code>, <code>csv</code>, <code>scsv</code>, <code>json</code>, or <code>latex</code>.</p>
   186 <p>Specify to have the test run save a log of the values. Accepts the same values as <code>-rff</code>, i.e., <code>text</code>, <code>csv</code>, <code>scsv</code>, <code>json</code>, or <code>latex</code>.</p>
   179 <h4 id="vm_options-2">VM_OPTIONS</h4>
   187 <h4 id="vm_options-2">VM_OPTIONS</h4>
   180 <p>Additional VM arguments to provide to forked off VMs. Same as <code>-jvmArgs &lt;args&gt;</code></p>
   188 <p>Additional VM arguments to provide to forked off VMs. Same as <code>-jvmArgs &lt;args&gt;</code></p>
   181 <h4 id="options-2">OPTIONS</h4>
   189 <h4 id="options-2">OPTIONS</h4>
   182 <p>Additional arguments to send to JMH.</p>
   190 <p>Additional arguments to send to JMH.</p>
       
   191 <h2 id="notes-for-specific-tests">Notes for Specific Tests</h2>
       
   192 <h3 id="docker-tests">Docker Tests</h3>
       
   193 <p>Docker tests with default parameters may fail on systems with glibc versions not compatible with the one used in the default docker image (e.g., Oracle Linux 7.6 for x86). For example, they pass on Ubuntu 16.04 but fail on Ubuntu 18.04 if run like this on x86:</p>
       
   194 <pre><code>$ make test TEST=&quot;jtreg:test/hotspot/jtreg/runtime/containers/docker&quot;</code></pre>
       
   195 <p>To run these tests correctly, additional parameters for the correct docker image are required on Ubuntu 18.04 by using <code>JAVA_OPTIONS</code>.</p>
       
   196 <pre><code>$ make test TEST=&quot;jtreg:test/hotspot/jtreg/runtime/containers/docker&quot; JTREG=&quot;JAVA_OPTIONS=-Djdk.test.docker.image.name=ubuntu -Djdk.test.docker.image.version=latest&quot;</code></pre>
   183 </body>
   197 </body>
   184 </html>
   198 </html>