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

IL Verifiication in the new testing framework #9999

Merged
merged 2 commits into from
Aug 25, 2020

Conversation

vzarytovskii
Copy link
Member

@vzarytovskii vzarytovskii commented Aug 25, 2020

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

@vzarytovskii vzarytovskii added this to the Testing Overhaul milestone Aug 25, 2020
|> compile
|> shouldSucceed
|> verifyIL ["""
.field public static literal int32 x = int32(0x00000007)
Copy link
Contributor

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?

Copy link
Member Author

@vzarytovskii vzarytovskii Aug 25, 2020

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

Copy link
Contributor

@TIHan TIHan left a 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.

@cartermp cartermp merged commit 8131abe into dotnet:main Aug 25, 2020
nosami pushed a commit to xamarin/visualfsharp that referenced this pull request Feb 23, 2021
* Added IL verification to new framework; Make IL verification work on linux/mac

* Do not dispose process, to successfully capture stderr, add timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants