Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Add support for Rust test cases #817

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

anatol1234
Copy link
Contributor

No description provided.

@anatol1234 anatol1234 force-pushed the rust_testcase_support branch 3 times, most recently from e7861c4 to 2e8fb70 Compare November 26, 2017 23:16
@@ -388,6 +397,7 @@
"com.oracle.truffle.llvm.tests.nfi",
"com.oracle.truffle.llvm.tests.sulong",
"com.oracle.truffle.llvm.tests.sulongcpp",
"com.oracle.truffle.llvm.tests.sulongrust",
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't mix spaces and tabs.

@anatol1234 anatol1234 force-pushed the rust_testcase_support branch from e5feb38 to 4890a85 Compare December 5, 2017 21:47
@anatol1234 anatol1234 force-pushed the rust_testcase_support branch 7 times, most recently from 82c9498 to 075ba98 Compare December 20, 2017 22:31
.travis.yml Outdated
@@ -79,7 +82,7 @@ matrix:
jdk: oraclejdk8
- env: GATE_TAGS='gcc_cpp' COMPILE_COMMAND='mx build --dependencies SULONG_TEST'
jdk: oraclejdk8
- env: DOWNSTREAM_REPO='https://github.com/graalvm/graal.git' DOWNSTREAM_SUITE='substratevm' DOWNSTREAM_COMMAND='--dynamicimport sulong gate --tags build,sulong'
- env: DOWNSTREAM_REPO='https://github.com/graalvm/graal.git' DOWNSTREAM_SUITE='substratevm' DOWNSTREAM_COMMAND='--dynamicimport sulong gate --tags build,sulong' SULONG_USE_RUSTC='false'
Copy link
Member

Choose a reason for hiding this comment

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

Why does it not work with substratevm? I think we should rather fix the bug than disable the test.
If it doesn't work with substratevm, it also won't work in the default configuration of the graalvm distribution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is that somewhere the Rust standard library needs to be linked. I configure this in mx_sulong. Does graal dodge the _unittest_config_participant hook in the default configuration?

Copy link
Member

Choose a reason for hiding this comment

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

That's probably a problem with the test harness then. I guess the arguments are not being forwarded correctly between the VM running the test harness and the Sulong VM. I'll take a look at that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Forwarding of arguments has been functioning now for a while. I configured the arguments in testLLVMImage and reactivated Rust for the graalvm gate (formerly substratevm gate).

The changes revolving around LLVMGlobal broke support for the recent Rust versions depending on @std::rt::lang_start_internal. I fixed the intrinsic accordingly and added a gate check for Rust 1.27.1.

@anatol1234 anatol1234 force-pushed the rust_testcase_support branch from 075ba98 to b2f0cfc Compare January 12, 2018 19:39
@anatol1234 anatol1234 force-pushed the rust_testcase_support branch 12 times, most recently from 644003a to 1c4c323 Compare January 27, 2018 22:05
@anatol1234 anatol1234 force-pushed the rust_testcase_support branch from 1c4c323 to da895f1 Compare April 13, 2018 23:23
@anatol1234 anatol1234 force-pushed the rust_testcase_support branch from 5f0855c to 55f1572 Compare July 10, 2018 16:48
@anatol1234 anatol1234 force-pushed the rust_testcase_support branch from 55f1572 to 4a45ad1 Compare July 10, 2018 17:03
@anatol1234 anatol1234 force-pushed the rust_testcase_support branch 3 times, most recently from 153b18d to 835d52c Compare July 12, 2018 22:44
@anatol1234 anatol1234 force-pushed the rust_testcase_support branch from 835d52c to ca34e1a Compare July 13, 2018 00:27
@anatol1234 anatol1234 force-pushed the rust_testcase_support branch from 817c22c to 2d847ba Compare July 13, 2018 14:35
@anatol1234 anatol1234 force-pushed the rust_testcase_support branch 2 times, most recently from e61db49 to 1b34483 Compare July 30, 2018 18:25
@anatol1234 anatol1234 force-pushed the rust_testcase_support branch from 1b34483 to 074465a Compare July 31, 2018 06:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants