(it also creates unique and somewhat ridiculously sounding name)
Inspired by Sheredom UTEST and UBENCH Please review and respect the copyright and licensing from those repositories.
This is now single platform, and that platform is Windows.
When using (otherwise very good) ubench
and utest
, I experienced issue with Windows platform. Instead of fixing them in two places, I decided to have a single source for common stuff.
Yes, I know that complicates dependency (no more single header) and delivers SPOF's (Single Point Of Failure). But it is also far easier to manage and if things are done properly SPOF become SPOX aka Single Point Of eXcelence.
Also a lot of complex stuff is now removed since there is only onw platform supported.
- soft dependency on dbj--simplelog
- I repeat: that is a soft dependency
- look into ubut_print.h
- I have windows syslog lib, I plan to use in there too, as an option.
- I repeat: that is a soft dependency
- This is Windows only, but not pathologically so
- cmd.exe console colouring solution imposes Windows 10.0.14393 as a minimal version requirement.
- It turns out that might be redundant
- Just place
system(" ")
in your main (that is a single space in there)
- Originals feature"fixtures" is removed
- both
UBENCH_MAIN()
andUTEST_MAIN()
are removed. Please see the comment on the bottom ofubench.h
andutest.h
Having both UTEST and UBENCH function in the same project might or might not work. Testing of that is in motion.