Skip to content

Commit

Permalink
Add ILVerification to test framework (#18255)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinRansom authored Jan 29, 2025
1 parent 2edab12 commit a9f59cd
Show file tree
Hide file tree
Showing 15 changed files with 399 additions and 186 deletions.
16 changes: 8 additions & 8 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,19 @@
],
"rollForward": true
},
"dotnet-ilverify": {
"version": "9.0.0-rc.2.24473.5",
"commands": [
"ilverify"
],
"rollForward": true
},
"fantomas": {
"version": "6.2.3",
"commands": [
"fantomas"
],
"rollForward": true
},
"dotnet-ilverify": {
"version": "9.0.0",
"commands": [
"ilverify"
],
"rollForward": false
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,15 @@ module Events =
|> verifyCompileAndRun
|> shouldSucceed

// NoMT SOURCE=SanityCheck02.fs # SanityCheck02.fs
[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"SanityCheck02.fs"|])>]
let ``SanityCheck02_fs`` compilation =
compilation
|> verifyCompileAndRun
|> shouldSucceed

#if false && !NETCOREAPP && !NETSTANDARD
// SOURCE=SanityCheck02.fs PEVER=/MD # SanityCheck02.fs - /MD
[<Theory; Directory(__SOURCE_DIRECTORY__, Includes=[|"SanityCheck02.fs"|])>]
let ``SanityCheck02_fs_peverify`` compilation =
let ``SanityCheck02`` compilation =
compilation
|> asExe
|> withOptions ["--nowarn:988"]
|> PEVerifier.verifyPEFile
|> PEVerifier.shouldSucceed
#endif
|> verifyCompileAndRun
|> shouldSucceed
|> verifyPEFileWithSystemDlls
|> withOutputContainsAllInOrderWithWildcards [
"All Classes and Methods in*SanityCheck02.exe Verified."
]
Loading

0 comments on commit a9f59cd

Please sign in to comment.