Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
test-primops
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Glasgow Haskell Compiler
test-primops
Commits
821ac474
Commit
821ac474
authored
1 month ago
by
Ben Gamari
Browse files
Options
Downloads
Patches
Plain Diff
Add Note summarizing tests and their motivations
parent
ae617cde
No related branches found
No related tags found
1 merge request
!30
gitlab-ci: Use reasonable number of quickcheck tests
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/Main.hs
+20
-0
20 additions, 0 deletions
app/Main.hs
with
20 additions
and
0 deletions
app/Main.hs
+
20
−
0
View file @
821ac474
...
...
@@ -110,6 +110,26 @@ runCompilerTests :: Compiler -> IO ()
runCompilerTests
=
defaultMain
.
testGroup
"compiler"
.
compilerTests
.
staticEvalMethod
-- Note [Tests of test-primops]
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- test-primops contains several classes of tests:
--
-- * the `expression correctness` test is the main act. It generates
-- arbitrary Cmm expressions, compiles and runs them, and checks the
-- result against a reference implementation.
-- * the callish ops correctness test tests callish primops (which
-- the expression correctness test cannot test since applications
-- of such ops are not expressions). Note that this
-- only tests ops which produce a single result.
-- * the `C-Call correctness` tests the correctness of the foreign calls
-- via the C calling convention.
-- * the `quot-rem invariant` tests the consistency between the quot and rem
-- operations.
-- * The mul_may_oflo test verifies the correctness of the the MulMayOflo
-- callish op which is not covered by the callish op correctness` test
-- as it returns two results.
--
main
::
IO
()
main
=
do
let
opts
=
[
Option
(
Proxy
@
GhcPath
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment