Within an OpenJDK forest, the langtools/ and jdk/ repositories each have a test/ directory. The directory and its contents will be created automatically when you clone either of those repositories.
The jdk/test directory contains tests for the main JRE API and related tools. The langtools/test directory contains tests for the javac, javadoc, javah and javap tools.