Re: [PATCH 1/3 RFC v2] selftests: introduce testing abstractions

2013-04-26 Thread Alexandru Copot
On Thu, Apr 25, 2013 at 9:19 PM, Daniel Borkmann wrote: > Usually I associate sth named assert() that it does an ungraceful exit. > Maybe __test() or __check()? This looks like a good idea, will do. >> + va_list vl; >> + const char *m; >> + char msg[BUFSIZ]; >> + >> + if

Re: [PATCH 1/3 RFC v2] selftests: introduce testing abstractions

2013-04-26 Thread Alexandru Copot
On Thu, Apr 25, 2013 at 9:19 PM, Daniel Borkmann dbork...@redhat.com wrote: Usually I associate sth named assert() that it does an ungraceful exit. Maybe __test() or __check()? This looks like a good idea, will do. + va_list vl; + const char *m; + char msg[BUFSIZ]; + +

Re: [PATCH 1/3 RFC v2] selftests: introduce testing abstractions

2013-04-25 Thread Daniel Borkmann
On 04/25/2013 01:04 PM, Alexandru Copot wrote: Signed-of-by Alexandru Copot Cc: Daniel Baluta --- tools/testing/selftests/Makefile| 3 +- tools/testing/selftests/lib/Makefile| 14 +++ tools/testing/selftests/lib/selftests.c | 57

[PATCH 1/3 RFC v2] selftests: introduce testing abstractions

2013-04-25 Thread Alexandru Copot
Signed-of-by Alexandru Copot Cc: Daniel Baluta --- tools/testing/selftests/Makefile| 3 +- tools/testing/selftests/lib/Makefile| 14 +++ tools/testing/selftests/lib/selftests.c | 57 tools/testing/selftests/lib/selftests.h | 67

[PATCH 1/3 RFC v2] selftests: introduce testing abstractions

2013-04-25 Thread Alexandru Copot
Signed-of-by Alexandru Copot alex.miha...@gmail.com Cc: Daniel Baluta dbal...@ixiacom.com --- tools/testing/selftests/Makefile| 3 +- tools/testing/selftests/lib/Makefile| 14 +++ tools/testing/selftests/lib/selftests.c | 57

Re: [PATCH 1/3 RFC v2] selftests: introduce testing abstractions

2013-04-25 Thread Daniel Borkmann
On 04/25/2013 01:04 PM, Alexandru Copot wrote: Signed-of-by Alexandru Copot alex.miha...@gmail.com Cc: Daniel Baluta dbal...@ixiacom.com --- tools/testing/selftests/Makefile| 3 +- tools/testing/selftests/lib/Makefile| 14 +++ tools/testing/selftests/lib/selftests.c | 57