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

[QUESTION] nativeTest with runtime arguments? #604

Open
cmeiklejohn-dd opened this issue Jun 14, 2024 · 1 comment
Open

[QUESTION] nativeTest with runtime arguments? #604

cmeiklejohn-dd opened this issue Jun 14, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@cmeiklejohn-dd
Copy link

Describe the problem
Is there a way to configure the native tests to set system properties -- as you can do when building and running the native image?

System Info (please complete the following information):

  • OS: Linux
  • GraalVM Version: Oracle GraalVM 22.0
  • Java Version: 17
  • Plugin version: 0.9.28

To Reproduce
set runtimeArgs = "-Dproperty_name=true" and run ./gradlew nativeTest -- execution will invoke the test binary without the system property flag.

@cmeiklejohn-dd cmeiklejohn-dd added the question Further information is requested label Jun 14, 2024
@vjovanov
Copy link
Member

vjovanov commented Jul 1, 2024

Have you tried doing the following in the gradle build:

        named("test") {
            runtimeArgs.add("-Dproperty_name=true")
        }

If this does not work, please provide relevant commands that were executed so we can inspect what happened. Even better would be to provide a reproducer as a github repo.

@vjovanov vjovanov self-assigned this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants