Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add README, test.properties files #2538

Merged
merged 4 commits into from
Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions external/jacoco/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Running External tests locally
mara-ber marked this conversation as resolved.
Show resolved Hide resolved
To run any AQA tests locally, you follow the same pattern:

Ensure your test machine is set up with test prereqs. For external tests, you do need Docker installed.
mara-ber marked this conversation as resolved.
Show resolved Hide resolved

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

2. export TEST_JDK_HOME=</pathToWhereYouInstalledSDK>

3. git clone https://github.com/AdoptOpenJDK/openjdk-tests.git

4. cd openjdk-tests

5. ./get.sh

6. cd TKG

7. export required environment variables, BUILD_LIST and EXTRA_DOCKER_ARGS (<export BUILD_LIST=external/jacoco> and <export EXTRA_DOCKER_ARGS="-v $TEST_JDK_HOME:/opt/java/openjdk">)

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

9.<make _jacoco_test> (When you defined BUILD_LIST to point to a directory in openjdk-tests/external, then this is a testCaseName from the playlist.xml file within the directory you chose)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also add following part as the last section:

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 openjdk-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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also please update the layout. See the example https://github.com/AdoptOpenJDK/openjdk-tests/pull/2473/files

51 changes: 0 additions & 51 deletions external/jacoco/dockerfile/Dockerfile

This file was deleted.

4 changes: 3 additions & 1 deletion external/jacoco/dockerfile/jacoco-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ echo "Build jacoco completed"
find ./ -type d -name 'surefire-reports' -exec cp -r "{}" /testResults \;
echo "Test results copied"

exit $test_exit_code
exit $test_exit_code

mara-ber marked this conversation as resolved.
Show resolved Hide resolved

14 changes: 14 additions & 0 deletions external/jacoco/test.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
github_url="https://github.com/jacoco/jacoco.git"
script="jacoco-test.sh"
mara-ber marked this conversation as resolved.
Show resolved Hide resolved
test_results="testResults"
tag_version="master"
environment_variable="MODE=\"java\""
debian_packages="git maven"
debianslim_packages="${debian_packages}"
ubuntu_packages="${debian_packages}"
alpine_packages="git maven"
centos_packages="git maven"
clefos_packages="${centos_packages}"
ubi_packages="git maven"
ubi_minimal_packages="${ubi_packages}"
;;
mara-ber marked this conversation as resolved.
Show resolved Hide resolved