selftests/nolibc: add testcases for startup code
authorZhangjin Wu <falcon@tinylab.org>
Sat, 15 Jul 2023 18:34:32 +0000 (02:34 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:40:22 +0000 (04:40 +0200)
commit48967b73f8fe7e64e1d292e963dd45daff4ffa60
tree6fda5e04777f772756e6adcb255d8fb7644380c0
parentfd3a9efde8db4b9e7738d1338c23ac43de723d5f
selftests/nolibc: add testcases for startup code

The startup code is critical to get the right argc, argv, envp/environ
and _auxv, let's add a startup test group and the corresponding
testcases.

The "environ" test case is also moved from the stdlib test group to this
new startup test group and it is renamed to "environ_envp".

Since argv0 has been used by many other test cases, let's add testcases
to gurantee it too.

Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/nolibc-test.c