-
Notifications
You must be signed in to change notification settings - Fork 97
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
Stdlib: Reorganize build, test and nix setup #1135
Conversation
Noteworthy changes: * Stdlib sources are in `stdlib/src` tests are in `stdlib/test` docs are in `stdlib/doc` (no more `rm $out/*Test.mo`) * Individual Makefiles in these directories, as well as the three examples in `stdlib/examples/*` * In `stdlib/tests`, auto-generate a test that simply imports all stdlib files. This makes sure the stdlib actually compiles (was not the case before) * Tests and examples use package imports `"mo:stdlib/…"` to import the stdlib, instead of relative paths. The `Makefile`s are set up to point to `./stdlib/src` by default. But when building via nix, we are building against the stdlib as installed by nix * More fine-grained nix setup, so when you just change the examples, or the tests, the `stdlib` derivation does not have to be rebuild. * Runs the tests for `Rx` and `ActorSpec` using `wasmtimes`
Co-Authored-By: Gabor Greif <[email protected]>
…ko into joachim/stdlib/makefile
$(OUTDIR)/profileFastCounts.csv: test/profileFastCounts.mo | ||
$(MOC) $(MOC_OPTIONS) -r test/profileFastCounts.mo > $@ | ||
|
||
profile-interp: \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are nice candidates for patsubst
automation. Till the end of the file...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn’t touch this kinda dead code…
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Also, this PR is identical to #1131 which was already approved :))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's go!
(Resubmission of #1131 with a branch name that doesn’t trip hydra.)
Noteworthy changes:
Stdlib sources are in
stdlib/src
tests are in
stdlib/test
docs are in
stdlib/doc
(no more
rm $out/*Test.mo
)Individual Makefiles in these directories,
as well as the three examples in
stdlib/examples/*
In
stdlib/tests
, auto-generate a test that simply importsall stdlib files. This makes sure the stdlib actually compiles
(was not the case before)
Tests and examples use package imports
"mo:stdlib/…"
to importthe stdlib, instead of relative paths.
The
Makefile
s are set up to point to./stdlib/src
by default. Butwhen building via nix, we are building against the stdlib as
installed by nix
More fine-grained nix setup, so when you just change the examples,
or the tests, the
stdlib
derivation does not have to be rebuild.Runs the tests for
Rx
andActorSpec
usingwasmtimes