Skip to content

Latest commit

 

History

History

scala

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

External Scala Tests

Scala tests are part of the external third-party application tests that help verify that the Adoptium binaries are good by running a variety of Java applications inside of Docker containers. Adoptium/aqa-tests/Issue #172 lists the applications that we have initially targeted to best exercise the Adoptium binaries. For each application, we choose to run a selection of their functional tests. Scala tests are pulled from the scala-test-suite repository.

Running Scala tests locally

To run any AQA tests locally, you follow the same pattern:

  1. Ensure your test machine is set up with test prereqs. For external tests, you do need Docker installed.

  2. Download/unpack the SDK you want to your test machine

  3. export TEST_JDK_HOME=</pathToWhereYouInstalledSDK>

  4. git clone https://github.com/adoptium/aqa-tests.git

  5. cd aqa-tests

  6. ./get.sh

  7. cd TKG

  8. export required environment variables, BUILD_LIST and EXTRA_DOCKER_ARGS (export BUILD_LIST=external/scala and export EXTRA_DOCKER_ARGS="-v $TEST_JDK_HOME:/opt/java/openjdk"

  9. make compile (This fetches test material and compiles it, based on build.xml files in the test directories)

  10. make scala_test (When you defined BUILD_LIST to point to a directory in aqa-tests/external, then this is a testCaseName from the playlist.xml file within the directory you chose)

When running these from the command-line, these tests are grouped under a make target called 'external', so 'make external' would run the entire set of tests found in the aqa-tests/external directory. This is unadvisable! Limit what you compile and run, BUILD_LIST=external/<someSubDirectory>, and TARGET=<testCaseNameFromSubdirPlaylist>.

These tests run regularly and results can be found in TRSS Third Party Application view.