Jana,

I'm working on IP broadcast and trying to write some testing code for it.
I have the following problem: changed files are in the
uspace/srv/inet/inetsrv/ directory,
testing code must be in uspace/app/ directory, and I can't figure out
how to do the linking correctly without moving inetsrv code (with all 
dependencies)
into libc.

It is true that there is currently no nice infrastructure for unit tests. Thus, if your intention is to have some internal unit tests of inetsrv, you need to incorporate them directly into inetsrv (guarded by some preprocessor macros so that they run only if desired).

On the other hand, if you intend to have same client-side tests of the broadcast mechanism, you should create an API for the new functionality (using IPC on the inetsrv side and wrapper functions on the libc side) and then implement a test in uspace/app. You need to create the API eventually.

By the way, are these functions (in uspace/srv/inet/inetsrv) meant to be
called directly, or through IPC subsystem?

Of course through IPC.

From the source code, it looks like the former

Really? Which functions from inetsrv are called directly (and how) from somewhere else?


M.D.

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to