Comments (6)
Those dummy modules need to go away ASAP, and then have Erj be a variation over otp boot, as is the case in BEAM. For now, I renamed them in my master repo, so that they are not in the way of OTP boot.
from erjang.
OK. But we still need some solution for this, without full OTP.
Point in case: We've got a test case (iolist_tests) which uses the unicode BIFs; however, these are not presently usable from the test harness.
One simple solution is to have each test file state which modules it's going to use.
However, I'd like to keep a general way of running small test programs like with Erj.
from erjang.
For non-OTP I think we simply need a variation of EModuleManager which knows how to load modules without using error_handler. I had that originally [using erjpath system property] but then took it out when working on OTP.
from erjang.
The function that needs a variation is EModuleManager.FunctionInfo.makeErrorhandler(). It needs to know if we're not using OTP, in which case it should use erjpath to find the offending module,. ... in fact I already did this
from erjang.
Perhaps this fix http://github.com/krestenkrab/erjang/commit/f9d932da81b96d5d217f0692a03157e0664da15c is enough to make it work for you? I'll try to make your unit tests work again tonight.
from erjang.
Yes, both test cases and OTP booting works fine now. Thank you.
What's missing now is for the comparison test suite to compile the stub modules it needs, but that's another matter.
from erjang.
Related Issues (20)
- Write unit tests for NIF code
- Port JNIF to Windows
- Improve Scheduler HOT 1
- Erjang as a Scripting Language HOT 3
- LFE Interop HOT 3
- Process state vulnerable to race conditions HOT 3
- EFun.hashCode() is abstract HOT 1
- Special-case tuple classes for N>=K where K<=256
- ArrayIndexOutOfBoundsException in EString.make() (from tcp_inet) HOT 1
- TCP driver lifecycle consistency
- is_record/2 not supported? HOT 4
- LFE Can't handle java.lang.String objects from Erjang HOT 4
- Error when quitting LFE shell HOT 3
- Unicode behaviour different between Erlang and Erjang HOT 4
- getBytes and toCharArray raising exceptions
- Tests do not work
- packet_parser_tests fails in R18
- Does it work on windows ?
- ClassFormatError: Too many arguments ... erjang/ETuple256
- is this still alive? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from erjang.