Repository navigation
505/examples/cleanup - #506
Merged
Merged
Conversation
Also fixed formatting.
Also added clean as a prereq for tests. I ran into a problem switching between branches where .beam files from different branches had accumulated in ./test and were causing all sorts of test failures.
oubiwann
force-pushed
the
505/examples/cleanup
branch
from
November 13, 2025 16:20
d3e39bc to
19ef223
Compare
oubiwann
marked this pull request as ready for review
November 13, 2025 16:20
Member
Author
|
Note that in this branch I've also updated the clean:
- rm -rf $(EBINDIR)/*.beam erl_crash.dump comp_opts.mk
+ rm -rf $(EBINDIR)/*.beam erl_crash.dump comp_opts.mk test/*.beam
-tests:
+tests: clean
@rebar3 as test do compile,eunit,eunit,proper -n 20, ctThe reason for this: I ran into a problem switching between branches where |
Member
Author
|
Tests are passing locally (macos) but not in CI/CD (linux); looking into this ... |
Member
Author
|
Okay, got tests for examples working in CI/CD -- this is ready for review! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #505
This changeset represents a comprehensive effort to add automated test coverage to the 22 examples in the LFE examples directory, along with fixing some examples that had accumulated bitrot over time.
This change includes a new
test/examples_SUITE.lfefile, which provides some good CT coverage for the examples, providing us with more confidence that changes in LFE will be maintained in the examples. The test suite includes both compilation tests (verifying that each example compiles without errors) and functional tests (verifying that examples actually execute correctly and produce expected results).Following Lisp conventions, some files were renamed files from underscores to hyphens:
There were some new Erlang APIs, deprecations, formatting issues, etc., that were also addressed in this change.