-
Notifications
You must be signed in to change notification settings - Fork 109
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
Tests.ex: 'Invalid filename' when adding test modules #1479
Comments
If you look in tests/libs directory there are tests bundles to test each library. I would add a exavmlib directory there, and pack the tests with the atomvmlib libraries. Then just make sure the CMakeLists.txt packs the standard + exavmlib with the test, see here: AtomVM/tests/libs/eavmlib/CMakeLists.txt Line 35 in a00098a
|
Yeah, but this is already done here for Tests.ex (it's the initial elixir testing) https://github.com/atomvm/AtomVM/blob/a00098a09055ef5751e409bedc18381a6f7f66e4/tests/libs/exavmlib/CMakeLists.txt but something isn't quite right.. hopefully some oversight by me.. |
You should be adding your test modules here in this file too, like the eavmlib tests: |
No, never mind that previous comment, I didn't realize all of the tests were in a single module called |
So did you try putting |
I've tried it all, but it does seem like I should try and port |
Yes! I believe this is it. I started comparing the differences and this it the same conclusion I came to. That macro packs together all of the test modules into a single test application, which is what we need to happen for extra Elixir test modules, otherwise it will only find the Tests module itself. |
the bug is in the nested/sub modules, eg. |
For more elixir testing we need to use various test modules in Tests.ex.
TIL sub/nested modules included in Tests.ex, doesn't work due using elixirc for compilation.
In #1476 I include them in exavmlib (they will go in own testexavmlib, but to minimise moving parts while resolving this issue, they are in exavmlib).
This leads to these warnings: (failing to parse filename?)
Tests/runtime still works, however when crashing with a stacktrace, it will segfault due to filenames having been set to NULL.
Any guidance?
The text was updated successfully, but these errors were encountered: