Introduce TEST_MACROS
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest10 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | lib: Introduce more TEST_* macrosinclude/ include/ lib/ +4 more | +258 | 3 replies | |
| 1/10 | lib: Introduce more TEST_* macros | +0 | 0 replies | |
| 1/10 | lib: Introduce more TEST_* macros | +0 | 0 replies | |
| 1/10 | lib: Introduce more TEST_* macros | +0 | 1 reply | |
| 1/10 | lib: Introduce more TEST_* macros | +0 | 1 reply | |
| 1/10 | lib: Introduce more TEST_* macros | +0 | 1 reply | |
| 2/10 | syscalls/uname: Make use of TEST_MACROStestcases/ testcases/ | +4 | 0 replies | |
| 3/10 | syscalls/accept: Make use of TEST_MACROStestcases/ | +2 | 0 replies | |
| 4/10 | syscalls/access: Make use of TEST_MACROStestcases/ testcases/ testcases/ | +14 | 0 replies | |
| 5/10 | syscalls/bind: Make use of TEST_MACROStestcases/ testcases/ testcases/ +2 more | +15 | 0 replies | |
| 6/10 | syscalls/brk01: Make use of TEST_MACROStestcases/ | +1 | 0 replies | |
| 7/10 | syscalls/cacheflush: Make use of TEST_MACROStestcases/ | +2 | 0 replies | |
| 8/10 | syscalls/capget: Make use of TEST_MACROStestcases/ testcases/ | +14 | 0 replies | |
| 9/10 | syscalls/capset: Make use of TEST_MACROStestcases/ testcases/ testcases/ +1 more | +18 | 0 replies | |
| 10/10 | syscalls/open: Make use of TEST_MACROStestcases/ testcases/ testcases/ | +20 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [LTP] [PATCH 00/10] Introduce TEST_MACROS
This is a RFC for a TEST_MACROS() implementation.
These macros are intended to simplify and unify syscall unit tests.
This patchset converts a few testcases to use TEST_MACROS it's intenteded to serve as an example since there is a lot of testcases that could use them as well.
Also the documentation for these macros is ommited at this point, I will add it in a case that we agree to include them in the test library.
Cyril Hrubis (10):
lib: Introduce more TEST_* macros
syscalls/uname: Make use of TEST_MACROS
syscalls/accept: Make use of TEST_MACROS
syscalls/access: Make use of TEST_MACROS
syscalls/bind: Make use of TEST_MACROS
syscalls/brk01: Make use of TEST_MACROS
syscalls/cacheflush: Make use of TEST_MACROS
syscalls/capget: Make use of TEST_MACROS
syscalls/capset: Make use of TEST_MACROS
syscalls/open: Make use of TEST_MACROS
include/tst_test.h | 28 +--- include/tst_test_macros.h | 131 ++++++++++++++++++ lib/newlib_tests/.gitignore | 3 + lib/newlib_tests/test_macros01.c | 40 ++++++ lib/newlib_tests/test_macros02.c | 42 ++++++ lib/newlib_tests/test_macros03.c | 40 ++++++ lib/tst_test.c | 1 + testcases/kernel/syscalls/accept/accept01.c | 17 +-- testcases/kernel/syscalls/access/access01.c | 43 +----- testcases/kernel/syscalls/access/access02.c | 8 +- testcases/kernel/syscalls/access/access03.c | 28 +--- testcases/kernel/syscalls/bind/bind01.c | 12 +- testcases/kernel/syscalls/bind/bind02.c | 11 +- testcases/kernel/syscalls/bind/bind03.c | 26 +--- testcases/kernel/syscalls/bind/bind04.c | 5 +- testcases/kernel/syscalls/bind/bind05.c | 5 +- testcases/kernel/syscalls/brk/brk01.c | 9 +- .../kernel/syscalls/cacheflush/cacheflush01.c | 8 +- testcases/kernel/syscalls/capget/capget01.c | 17 +-- testcases/kernel/syscalls/capget/capget02.c | 26 ++-- testcases/kernel/syscalls/capset/capset01.c | 14 +- testcases/kernel/syscalls/capset/capset02.c | 28 ++-- testcases/kernel/syscalls/capset/capset03.c | 10 +- testcases/kernel/syscalls/capset/capset04.c | 13 +- testcases/kernel/syscalls/open/open01.c | 11 +- testcases/kernel/syscalls/open/open02.c | 25 +--- testcases/kernel/syscalls/open/open11.c | 22 ++- testcases/kernel/syscalls/uname/uname01.c | 13 +- testcases/kernel/syscalls/uname/uname02.c | 17 +-- 29 files changed, 348 insertions(+), 305 deletions(-) create mode 100644 include/tst_test_macros.h create mode 100644 lib/newlib_tests/test_macros01.c create mode 100644 lib/newlib_tests/test_macros02.c create mode 100644 lib/newlib_tests/test_macros03.c
Signature · 1 line
2.26.2