Re: [RFC v2 01/14] kunit: test: add KUnit test runner core

2018-11-07 Thread Shuah Khan
On 11/06/2018 06:28 PM, Brendan Higgins wrote: > On Fri, Nov 2, 2018 at 11:44 AM Shuah Khan wrote: >> >> On 10/23/2018 05:57 PM, Brendan Higgins wrote: > >>> + * Example: >>> + * >>> + * .. code-block:: c >>> + * >>> + * void add_test_basic(struct test *test) >>> + * { >>> + * TEST_

Re: [RFC v2 01/14] kunit: test: add KUnit test runner core

2018-11-06 Thread Brendan Higgins
On Fri, Nov 2, 2018 at 11:44 AM Shuah Khan wrote: > > On 10/23/2018 05:57 PM, Brendan Higgins wrote: > > + * Example: > > + * > > + * .. code-block:: c > > + * > > + * void add_test_basic(struct test *test) > > + * { > > + * TEST_EXPECT_EQ(test, 1, add(1, 0)); > > + * TEST

Re: [RFC v2 01/14] kunit: test: add KUnit test runner core

2018-11-02 Thread Shuah Khan
On 10/23/2018 05:57 PM, Brendan Higgins wrote: > Add core facilities for defining unit tests; this provides a common way > to define test cases, functions that execute code which is under test > and determine whether the code under test behaves as expected; this also > provides a way to group toget

[RFC v2 01/14] kunit: test: add KUnit test runner core

2018-10-23 Thread Brendan Higgins
Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and determine whether the code under test behaves as expected; this also provides a way to group together related test cases in test suites (here we call the