2018-06-28 14:30:38 +00:00
|
|
|
% Testing the JDK
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2022-11-07 23:12:21 +00:00
|
|
|
## Overview
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2022-11-07 23:12:21 +00:00
|
|
|
The bulk of JDK tests use [jtreg](https://openjdk.org/jtreg/), a regression
|
|
|
|
test framework and test runner built for the JDK's specific needs. Other test
|
|
|
|
frameworks are also used. The different test frameworks can be executed
|
|
|
|
directly, but there is also a set of make targets intended to simplify the
|
|
|
|
interface, and figure out how to run your tests for you.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2022-11-07 23:12:21 +00:00
|
|
|
## Running tests locally with `make test`
|
2017-05-29 12:06:24 +00:00
|
|
|
|
2022-11-07 23:12:21 +00:00
|
|
|
This is the easiest way to get started. Assuming you've built the JDK locally,
|
|
|
|
execute:
|
|
|
|
|
|
|
|
$ make test
|
|
|
|
|
|
|
|
This will run a default set of tests against the JDK, and present you with the
|
|
|
|
results. `make test` is part of a family of test-related make targets which
|
|
|
|
simplify running tests, because they invoke the various test frameworks for
|
2023-11-17 18:09:56 +00:00
|
|
|
you. The "make test framework" is simple to start with, but more complex ad-hoc
|
|
|
|
combination of tests is also possible. You can always invoke the test
|
2022-11-07 23:12:21 +00:00
|
|
|
frameworks directly if you want even more control.
|
2018-10-31 08:30:24 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
Some example command-lines:
|
|
|
|
|
2018-10-31 08:30:24 +00:00
|
|
|
$ make test-tier1
|
|
|
|
$ make test-jdk_lang JTREG="JOBS=8"
|
|
|
|
$ make test TEST=jdk_lang
|
|
|
|
$ make test-only TEST="gtest:LogTagSet gtest:LogTagSetDescriptions" GTEST="REPEAT=-1"
|
2020-04-28 13:35:41 +00:00
|
|
|
$ make test TEST="hotspot:hotspot_gc" JTREG="JOBS=1;TIMEOUT_FACTOR=8;JAVA_OPTIONS=-XshowSettings -Xlog:gc+ref=debug"
|
2018-10-31 08:30:24 +00:00
|
|
|
$ make test TEST="jtreg:test/hotspot:hotspot_gc test/hotspot/jtreg/native_sanity/JniVersion.java"
|
2018-11-16 22:39:51 +00:00
|
|
|
$ make test TEST="micro:java.lang.reflect" MICRO="FORK=1;WARMUP_ITER=2"
|
2018-10-31 08:30:24 +00:00
|
|
|
$ make exploded-test TEST=tier2
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
"tier1" and "tier2" refer to tiered testing, see further down. "TEST" is a test
|
|
|
|
selection argument which the make test framework will use to try to find the
|
|
|
|
tests you want. It iterates over the available test frameworks, and if the
|
|
|
|
test isn't present in one, it tries the next one. The main target `test` uses
|
|
|
|
the jdk-image as the tested product. There is also an alternate target
|
|
|
|
`exploded-test` that uses the exploded image instead. Not all tests will run
|
|
|
|
successfully on the exploded image, but using this target can greatly improve
|
|
|
|
rebuild times for certain workflows.
|
|
|
|
|
|
|
|
Previously, `make test` was used to invoke an old system for running tests, and
|
|
|
|
`make run-test` was used for the new test framework. For backward compatibility
|
|
|
|
with scripts and muscle memory, `run-test` and variants like
|
2022-11-07 23:12:21 +00:00
|
|
|
`exploded-run-test` or `run-test-tier1` are kept as aliases.
|
|
|
|
|
2017-06-20 11:12:42 +00:00
|
|
|
### Configuration
|
|
|
|
|
|
|
|
To be able to run JTReg tests, `configure` needs to know where to find the
|
|
|
|
JTReg test framework. If it is not picked up automatically by configure, use
|
|
|
|
the `--with-jtreg=<path to jtreg home>` option to point to the JTReg framework.
|
|
|
|
Note that this option should point to the JTReg home, i.e. the top directory,
|
|
|
|
containing `lib/jtreg.jar` etc. (An alternative is to set the `JT_HOME`
|
|
|
|
environment variable to point to the JTReg home before running `configure`.)
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
To be able to run microbenchmarks, `configure` needs to know where to find the
|
|
|
|
JMH dependency. Use `--with-jmh=<path to JMH jars>` to point to a directory
|
|
|
|
containing the core JMH and transitive dependencies. The recommended
|
|
|
|
dependencies can be retrieved by running `sh make/devkit/createJMHBundle.sh`,
|
|
|
|
after which `--with-jmh=build/jmh/jars` should work.
|
2018-11-16 22:39:51 +00:00
|
|
|
|
2022-08-29 02:25:37 +00:00
|
|
|
When tests fail or timeout, jtreg runs its failure handler to capture necessary
|
|
|
|
data from the system where the test was run. This data can then be used to
|
2023-11-17 18:09:56 +00:00
|
|
|
analyze the test failures. Collecting this data involves running various
|
|
|
|
commands (which are listed in files residing in
|
|
|
|
`test/failure_handler/src/share/conf`) and some of these commands use `sudo`.
|
|
|
|
If the system's `sudoers` file isn't configured to allow running these
|
|
|
|
commands, then it can result in password being prompted during the failure
|
|
|
|
handler execution. Typically, when running locally, collecting this additional
|
|
|
|
data isn't always necessary. To disable running the failure handler, use
|
|
|
|
`--enable-jtreg-failure-handler=no` when running `configure`. If, however, you
|
|
|
|
want to let the failure handler to run and don't want to be prompted for sudo
|
|
|
|
password, then you can configure your `sudoers` file appropriately. Please read
|
|
|
|
the necessary documentation of your operating system to see how to do that;
|
|
|
|
here we only show one possible way of doing that - edit the
|
|
|
|
`/etc/sudoers.d/sudoers` file to include the following line:
|
2022-08-29 02:25:37 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
johndoe ALL=(ALL) NOPASSWD: /sbin/dmesg
|
|
|
|
```
|
|
|
|
|
|
|
|
This line configures `sudo` to _not_ prompt for password for the `/sbin/dmesg`
|
2023-11-17 18:09:56 +00:00
|
|
|
command (this is one of the commands that is listed in the files at
|
|
|
|
`test/failure_handler/src/share/conf`), for the user `johndoe`. Here `johndoe`
|
2022-08-29 02:25:37 +00:00
|
|
|
is the user account under which the jtreg tests are run. Replace the username
|
|
|
|
with a relevant user account of your system.
|
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
## Test selection
|
|
|
|
|
2018-10-31 08:30:24 +00:00
|
|
|
All functionality is available using the `test` make target. In this use case,
|
|
|
|
the test or tests to be executed is controlled using the `TEST` variable. To
|
|
|
|
speed up subsequent test runs with no source code changes, `test-only` can be
|
|
|
|
used instead, which do not depend on the source and test image build.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
|
|
|
For some common top-level tests, direct make targets have been generated. This
|
2017-06-20 11:12:42 +00:00
|
|
|
includes all JTReg test groups, the hotspot gtest, and custom tests (if
|
2018-10-31 08:30:24 +00:00
|
|
|
present). This means that `make test-tier1` is equivalent to `make test
|
2017-04-04 08:19:11 +00:00
|
|
|
TEST="tier1"`, but the latter is more tab-completion friendly. For more complex
|
2018-10-31 08:30:24 +00:00
|
|
|
test runs, the `test TEST="x"` solution needs to be used.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
|
|
|
The test specifications given in `TEST` is parsed into fully qualified test
|
2024-05-28 17:07:27 +00:00
|
|
|
descriptors, which clearly and unambiguously show which tests will be run. As
|
|
|
|
an example, `:tier1` will expand to include all subcomponent test directories
|
2024-05-02 21:19:16 +00:00
|
|
|
that define `tier1`, for example: `jtreg:$(TOPDIR)/test/hotspot/jtreg:tier1
|
|
|
|
jtreg:$(TOPDIR)/test/jdk:tier1 jtreg:$(TOPDIR)/test/langtools:tier1 ...`. You
|
|
|
|
can always submit a list of fully qualified test descriptors in the `TEST`
|
|
|
|
variable if you want to shortcut the parser.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2021-09-24 09:03:33 +00:00
|
|
|
### Common Test Groups
|
|
|
|
|
2022-11-07 23:12:21 +00:00
|
|
|
Ideally, all tests are run for every change but this may not be practical due
|
|
|
|
to the limited testing resources, the scope of the change, etc.
|
2021-09-24 09:03:33 +00:00
|
|
|
|
2022-11-07 23:12:21 +00:00
|
|
|
The source tree currently defines a few common test groups in the relevant
|
2023-11-17 18:09:56 +00:00
|
|
|
`TEST.groups` files. There are test groups that cover a specific component, for
|
|
|
|
example `hotspot_gc`. It is a good idea to look into `TEST.groups` files to get
|
|
|
|
a sense what tests are relevant to a particular JDK component.
|
2021-09-24 09:03:33 +00:00
|
|
|
|
2022-11-07 23:12:21 +00:00
|
|
|
Component-specific tests may miss some unintended consequences of a change, so
|
|
|
|
other tests should also be run. Again, it might be impractical to run all
|
2023-11-17 18:09:56 +00:00
|
|
|
tests, and therefore _tiered_ test groups exist. Tiered test groups are not
|
|
|
|
component-specific, but rather cover the significant parts of the entire JDK.
|
2021-09-24 09:03:33 +00:00
|
|
|
|
2022-11-07 23:12:21 +00:00
|
|
|
Multiple tiers allow balancing test coverage and testing costs. Lower test
|
|
|
|
tiers are supposed to contain the simpler, quicker and more stable tests.
|
|
|
|
Higher tiers are supposed to contain progressively more thorough, slower, and
|
2023-11-17 18:09:56 +00:00
|
|
|
sometimes less stable tests, or the tests that require special configuration.
|
2021-09-24 09:03:33 +00:00
|
|
|
|
2022-11-07 23:12:21 +00:00
|
|
|
Contributors are expected to run the tests for the areas that are changed, and
|
|
|
|
the first N tiers they can afford to run, but at least tier1.
|
2021-09-24 09:03:33 +00:00
|
|
|
|
|
|
|
A brief description of the tiered test groups:
|
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
- `tier1`: This is the most fundamental test tier. Roughly speaking, a failure
|
|
|
|
of a test in this tier has the potential to indicate a problem that would
|
|
|
|
affect many Java programs. Tests in `tier1` include tests of HotSpot, core
|
|
|
|
APIs in the `java.base` module, and the `javac` compiler. Multiple developers
|
|
|
|
run these tests every day. Because of the widespread use, the tests in
|
|
|
|
`tier1` are carefully selected and optimized to run fast, and to run in the
|
|
|
|
most stable manner. As a guideline, nearly all individual tests in `tier1`
|
|
|
|
are expected to run to completion in ten seconds or less when run on common
|
|
|
|
configurations used for development. Long-running tests, even of core
|
|
|
|
functionality, should occur in higher tiers or be covered in other kinds of
|
|
|
|
testing. The test failures in `tier1` are usually followed up on quickly,
|
|
|
|
either with fixes, or adding relevant tests to problem list. GitHub Actions
|
|
|
|
workflows, if enabled, run `tier1` tests.
|
2022-11-07 23:12:21 +00:00
|
|
|
|
|
|
|
- `tier2`: This test group covers even more ground. These contain, among other
|
|
|
|
things, tests that either run for too long to be at `tier1`, or may require
|
|
|
|
special configuration, or tests that are less stable, or cover the broader
|
2024-05-28 17:07:27 +00:00
|
|
|
range of non-core JVM and JDK features/components (for example, XML).
|
2022-11-07 23:12:21 +00:00
|
|
|
|
|
|
|
- `tier3`: This test group includes more stressful tests, the tests for corner
|
|
|
|
cases not covered by previous tiers, plus the tests that require GUIs. As
|
2023-11-17 18:09:56 +00:00
|
|
|
such, this suite should either be run with low concurrency (`TEST_JOBS=1`),
|
|
|
|
or without headful tests(`JTREG_KEYWORDS=\!headful`), or both.
|
2022-11-07 23:12:21 +00:00
|
|
|
|
|
|
|
- `tier4`: This test group includes every other test not covered by previous
|
|
|
|
tiers. It includes, for example, `vmTestbase` suites for Hotspot, which run
|
|
|
|
for many hours even on large machines. It also runs GUI tests, so the same
|
|
|
|
`TEST_JOBS` and `JTREG_KEYWORDS` caveats apply.
|
2021-09-24 09:03:33 +00:00
|
|
|
|
2017-06-20 11:12:42 +00:00
|
|
|
### JTReg
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
JTReg tests can be selected either by picking a JTReg test group, or a
|
|
|
|
selection of files or directories containing JTReg tests. Documentation can be
|
|
|
|
found at [https://openjdk.org/jtreg/](https://openjdk.org/jtreg/), note
|
|
|
|
especially the extensive [FAQ](https://openjdk.org/jtreg/faq.html).
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2018-05-25 09:51:30 +00:00
|
|
|
JTReg test groups can be specified either without a test root, e.g. `:tier1`
|
|
|
|
(or `tier1`, the initial colon is optional), or with, e.g. `hotspot:tier1`,
|
|
|
|
`test/jdk:jdk_util` or `$(TOPDIR)/test/hotspot/jtreg:hotspot_all`. The test
|
2023-11-17 18:09:56 +00:00
|
|
|
root can be specified either as an absolute path, or a path relative to the JDK
|
|
|
|
top directory, or the `test` directory. For simplicity, the hotspot JTReg test
|
|
|
|
root, which really is `hotspot/jtreg` can be abbreviated as just `hotspot`.
|
2018-05-25 09:51:30 +00:00
|
|
|
|
|
|
|
When specified without a test root, all matching groups from all test roots
|
2017-04-04 08:19:11 +00:00
|
|
|
will be added. Otherwise, only the group from the specified test root will be
|
|
|
|
added.
|
|
|
|
|
2017-06-20 11:12:42 +00:00
|
|
|
Individual JTReg tests or directories containing JTReg tests can also be
|
2018-05-25 09:51:30 +00:00
|
|
|
specified, like `test/hotspot/jtreg/native_sanity/JniVersion.java` or
|
|
|
|
`hotspot/jtreg/native_sanity`. Just like for test root selection, you can
|
|
|
|
either specify an absolute path (which can even point to JTReg tests outside
|
2018-06-28 14:30:38 +00:00
|
|
|
the source tree), or a path relative to either the JDK top directory or the
|
2018-05-25 09:51:30 +00:00
|
|
|
`test` directory. `hotspot` can be used as an alias for `hotspot/jtreg` here as
|
|
|
|
well.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
|
|
|
As long as the test groups or test paths can be uniquely resolved, you do not
|
|
|
|
need to enter the `jtreg:` prefix. If this is not possible, or if you want to
|
|
|
|
use a fully qualified test descriptor, add `jtreg:`, e.g.
|
2018-05-25 09:51:30 +00:00
|
|
|
`jtreg:test/hotspot/jtreg/native_sanity`.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
|
|
|
### Gtest
|
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
**Note:** To be able to run the Gtest suite, you need to configure your build
|
|
|
|
to be able to find a proper version of the gtest source. For details, see the
|
2022-10-13 06:16:15 +00:00
|
|
|
section ["Running Tests" in the build
|
|
|
|
documentation](building.html#running-tests).
|
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
Since the Hotspot Gtest suite is so quick, the default is to run all tests.
|
|
|
|
This is specified by just `gtest`, or as a fully qualified test descriptor
|
|
|
|
`gtest:all`.
|
|
|
|
|
|
|
|
If you want, you can single out an individual test or a group of tests, for
|
|
|
|
instance `gtest:LogDecorations` or `gtest:LogDecorations.level_test_vm`. This
|
|
|
|
can be particularly useful if you want to run a shaky test repeatedly.
|
|
|
|
|
2017-12-04 18:49:01 +00:00
|
|
|
For Gtest, there is a separate test suite for each JVM variant. The JVM variant
|
|
|
|
is defined by adding `/<variant>` to the test descriptor, e.g.
|
|
|
|
`gtest:Log/client`. If you specify no variant, gtest will run once for each JVM
|
|
|
|
variant present (e.g. server, client). So if you only have the server JVM
|
|
|
|
present, then `gtest:all` will be equivalent to `gtest:all/server`.
|
|
|
|
|
2018-11-16 22:39:51 +00:00
|
|
|
### Microbenchmarks
|
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
Which microbenchmarks to run is selected using a regular expression following
|
|
|
|
the `micro:` test descriptor, e.g., `micro:java.lang.reflect`. This delegates
|
|
|
|
the test selection to JMH, meaning package name, class name and even benchmark
|
|
|
|
method names can be used to select tests.
|
2018-11-16 22:39:51 +00:00
|
|
|
|
|
|
|
Using special characters like `|` in the regular expression is possible, but
|
|
|
|
needs to be escaped multiple times: `micro:ArrayCopy\\\\\|reflect`.
|
|
|
|
|
2018-10-31 08:30:24 +00:00
|
|
|
### Special tests
|
|
|
|
|
|
|
|
A handful of odd tests that are not covered by any other testing framework are
|
|
|
|
accessible using the `special:` test descriptor. Currently, this includes
|
2018-11-02 23:27:55 +00:00
|
|
|
`failure-handler` and `make`.
|
2018-10-31 08:30:24 +00:00
|
|
|
|
|
|
|
* Failure handler testing is run using `special:failure-handler` or just
|
|
|
|
`failure-handler` as test descriptor.
|
|
|
|
|
|
|
|
* Tests for the build system, including both makefiles and related
|
|
|
|
functionality, is run using `special:make` or just `make` as test
|
|
|
|
descriptor. This is equivalent to `special:make:all`.
|
|
|
|
|
|
|
|
A specific make test can be run by supplying it as argument, e.g.
|
|
|
|
`special:make:idea`. As a special syntax, this can also be expressed as
|
|
|
|
`make-idea`, which allows for command lines as `make test-make-idea`.
|
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
## Test results and summary
|
|
|
|
|
|
|
|
At the end of the test run, a summary of all tests run will be presented. This
|
|
|
|
will have a consistent look, regardless of what test suites were used. This is
|
|
|
|
a sample summary:
|
|
|
|
|
|
|
|
==============================
|
|
|
|
Test summary
|
|
|
|
==============================
|
|
|
|
TEST TOTAL PASS FAIL ERROR
|
|
|
|
>> jtreg:jdk/test:tier1 1867 1865 2 0 <<
|
|
|
|
jtreg:langtools/test:tier1 4711 4711 0 0
|
|
|
|
jtreg:nashorn/test:tier1 133 133 0 0
|
|
|
|
==============================
|
|
|
|
TEST FAILURE
|
|
|
|
|
|
|
|
Tests where the number of TOTAL tests does not equal the number of PASSed tests
|
|
|
|
will be considered a test failure. These are marked with the `>> ... <<` marker
|
|
|
|
for easy identification.
|
|
|
|
|
|
|
|
The classification of non-passed tests differs a bit between test suites. In
|
|
|
|
the summary, ERROR is used as a catch-all for tests that neither passed nor are
|
|
|
|
classified as failed by the framework. This might indicate test framework
|
|
|
|
error, timeout or other problems.
|
|
|
|
|
2018-10-31 08:30:24 +00:00
|
|
|
In case of test failures, `make test` will exit with a non-zero exit value.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2017-06-20 11:12:42 +00:00
|
|
|
All tests have their result stored in `build/$BUILD/test-results/$TEST_ID`,
|
2017-04-04 08:19:11 +00:00
|
|
|
where TEST_ID is a path-safe conversion from the fully qualified test
|
|
|
|
descriptor, e.g. for `jtreg:jdk/test:tier1` the TEST_ID is
|
|
|
|
`jtreg_jdk_test_tier1`. This path is also printed in the log at the end of the
|
|
|
|
test run.
|
|
|
|
|
|
|
|
Additional work data is stored in `build/$BUILD/test-support/$TEST_ID`. For
|
|
|
|
some frameworks, this directory might contain information that is useful in
|
|
|
|
determining the cause of a failed test.
|
|
|
|
|
|
|
|
## Test suite control
|
|
|
|
|
|
|
|
It is possible to control various aspects of the test suites using make control
|
|
|
|
variables.
|
|
|
|
|
|
|
|
These variables use a keyword=value approach to allow multiple values to be
|
2019-08-26 14:14:15 +00:00
|
|
|
set. So, for instance, `JTREG="JOBS=1;TIMEOUT_FACTOR=8"` will set the JTReg
|
2017-04-04 08:19:11 +00:00
|
|
|
concurrency level to 1 and the timeout factor to 8. This is equivalent to
|
2020-06-25 16:35:40 +00:00
|
|
|
setting `JTREG_JOBS=1 JTREG_TIMEOUT_FACTOR=8`, but using the keyword format
|
|
|
|
means that the `JTREG` variable is parsed and verified for correctness, so
|
|
|
|
`JTREG="TMIEOUT_FACTOR=8"` would give an error, while `JTREG_TMIEOUT_FACTOR=8`
|
|
|
|
would just pass unnoticed.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
|
|
|
To separate multiple keyword=value pairs, use `;` (semicolon). Since the shell
|
|
|
|
normally eats `;`, the recommended usage is to write the assignment inside
|
2024-05-28 17:07:27 +00:00
|
|
|
quotes, e.g. `JTREG="...;..."`. This will also make sure spaces are preserved,
|
2020-04-28 13:35:41 +00:00
|
|
|
as in `JTREG="JAVA_OPTIONS=-XshowSettings -Xlog:gc+ref=debug"`.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
(Other ways are possible, e.g. using backslash:
|
|
|
|
`JTREG=JOBS=1\;TIMEOUT_FACTOR=8`. Also, as a special technique, the string
|
|
|
|
`%20` will be replaced with space for certain options, e.g.
|
|
|
|
`JTREG=JAVA_OPTIONS=-XshowSettings%20-Xlog:gc+ref=debug`. This can be useful if
|
|
|
|
you have layers of scripts and have trouble getting proper quoting of command
|
|
|
|
line arguments through.)
|
2017-04-04 08:19:11 +00:00
|
|
|
|
|
|
|
As far as possible, the names of the keywords have been standardized between
|
|
|
|
test suites.
|
|
|
|
|
2019-01-24 10:15:31 +00:00
|
|
|
### General keywords (TEST_OPTS)
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
Some keywords are valid across different test suites. If you want to run tests
|
|
|
|
from multiple test suites, or just don't want to care which test suite specific
|
|
|
|
control variable to use, then you can use the general TEST_OPTS control
|
|
|
|
variable.
|
2019-01-24 10:15:31 +00:00
|
|
|
|
|
|
|
There are also some keywords that applies globally to the test runner system,
|
2023-11-17 18:09:56 +00:00
|
|
|
not to any specific test suites. These are also available as TEST_OPTS
|
|
|
|
keywords.
|
2019-01-24 10:15:31 +00:00
|
|
|
|
|
|
|
#### JOBS
|
|
|
|
|
|
|
|
Currently only applies to JTReg.
|
|
|
|
|
|
|
|
#### TIMEOUT_FACTOR
|
|
|
|
|
|
|
|
Currently only applies to JTReg.
|
|
|
|
|
2020-04-28 13:35:41 +00:00
|
|
|
#### JAVA_OPTIONS
|
2019-01-24 10:15:31 +00:00
|
|
|
|
|
|
|
Applies to JTReg, GTest and Micro.
|
|
|
|
|
2020-04-28 13:35:41 +00:00
|
|
|
#### VM_OPTIONS
|
2019-01-24 10:15:31 +00:00
|
|
|
|
|
|
|
Applies to JTReg, GTest and Micro.
|
|
|
|
|
|
|
|
#### JCOV
|
|
|
|
|
2024-05-28 17:07:27 +00:00
|
|
|
This keyword applies globally to the test runner system. If set to `true`, it
|
2019-01-24 10:15:31 +00:00
|
|
|
enables JCov coverage reporting for all tests run. To be useful, the JDK under
|
|
|
|
test must be run with a JDK built with JCov instrumentation (`configure
|
|
|
|
--with-jcov=<path to directory containing lib/jcov.jar>`, `make jcov-image`).
|
|
|
|
|
|
|
|
The simplest way to run tests with JCov coverage report is to use the special
|
|
|
|
target `jcov-test` instead of `test`, e.g. `make jcov-test TEST=jdk_lang`. This
|
|
|
|
will make sure the JCov image is built, and that JCov reporting is enabled.
|
|
|
|
|
2020-03-05 17:51:03 +00:00
|
|
|
The JCov report is stored in `build/$BUILD/test-results/jcov-output/report`.
|
2019-01-24 10:15:31 +00:00
|
|
|
|
|
|
|
Please note that running with JCov reporting can be very memory intensive.
|
|
|
|
|
2020-03-05 17:51:03 +00:00
|
|
|
#### JCOV_DIFF_CHANGESET
|
|
|
|
|
|
|
|
While collecting code coverage with JCov, it is also possible to find coverage
|
|
|
|
for only recently changed code. JCOV_DIFF_CHANGESET specifies a source
|
|
|
|
revision. A textual report will be generated showing coverage of the diff
|
2020-04-28 13:33:41 +00:00
|
|
|
between the specified revision and the repository tip.
|
2020-03-05 17:51:03 +00:00
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
The report is stored in
|
|
|
|
`build/$BUILD/test-results/jcov-output/diff_coverage_report` file.
|
2020-03-05 17:51:03 +00:00
|
|
|
|
2017-06-20 11:12:42 +00:00
|
|
|
### JTReg keywords
|
2017-04-04 08:19:11 +00:00
|
|
|
|
|
|
|
#### JOBS
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
The test concurrency (`-concurrency`).
|
|
|
|
|
|
|
|
Defaults to TEST_JOBS (if set by `--with-test-jobs=`), otherwise it defaults to
|
2023-11-17 18:09:56 +00:00
|
|
|
JOBS, except for Hotspot, where the default is *number of CPU cores/2*, but
|
|
|
|
never more than *memory size in GB/2*.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2019-01-24 10:15:31 +00:00
|
|
|
#### TIMEOUT_FACTOR
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
The timeout factor (`-timeoutFactor`).
|
|
|
|
|
|
|
|
Defaults to 4.
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
#### FAILURE_HANDLER_TIMEOUT
|
|
|
|
|
|
|
|
Sets the argument `-timeoutHandlerTimeout` for JTReg. The default value is 0.
|
|
|
|
This is only valid if the failure handler is built.
|
|
|
|
|
2024-10-23 06:49:46 +00:00
|
|
|
#### TEST_THREAD_FACTORY
|
2023-04-21 13:31:45 +00:00
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
Sets the `-testThreadFactory` for JTReg. It should be the fully qualified
|
|
|
|
classname of a class which implements `java.util.concurrent.ThreadFactory`. One
|
|
|
|
such implementation class, named Virtual, is currently part of the JDK build in
|
|
|
|
the `test/jtreg_test_thread_factory/` directory. This class gets compiled
|
|
|
|
during the test image build. The implementation of the Virtual class creates a
|
|
|
|
new virtual thread for executing each test class.
|
2023-04-21 13:31:45 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
#### TEST_MODE
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2020-02-03 07:30:44 +00:00
|
|
|
The test mode (`agentvm` or `othervm`).
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2020-02-03 07:30:44 +00:00
|
|
|
Defaults to `agentvm`.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
|
|
|
#### ASSERT
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
Enable asserts (`-ea -esa`, or none).
|
|
|
|
|
|
|
|
Set to `true` or `false`. If true, adds `-ea -esa`. Defaults to true, except
|
|
|
|
for hotspot.
|
|
|
|
|
|
|
|
#### VERBOSE
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
The verbosity level (`-verbose`).
|
|
|
|
|
|
|
|
Defaults to `fail,error,summary`.
|
|
|
|
|
|
|
|
#### RETAIN
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
What test data to retain (`-retain`).
|
|
|
|
|
|
|
|
Defaults to `fail,error`.
|
|
|
|
|
|
|
|
#### MAX_MEM
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
Limit memory consumption (`-Xmx` and `-vmoption:-Xmx`, or none).
|
|
|
|
|
2017-06-20 11:12:42 +00:00
|
|
|
Limit memory consumption for JTReg test framework and VM under test. Set to 0
|
2017-04-04 08:19:11 +00:00
|
|
|
to disable the limits.
|
|
|
|
|
|
|
|
Defaults to 512m, except for hotspot, where it defaults to 0 (no limit).
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
#### MAX_OUTPUT
|
|
|
|
|
|
|
|
Set the property `javatest.maxOutputSize` for the launcher, to change the
|
|
|
|
default JTReg log limit.
|
|
|
|
|
2019-01-24 10:15:31 +00:00
|
|
|
#### KEYWORDS
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
JTReg keywords sent to JTReg using `-k`. Please be careful in making sure that
|
2019-01-24 10:15:31 +00:00
|
|
|
spaces and special characters (like `!`) are properly quoted. To avoid some
|
|
|
|
issues, the special value `%20` can be used instead of space.
|
|
|
|
|
|
|
|
#### EXTRA_PROBLEM_LISTS
|
|
|
|
|
|
|
|
Use additional problem lists file or files, in addition to the default
|
|
|
|
ProblemList.txt located at the JTReg test roots.
|
|
|
|
|
|
|
|
If multiple file names are specified, they should be separated by space (or, to
|
|
|
|
help avoid quoting issues, the special value `%20`).
|
|
|
|
|
|
|
|
The file names should be either absolute, or relative to the JTReg test root of
|
|
|
|
the tests to be run.
|
|
|
|
|
2019-07-18 18:47:52 +00:00
|
|
|
#### RUN_PROBLEM_LISTS
|
|
|
|
|
|
|
|
Use the problem lists to select tests instead of excluding them.
|
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
Set to `true` or `false`. If `true`, JTReg will use `-match:` option, otherwise
|
|
|
|
`-exclude:` will be used. Default is `false`.
|
2019-07-18 18:47:52 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
#### OPTIONS
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2017-06-20 11:12:42 +00:00
|
|
|
Additional options to the JTReg test framework.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2017-06-20 11:12:42 +00:00
|
|
|
Use `JTREG="OPTIONS=--help all"` to see all available JTReg options.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
|
|
|
#### JAVA_OPTIONS
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2020-04-28 13:35:41 +00:00
|
|
|
Additional Java options for running test classes (sent to JTReg as
|
|
|
|
`-javaoption`).
|
2017-04-04 08:19:11 +00:00
|
|
|
|
|
|
|
#### VM_OPTIONS
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2020-04-28 13:35:41 +00:00
|
|
|
Additional Java options to be used when compiling and running classes (sent to
|
|
|
|
JTReg as `-vmoption`).
|
|
|
|
|
|
|
|
This option is only needed in special circumstances. To pass Java options to
|
|
|
|
your test classes, use `JAVA_OPTIONS`.
|
2017-04-04 08:19:11 +00:00
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
#### LAUNCHER_OPTIONS
|
|
|
|
|
|
|
|
Additional Java options that are sent to the java launcher that starts the
|
|
|
|
JTReg harness.
|
|
|
|
|
2019-12-06 20:01:53 +00:00
|
|
|
#### RETRY_COUNT
|
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
Retry failed tests up to a set number of times, until they pass. This allows to
|
|
|
|
pass the tests with intermittent failures. Defaults to 0.
|
2019-12-06 20:01:53 +00:00
|
|
|
|
2021-12-07 11:32:17 +00:00
|
|
|
#### REPEAT_COUNT
|
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
Repeat the tests up to a set number of times, stopping at first failure. This
|
|
|
|
helps to reproduce intermittent test failures. Defaults to 0.
|
2021-12-07 11:32:17 +00:00
|
|
|
|
2023-01-06 11:28:38 +00:00
|
|
|
#### REPORT
|
|
|
|
|
|
|
|
Use this report style when reporting test results (sent to JTReg as `-report`).
|
|
|
|
Defaults to `files`.
|
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
### Gtest keywords
|
|
|
|
|
|
|
|
#### REPEAT
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
The number of times to repeat the tests (`--gtest_repeat`).
|
|
|
|
|
|
|
|
Default is 1. Set to -1 to repeat indefinitely. This can be especially useful
|
|
|
|
combined with `OPTIONS=--gtest_break_on_failure` to reproduce an intermittent
|
|
|
|
problem.
|
|
|
|
|
|
|
|
#### OPTIONS
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
Additional options to the Gtest test framework.
|
|
|
|
|
|
|
|
Use `GTEST="OPTIONS=--help"` to see all available Gtest options.
|
|
|
|
|
2018-11-16 22:39:51 +00:00
|
|
|
### Microbenchmark keywords
|
|
|
|
|
|
|
|
#### FORK
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2018-11-16 22:39:51 +00:00
|
|
|
Override the number of benchmark forks to spawn. Same as specifying `-f <num>`.
|
|
|
|
|
|
|
|
#### ITER
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2018-11-16 22:39:51 +00:00
|
|
|
Number of measurement iterations per fork. Same as specifying `-i <num>`.
|
|
|
|
|
|
|
|
#### TIME
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2018-11-16 22:39:51 +00:00
|
|
|
Amount of time to spend in each measurement iteration, in seconds. Same as
|
|
|
|
specifying `-r <num>`
|
|
|
|
|
|
|
|
#### WARMUP_ITER
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2018-11-16 22:39:51 +00:00
|
|
|
Number of warmup iterations to run before the measurement phase in each fork.
|
|
|
|
Same as specifying `-wi <num>`.
|
|
|
|
|
|
|
|
#### WARMUP_TIME
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
Amount of time to spend in each warmup iteration. Same as specifying `-w
|
|
|
|
<num>`.
|
2018-11-16 22:39:51 +00:00
|
|
|
|
|
|
|
#### RESULTS_FORMAT
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2018-11-16 22:39:51 +00:00
|
|
|
Specify to have the test run save a log of the values. Accepts the same values
|
|
|
|
as `-rff`, i.e., `text`, `csv`, `scsv`, `json`, or `latex`.
|
|
|
|
|
|
|
|
#### VM_OPTIONS
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2018-11-16 22:39:51 +00:00
|
|
|
Additional VM arguments to provide to forked off VMs. Same as `-jvmArgs <args>`
|
|
|
|
|
|
|
|
#### OPTIONS
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2018-11-16 22:39:51 +00:00
|
|
|
Additional arguments to send to JMH.
|
|
|
|
|
2019-04-09 13:11:54 +00:00
|
|
|
## Notes for Specific Tests
|
|
|
|
|
|
|
|
### Docker Tests
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
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:
|
2019-04-09 13:11:54 +00:00
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
```
|
|
|
|
$ make test TEST="jtreg:test/hotspot/jtreg/containers/docker"
|
|
|
|
```
|
2019-04-09 13:11:54 +00:00
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
To run these tests correctly, additional parameters for the correct docker
|
|
|
|
image are required on Ubuntu 18.04 by using `JAVA_OPTIONS`.
|
2019-04-09 13:11:54 +00:00
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
```
|
|
|
|
$ make test TEST="jtreg:test/hotspot/jtreg/containers/docker" \
|
|
|
|
JTREG="JAVA_OPTIONS=-Djdk.test.docker.image.name=ubuntu
|
|
|
|
-Djdk.test.docker.image.version=latest"
|
|
|
|
```
|
2019-04-09 13:11:54 +00:00
|
|
|
|
2019-04-17 20:18:29 +00:00
|
|
|
### Non-US locale
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
If your locale is non-US, some tests are likely to fail. To work around this
|
|
|
|
you can set the locale to US. On Unix platforms simply setting `LANG="en_US"`
|
2024-05-28 17:07:27 +00:00
|
|
|
in the environment before running tests should work. On Windows or macOS,
|
2023-11-17 18:09:56 +00:00
|
|
|
setting `JTREG="VM_OPTIONS=-Duser.language=en -Duser.country=US"` helps for
|
|
|
|
most, but not all test cases.
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2019-04-17 20:18:29 +00:00
|
|
|
For example:
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
```
|
|
|
|
$ export LANG="en_US" && make test TEST=...
|
|
|
|
$ make test JTREG="VM_OPTIONS=-Duser.language=en -Duser.country=US" TEST=...
|
|
|
|
```
|
2019-04-17 20:18:29 +00:00
|
|
|
|
2019-09-24 03:39:47 +00:00
|
|
|
### PKCS11 Tests
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
It is highly recommended to use the latest NSS version when running PKCS11
|
|
|
|
tests. Improper NSS version may lead to unexpected failures which are hard to
|
|
|
|
diagnose. For example, sun/security/pkcs11/Secmod/AddTrustedCert.java may fail
|
|
|
|
on Ubuntu 18.04 with the default NSS version in the system. To run these tests
|
2023-11-22 13:00:56 +00:00
|
|
|
correctly, the system property `jdk.test.lib.artifacts.<NAME>` is required on
|
|
|
|
Ubuntu 18.04 to specify the alternative NSS lib directory. The `<NAME>`
|
|
|
|
component should be replaced with the name element of the appropriate
|
|
|
|
`@Artifact` class. (See `test/jdk/sun/security/pkcs11/PKCS11Test.java`)
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2019-09-24 03:39:47 +00:00
|
|
|
For example:
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
```
|
|
|
|
$ make test TEST="jtreg:sun/security/pkcs11/Secmod/AddTrustedCert.java" \
|
2023-11-22 13:00:56 +00:00
|
|
|
JTREG="JAVA_OPTIONS=-Djdk.test.lib.artifacts.nsslib-linux_aarch64=/path/to/NSS-libs"
|
2020-06-25 16:35:40 +00:00
|
|
|
```
|
2019-09-24 03:39:47 +00:00
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
For more notes about the PKCS11 tests, please refer to
|
|
|
|
test/jdk/sun/security/pkcs11/README.
|
2019-09-24 03:39:47 +00:00
|
|
|
|
2024-10-30 18:51:02 +00:00
|
|
|
### Testing with alternative security providers
|
|
|
|
|
|
|
|
Some security tests use a hardcoded provider for `KeyFactory`, `Cipher`,
|
|
|
|
`KeyPairGenerator`, `KeyGenerator`, `AlgorithmParameterGenerator`,
|
|
|
|
`KeyAgreement`, `Mac`, `MessageDigest`, `SecureRandom`, `Signature`,
|
|
|
|
`AlgorithmParameters`, `Configuration`, `Policy`, or `SecretKeyFactory` objects.
|
|
|
|
Specify the `-Dtest.provider.name=NAME` property to use a different provider for
|
|
|
|
the service(s).
|
|
|
|
|
2019-11-05 10:11:18 +00:00
|
|
|
### Client UI Tests
|
|
|
|
|
2023-02-28 19:50:49 +00:00
|
|
|
#### System key shortcuts
|
|
|
|
|
2019-11-05 10:11:18 +00:00
|
|
|
Some Client UI tests use key sequences which may be reserved by the operating
|
2020-06-25 16:35:40 +00:00
|
|
|
system. Usually that causes the test failure. So it is highly recommended to
|
|
|
|
disable system key shortcuts prior testing. The steps to access and disable
|
|
|
|
system key shortcuts for various platforms are provided below.
|
2019-11-05 10:11:18 +00:00
|
|
|
|
2023-02-28 19:50:49 +00:00
|
|
|
##### macOS
|
2020-06-25 16:35:40 +00:00
|
|
|
|
2019-11-05 10:11:18 +00:00
|
|
|
Choose Apple menu; System Preferences, click Keyboard, then click Shortcuts;
|
|
|
|
select or deselect desired shortcut.
|
|
|
|
|
2020-06-25 16:35:40 +00:00
|
|
|
For example,
|
|
|
|
test/jdk/javax/swing/TooltipManager/JMenuItemToolTipKeyBindingsTest/JMenuItemToolTipKeyBindingsTest.java
|
2024-05-28 17:07:27 +00:00
|
|
|
fails on macOS because it uses `CTRL + F1` key sequence to show or hide tooltip
|
2020-06-25 16:35:40 +00:00
|
|
|
message but the key combination is reserved by the operating system. To run the
|
|
|
|
test correctly the default global key shortcut should be disabled using the
|
|
|
|
steps described above, and then deselect "Turn keyboard access on or off"
|
|
|
|
option which is responsible for `CTRL + F1` combination.
|
2019-11-05 10:11:18 +00:00
|
|
|
|
2023-02-28 19:50:49 +00:00
|
|
|
##### Linux
|
2020-06-25 16:35:40 +00:00
|
|
|
|
|
|
|
Open the Activities overview and start typing Settings; Choose Settings, click
|
|
|
|
Devices, then click Keyboard; set or override desired shortcut.
|
2019-11-05 10:11:18 +00:00
|
|
|
|
2023-02-28 19:50:49 +00:00
|
|
|
##### Windows
|
2020-06-25 16:35:40 +00:00
|
|
|
|
|
|
|
Type `gpedit` in the Search and then click Edit group policy; navigate to User
|
|
|
|
Configuration -> Administrative Templates -> Windows Components -> File
|
|
|
|
Explorer; in the right-side pane look for "Turn off Windows key hotkeys" and
|
|
|
|
double click on it; enable or disable hotkeys.
|
2019-11-05 10:11:18 +00:00
|
|
|
|
|
|
|
Note: restart is required to make the settings take effect.
|
|
|
|
|
2023-02-28 19:50:49 +00:00
|
|
|
#### Robot API
|
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
Most automated Client UI tests use `Robot` API to control the UI. Usually, the
|
|
|
|
default operating system settings need to be adjusted for Robot to work
|
|
|
|
correctly. The detailed steps how to access and update these settings for
|
|
|
|
different platforms are provided below.
|
2023-02-28 19:50:49 +00:00
|
|
|
|
|
|
|
##### macOS
|
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
`Robot` is not permitted to control your Mac by default since macOS 10.15. To
|
|
|
|
allow it, choose Apple menu -> System Settings, click Privacy & Security; then
|
|
|
|
click Accessibility and ensure the following apps are allowed to control your
|
|
|
|
computer: *Java* and *Terminal*. If the tests are run from an IDE, the IDE
|
|
|
|
should be granted this permission too.
|
2023-02-28 19:50:49 +00:00
|
|
|
|
|
|
|
##### Windows
|
|
|
|
|
|
|
|
On Windows if Cygwin terminal is used to run the tests, there is a delay in
|
|
|
|
focus transfer. Usually it causes automated UI test failure. To disable the
|
|
|
|
delay, type `regedit` in the Search and then select Registry Editor; navigate
|
2023-11-17 18:09:56 +00:00
|
|
|
to the following key: `HKEY_CURRENT_USER\Control Panel\Desktop`; make sure the
|
|
|
|
`ForegroundLockTimeout` value is set to 0.
|
2023-02-28 19:50:49 +00:00
|
|
|
|
2023-11-17 18:09:56 +00:00
|
|
|
Additional information about Client UI tests configuration for various
|
|
|
|
operating systems can be obtained at [Automated client GUI testing system set
|
|
|
|
up
|
2023-02-28 19:50:49 +00:00
|
|
|
requirements](https://wiki.openjdk.org/display/ClientLibs/Automated+client+GUI+testing+system+set+up+requirements)
|
|
|
|
|
2022-09-01 16:39:22 +00:00
|
|
|
## Editing this document
|
|
|
|
|
2022-10-12 13:31:54 +00:00
|
|
|
If you want to contribute changes to this document, edit `doc/testing.md` and
|
|
|
|
then run `make update-build-docs` to generate the same changes in
|
2022-09-01 16:39:22 +00:00
|
|
|
`doc/testing.html`.
|
|
|
|
|
2017-04-04 08:19:11 +00:00
|
|
|
---
|
2017-05-03 06:46:37 +00:00
|
|
|
# Override some definitions in the global css file that are not optimal for
|
|
|
|
# this document.
|
2017-04-04 08:19:11 +00:00
|
|
|
header-includes:
|
|
|
|
- '<style type="text/css">pre, code, tt { color: #1d6ae5; }</style>'
|
|
|
|
---
|