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

Simplified test suite that runs on Windows and MacOS #238

Merged
merged 5 commits into from
May 21, 2023

Conversation

sergv
Copy link
Contributor

@sergv sergv commented May 13, 2023

As discussed in #84, it's good idea to add test suite before messing with code generation that would interplay with C preprocessor. This test suite also runs Linux builds to help establish whether it's working at all as opposed to not working due to some Windows-related issue.

What's missing is that tests run with the C preprocessor that comes bundled with GHC. As outlined deep in #84, some issues were present with cpphs preprocessor that Agda used at the time.

It seems test suite could be parameterised by the C preprocessor, but it seems it would be best done on a test suite that uses testing framework like tasty. That would bring other benefits like being able to run specific tests through command-line selectors. Perhaps the makefile-based test suite is overdue to be updated?

Copy link
Member

@andreasabel andreasabel left a comment

Choose a reason for hiding this comment

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

Great!

One change: the haddock invocation does not work yet.

.github/workflows/haskell-ci-simple.yml Outdated Show resolved Hide resolved
@andreasabel andreasabel self-assigned this May 14, 2023
@andreasabel andreasabel added this to the 3.3.0 milestone May 14, 2023
Copy link
Member

@andreasabel andreasabel left a comment

Choose a reason for hiding this comment

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

Thanks for fixing the haddock step!
Could you have a look whether 9.4.5 works with the latest setup action?
haskell-actions/setup@v2

.github/workflows/haskell-ci-simple.yml Outdated Show resolved Hide resolved
@andreasabel andreasabel removed this from the 3.3.0 milestone May 14, 2023
@sergv
Copy link
Contributor Author

sergv commented May 20, 2023

@andreasabel Looks like haskell-actions/setup@v2 works with GHC 9.4.5.

@andreasabel andreasabel merged commit 1033985 into haskell:master May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants