-
Notifications
You must be signed in to change notification settings - Fork 802
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
IL Verifiication in the new testing framework #9999
Conversation
vzarytovskii
commented
Aug 25, 2020
•
edited
Loading
edited
- Added some helper functions to the Compiler.fs for IL verification.
- Upgraded to the latest ILAsm/ILDasm, latest versions do not depend on the libcoreclr, and have proper binaries for all platforms.
- Running ILAsm/ILDasm on Linux/macOS as well as windows.
- Migrated couple of tests as an example.
|> compile | ||
|> shouldSucceed | ||
|> verifyIL [""" | ||
.field public static literal int32 x = int32(0x00000007) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For small things like this it's probably fine, but for the larger IL verification tests we'll likely want to keep the baseline files and load them during test running. Could we add an example of that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not supported yet, here's the issue: #10000
I plan to have it working by tomorrow, as a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Looking forward to supporting the baseline files in the future.
* Added IL verification to new framework; Make IL verification work on linux/mac * Do not dispose process, to successfully capture stderr, add timeout