Hi Pali, On Sun, 18 Sept 2022 at 13:30, Pali Rohár <p...@kernel.org> wrote: > > On Monday 12 September 2022 17:58:09 Sean Anderson wrote: > > You can use TEST_STATIC from test/export.h this case. > > Now I sent new patch version where I extended comment. > > I have still issue with test framework. Could you help me how to write > that unit test and run it? Scenario should really simple, just check > like this: > > sizes_near(87654321, 87654320) == true; > sizes_near(87654321, 1000) == false;
I suggest copying something like test/lib/sscanf.c and then you can run it in sandbox with 'ut lib <testname>' Regards, Simon