tboox / tbox

🎁 A glib-like multi-platform c library
https://docs.tboox.org
Apache License 2.0
4.84k stars 719 forks source link

Using tbox in embedded platform #132

Open nandra opened 4 years ago

nandra commented 4 years ago

Hi,

thanks for nice work. I browsed through library and seems interesting. Is there some embedded project which using this library? I'm in process of define and write some generic embedded framework and maybe can re-use this library. What I'm lacking is missing unit test for most of functions. Would be accepted some pull requests with some tests added? Thanks a lot.

Marek

waruqi commented 4 years ago

There are currently some Linux-based embedded projects in use, but not many.

And I need to simply implement the unit test framework in src/tests in these days before I can accept the test-related pr.

nandra commented 4 years ago

I mean bare metal using like without OS or with some RTOS. Which unittest framework you plan to add? Thanks.

waruqi commented 4 years ago

I mean bare metal using like without OS or with some RTOS

I have not tested it on rtos, you may need to write some platform codes (src/tbox/platform/) to support them.

Which unittest framework you plan to add?

Not sure yet, I might write it myself

nandra commented 4 years ago

OK thanks for response.

RussellHaley commented 3 years ago

I've used Unity very successfully to unit test C code for an STM32 device on Linux and Windows. The only thing I didn't like is it completely controls all output so you have to use an external tool to create log files. There was also no traceability tools for verification processes, but that's a different problem.

laoshaw commented 2 years ago

Is tbox an alternative to glib that is normally for desktop applications? glib is widely used there and I actually feel tbox might be of great use in embedded space, either way it needs to have enough test cases.

where is tbox mainly used these days?