Book Image

OpenJDK Cookbook

Book Image

OpenJDK Cookbook

Overview of this book

Table of Contents (20 chapters)
OpenJDK Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Running tests using the downloaded or the built version of jtreg


The simplest way to get started with jtreg is to just download it, unpack it, and run some tests. In this recipe, we will do exactly that, without doing any additional things such as building it from the source code or trying to create our own tests.

Getting ready

For this recipe, nothing much is really required—just the Internet connection, a machine with an installed or built OpenJDK, and the OpenJDK source code. In a Windows environment, Cygwin has to be installed in your machine.

How to do it...

The following are a few simple steps to get a set of tests executed by jtreg:

  1. If jtreg is not yet available on the machine, go to the official page of jtreg (https://adopt-openjdk.ci.cloudbees.com/job/jtreg/lastSuccessfulBuild/artifact/) and download the latest available version of jtreg. The other option is to build it from the source code. To do this, follow the instructions in the Building Jtreg from the source recipe that is covered...