linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bamvor Zhang Jian <bamvor.zhangjian-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Shuah Khan <shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
Cc: "Zhang Jian(Bamvor)"
	<bamvor.zhangjian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>,
	Michael Ellerman <mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org>,
	linux-api <linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	lkml <linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Kevin Hilman <khilman-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH v2 0/6] enable O and KBUILD_OUTPUT for kselftest
Date: Wed, 30 Nov 2016 23:32:29 +0800	[thread overview]
Message-ID: <CAFy1USRENze0J3MZUddvyTdChNBzRUAQBx2pPEfbFFiitxwtsw@mail.gmail.com> (raw)
In-Reply-To: <01b97008-3311-7b5b-4424-76bd3d560b40-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>

Hi, Shuah, Michael

On 30 November 2016 at 22:17, Shuah Khan <shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org> wrote:
> On 11/29/2016 04:55 AM, bamvor.zhangjian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org wrote:
>> From: Bamvor Jian Zhang <bamvor.zhangjian-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
>>
>> Here is my second version for enabling the KBUILD_OUTPUT for kselftest.
>> The first version could be found here[1]. I fix and test all the TARGET
>> in tools/testing/selftest/Makefile. For ppc, I test through fake target.
>>
>> There are six patches in these series. And five of them clean up the
>> existing code. I split the clean up patches into five, hope it is easy
>> to review.
>>
>>   selftests: remove duplicated all and clean target
>>   selftests: remove useless TEST_DIRS
>> a selftests: add pattern rules
>> A selftests: remove CROSS_COMPILE in dedicated Makefile
>> A selftests: add EXTRA_CLEAN for clean target
>>   selftests: enable O and KBUILD_OUTPUT
>>
>> Notes:
>>   A: Ack by Michael.
>>   a: ack by Michael. Minor update after rebase.
>
> Bamovar/Michael,
>
> Are these rebased to linux-next? Michael was concerned about
> conflicts with powerpc tree. Would rebasing to linux-next help
> avoiding conflicts?
Yes. I rebase to latest linux-next. It is taged as 1128 when I rebase
them yesterday. I fix some conflict when rebase.

Regards

Bamvor
>
> Still looking to get them into 4.10 if possible.

>
> thanks,
> -- Shuah
>
>>
>> In the first patch, I split the test files into two types:
>> TEST_GEN_XXX means such file is generated during compiling. TEST_XXX
>> means there is no need to compile before use. The main reason of this
>> is the enablement of KBUILD_OUTPUT only need to care about TEST_GEN_XXX.
>> I wanted to copy all the TEST_XXX with TEST_GEN_XXX, but I give up this
>> idea in the end. Because people may puzzle why copy the file before
>> installation.
>>
>> Because of the introducing of TEST_GEN_XXX, I update the top-level
>> Makefile and lib.mk selftests directory. After introduce TEST_GEN_XXX, I
>> could remove all the unnecessary all and clean targets.
>>
>> The second patch remove TEST_DIRS variable. And third patch add the
>> pattern for compiling the c sourc code. The fourth patch remove the
>> useless CROSS_COMPILE variable as it aleady exists in
>> "tools/testing/selftests/lib.mk".
>>
>> Further more, The fifth patch add the EXTRA_CLEAN variable to clean up
>> the duplicated clean target
>>
>> The last patch introduce the KBUILD_OUTPUT and O for kselftest instead
>> using the existing kbuild system because user may compile kselftest
>> directly (make -C tools/testing/selftests).
>>
>> Changes:
>> 1.  remove the useless *.o target in the following file suggested by
>>     Michael:
>>     tools/testing/selftests/powerpc/benchmarks/Makefile
>>     tools/testing/selftests/powerpc/copyloops/Makefile
>>     tools/testing/selftests/powerpc/dscr/Makefile
>>     tools/testing/selftests/powerpc/math/Makefile
>>     tools/testing/selftests/powerpc/primitives/Makefile
>>     tools/testing/selftests/powerpc/stringloops/Makefile
>>     tools/testing/selftests/powerpc/syscalls/Makefile
>>     tools/testing/selftests/powerpc/tm/Makefile
>>
>> 2.  remove the useless "all" and "clean" target in bpf and nsfs which
>>     are added after my previous patch.
>>
>> 3.  Improve the commit message.
>>
>> [1] http://www.spinics.net/lists/linux-api/msg20789.html
>>
>> Bamvor Jian Zhang (6):
>>   selftests: remove duplicated all and clean target
>>   selftests: remove useless TEST_DIRS
>>   selftests: add default rules for c source file
>>   selftests: remove CROSS_COMPILE in dedicated Makefile
>>   selftests: add EXTRA_CLEAN for clean target
>>   selftests: enable O and KBUILD_OUTPUT
>>
>>  Documentation/kselftest.txt                        | 12 +++++++
>>  tools/testing/selftests/Makefile                   | 36 ++++++++++++++-----
>>  tools/testing/selftests/bpf/Makefile               | 10 ++----
>>  tools/testing/selftests/breakpoints/Makefile       | 10 ++----
>>  tools/testing/selftests/capabilities/Makefile      | 11 ++----
>>  tools/testing/selftests/efivarfs/Makefile          |  8 +----
>>  tools/testing/selftests/exec/Makefile              | 32 ++++++++---------
>>  tools/testing/selftests/ftrace/Makefile            |  6 ++--
>>  tools/testing/selftests/futex/Makefile             | 21 ++++++++---
>>  tools/testing/selftests/futex/functional/Makefile  | 12 ++-----
>>  tools/testing/selftests/ipc/Makefile               |  7 +---
>>  tools/testing/selftests/kcmp/Makefile              |  6 ++--
>>  tools/testing/selftests/lib.mk                     | 36 +++++++++++++++----
>>  tools/testing/selftests/membarrier/Makefile        |  6 +---
>>  tools/testing/selftests/memfd/Makefile             | 15 ++------
>>  tools/testing/selftests/mount/Makefile             |  7 +---
>>  tools/testing/selftests/mqueue/Makefile            |  6 +---
>>  tools/testing/selftests/net/Makefile               | 15 +++-----
>>  tools/testing/selftests/nsfs/Makefile              |  9 +----
>>  tools/testing/selftests/powerpc/Makefile           | 15 ++++----
>>  tools/testing/selftests/powerpc/alignment/Makefile |  9 ++---
>>  .../testing/selftests/powerpc/benchmarks/Makefile  | 15 +++-----
>>  .../selftests/powerpc/context_switch/Makefile      |  9 ++---
>>  tools/testing/selftests/powerpc/copyloops/Makefile | 19 ++++------
>>  tools/testing/selftests/powerpc/dscr/Makefile      | 13 +++----
>>  tools/testing/selftests/powerpc/math/Makefile      | 25 ++++++-------
>>  tools/testing/selftests/powerpc/mm/Makefile        | 18 ++++------
>>  tools/testing/selftests/powerpc/pmu/Makefile       | 26 +++++++-------
>>  tools/testing/selftests/powerpc/pmu/ebb/Makefile   | 15 +++-----
>>  .../testing/selftests/powerpc/primitives/Makefile  |  9 ++---
>>  .../testing/selftests/powerpc/stringloops/Makefile |  9 ++---
>>  .../selftests/powerpc/switch_endian/Makefile       | 17 ++++-----
>>  tools/testing/selftests/powerpc/syscalls/Makefile  |  9 ++---
>>  tools/testing/selftests/powerpc/tm/Makefile        | 17 ++++-----
>>  tools/testing/selftests/powerpc/vphn/Makefile      | 10 ++----
>>  tools/testing/selftests/pstore/Makefile            |  4 +--
>>  tools/testing/selftests/ptrace/Makefile            |  8 +----
>>  tools/testing/selftests/seccomp/Makefile           |  6 +---
>>  tools/testing/selftests/sigaltstack/Makefile       |  5 +--
>>  tools/testing/selftests/size/Makefile              | 10 ++----
>>  tools/testing/selftests/timers/Makefile            | 10 ++----
>>  tools/testing/selftests/vm/Makefile                | 41 +++++++++-------------
>>  tools/testing/selftests/x86/Makefile               | 17 +++++----
>>  tools/testing/selftests/zram/Makefile              |  3 +-
>>  44 files changed, 247 insertions(+), 357 deletions(-)
>>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-api" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2016-11-30 15:32 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-29 11:55 [PATCH v2 0/6] enable O and KBUILD_OUTPUT for kselftest bamvor.zhangjian
2016-11-29 11:55 ` [PATCH v2 1/6] selftests: remove duplicated all and clean target bamvor.zhangjian
     [not found] ` <20161129115552.8148-1-bamvor.zhangjian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2016-11-29 11:55   ` [PATCH v2 2/6] selftests: remove useless TEST_DIRS bamvor.zhangjian-hv44wF8Li93QT0dZR+AlfA
2016-11-29 11:55   ` [PATCH v2 3/6] selftests: add default rules for c source file bamvor.zhangjian-hv44wF8Li93QT0dZR+AlfA
2016-11-29 11:55   ` [PATCH v2 5/6] selftests: add EXTRA_CLEAN for clean target bamvor.zhangjian-hv44wF8Li93QT0dZR+AlfA
2016-11-29 11:55   ` [PATCH v2 6/6] selftests: enable O and KBUILD_OUTPUT bamvor.zhangjian-hv44wF8Li93QT0dZR+AlfA
     [not found]     ` <20161129115552.8148-7-bamvor.zhangjian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2017-03-20 21:39       ` Andy Lutomirski
     [not found]         ` <CALCETrUCbGC5tmzKzYn0qE5w8omk6ZRDj4p9qz5-Ho92+W5McA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-21  8:35           ` Michael Ellerman
     [not found]             ` <87fui7owls.fsf-W0DJWXSxmBNbyGPkN3NxC2scP1bn1w/D@public.gmane.org>
2017-03-21  9:00               ` Bamvor Zhang Jian
2017-03-21 13:54                 ` Shuah Khan
2017-03-21 16:09                   ` Bamvor Zhang Jian
     [not found]                     ` <CAFy1USRjGvF3iwWa8k54fFzcMaMcN3VCQ1qMpZ3RSqZvT17Atw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-21 18:02                       ` Shuah Khan
     [not found]                         ` <4243a5e3-a971-387d-e492-262d76db4540-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2017-03-22 12:55                           ` Bamvor Zhang Jian
2017-03-22 11:35                       ` Michael Ellerman
     [not found]                   ` <5daf0b79-a000-2adb-0b1e-f528d66ff6df-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2017-03-22 11:46                     ` Michael Ellerman
     [not found]                 ` <CAFy1USRoKJ7G9ewLGBa1yy9V5UA+g=jo7O+eU1wV_rjKDYtJWg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-22 11:38                   ` Michael Ellerman
     [not found]                     ` <87d1d9czi4.fsf-W0DJWXSxmBNbyGPkN3NxC2scP1bn1w/D@public.gmane.org>
2017-03-22 12:52                       ` Bamvor Zhang Jian
2016-11-30 14:17   ` [PATCH v2 0/6] enable O and KBUILD_OUTPUT for kselftest Shuah Khan
     [not found]     ` <01b97008-3311-7b5b-4424-76bd3d560b40-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org>
2016-11-30 15:32       ` Bamvor Zhang Jian [this message]
     [not found]         ` <CAFy1USRENze0J3MZUddvyTdChNBzRUAQBx2pPEfbFFiitxwtsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-12-01 19:35           ` Shuah Khan
2016-11-29 11:55 ` [PATCH v2 4/6] selftests: remove CROSS_COMPILE in dedicated Makefile bamvor.zhangjian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFy1USRENze0J3MZUddvyTdChNBzRUAQBx2pPEfbFFiitxwtsw@mail.gmail.com \
    --to=bamvor.zhangjian-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
    --cc=bamvor.zhangjian-hv44wF8Li93QT0dZR+AlfA@public.gmane.org \
    --cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=khilman-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=mpe-Gsx/Oe8HsFggBc27wqDAHg@public.gmane.org \
    --cc=shuahkh-JPH+aEBZ4P+UEJcrhfAQsw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).