public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] selftests/nolibc: add misc improvments
@ 2023-08-05  6:09 Zhangjin Wu
  2023-08-05  6:11 ` [PATCH v2 1/3] selftests/nolibc: allow report with existing test log Zhangjin Wu
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Zhangjin Wu @ 2023-08-05  6:09 UTC (permalink / raw)
  To: thomas, w; +Cc: falcon, arnd, linux-kernel, linux-kselftest

Hi, Willy, Hi Thomas

Based on Thomas' suggestion, V2 comes here with relative path support
for O= option, v1 is [1].

    // subdir
    $ pwd
    /labs/linux-lab/src/linux-stable/tools/testing/selftests/nolibc
    $ mkdir -p out
    $ make run-user O=out -C /labs/linux-lab/src/linux-stable/tools/testing/selftests/nolibc/ -j4 | grep status
    Makefile:122: srctree=/labs/linux-lab/src/linux-stable
    Makefile:123: objtree: out
    Makefile:124: COMMAND_O: O=/labs/linux-lab/src/linux-stable/tools/testing/selftests/nolibc/out
    Makefile:125: OUTPUT=/labs/linux-lab/src/linux-stable/tools/testing/selftests/nolibc/out/
    166 test(s): 158 passed,   8 skipped,   0 failed => status: warning

    // topdir
    $ pwd
    /labs/linux-lab/src/linux-stable
    $ mkdir -p out
    $ make run-user O=out -C /labs/linux-lab/src/linux-stable/tools/testing/selftests/nolibc/ -j4 | grep status
    Makefile:122: srctree=/labs/linux-lab/src/linux-stable
    Makefile:123: objtree: out
    Makefile:124: COMMAND_O: O=/labs/linux-lab/src/linux-stable/out
    Makefile:125: OUTPUT=/labs/linux-lab/src/linux-stable/out/
    166 test(s): 158 passed,   8 skipped,   0 failed => status: warning

    // outside
    $ pwd
    /labs/linux-lab/build
    $ mkdir -p out
    $ make run-user O=out -C /labs/linux-lab/src/linux-stable/tools/testing/selftests/nolibc/ -j4 | grep status
    Makefile:122: srctree=/labs/linux-lab/src/linux-stable
    Makefile:123: objtree: out
    Makefile:124: COMMAND_O: O=/labs/linux-lab/build/out
    Makefile:125: OUTPUT=/labs/linux-lab/build/out/
    166 test(s): 158 passed,   8 skipped,   0 failed => status: warning

Changes from v1 --> v2:

* selftests/nolibc: allow report with existing test log
  tools/nolibc: stackprotector.h: make __stack_chk_init static

    Add Reviewed-by line from Thomas

* selftests/nolibc: fix up O= option support

    Now with relative path support with the help of $(COMMAND_O).

    Suggested by Thomas.

Thanks!
Zhangjin
---
[1]: https://lore.kernel.org/lkml/cover.1691073180.git.falcon@tinylab.org/

Zhangjin Wu (3):
  selftests/nolibc: allow report with existing test log
  tools/nolibc: stackprotector.h: make __stack_chk_init static
  selftests/nolibc: fix up O= option support

 tools/include/nolibc/crt.h              |  2 +-
 tools/include/nolibc/stackprotector.h   |  5 ++---
 tools/testing/selftests/nolibc/Makefile | 19 +++++++++++++------
 3 files changed, 16 insertions(+), 10 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-08-27  7:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-05  6:09 [PATCH v2 0/3] selftests/nolibc: add misc improvments Zhangjin Wu
2023-08-05  6:11 ` [PATCH v2 1/3] selftests/nolibc: allow report with existing test log Zhangjin Wu
2023-08-05  6:12 ` [PATCH v2 2/3] tools/nolibc: stackprotector.h: make __stack_chk_init static Zhangjin Wu
2023-08-05  6:13 ` [PATCH v2 3/3] selftests/nolibc: fix up O= option support Zhangjin Wu
2023-08-06 11:21   ` Willy Tarreau
2023-08-06 12:17     ` Zhangjin Wu
2023-08-26  4:30       ` Zhangjin Wu
2023-08-26 18:29         ` Yuan Tan
2023-08-27  7:09           ` Zhangjin Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox