selftests/nolibc: allow run nolibc-test locally
authorZhangjin Wu <falcon@tinylab.org>
Sat, 15 Jul 2023 18:35:39 +0000 (02:35 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:40:22 +0000 (04:40 +0200)
commitb81434073b7a113f37f2a2b69c6c28605d4ffb6f
treed01165a480ceb54b1d2ff4aeef4fa8cba5617ec2
parent48967b73f8fe7e64e1d292e963dd45daff4ffa60
selftests/nolibc: allow run nolibc-test locally

It is able to run nolibc-test directly without qemu-user when the target
machine is the same as the host machine.

Sometimes, the result running locally may help a lot when the qemu-user
package is too old.

When the target machine differs from the host machine, it is also able
to run nolibc-test directly with qemu-user-static + binfmt_misc.

Link: https://lore.kernel.org/lkml/ZKutZwIOfy5MqedG@1wt.eu/
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/testing/selftests/nolibc/Makefile