• Willy Tarreau's avatar
    selftests/nolibc: add a "run" target to start the kernel in QEMU · 662ea60e
    Willy Tarreau authored
    The "run" target will build the kernel and start it in QEMU. The
    "rerun" target will not have the kernel dependency and will just try
    to start QEMU. The QEMU architecture used to start the kernel is
    derived from the configured ARCH. This might need to be improved
    for archs which include different variants under the same name
    (mips vs mipsel, +/-64, riscv32 vs riscv64). This could be tested
    for i386, x86, arm, arm64, mips and riscv (the later two reporting
    issues on some tests).
    
    It is possible to pass a test specification for nolibc-test in the TEST
    variable, which will be passed as-is as NOLIBC_TEST.
    
    On success, the number of successful tests is printed. On failure, failed
    lines are individually printed.
    Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    662ea60e
Makefile 3.44 KB