Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1678981

Re: [PATCH 0/4] Convert to TAP13 using ksft_ var arg msg api

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Shuah Khan <shuah@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 0/4] Convert to TAP13 using ksft_ var arg msg api
Date Fri, 30 Jun 2017 18:40:01 +0200
Message-ID <tY77z-7Pi-3@gated-at.bofh.it> (permalink)
References <tXQT8-5RT-7@gated-at.bofh.it> <tY77z-7Pi-5@gated-at.bofh.it>
Reply-To shuah@kernel.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Language en-US
Content-Transfer-Encoding 8bit
X-Cmae-Envelope MS4wfDqzi2NT7YoA1UFr5vXnFMi2d9rV3H5BWT3jE6yP2iC+yK6vsTVRZLOPgeysswh+9YYntHFnxxj2hSBNtUqllPbUUHZQx/B5iqw0ZLh9hERujH3SKR3K PCQjiCXtCucmJrLQt4uoGAYJAP7phv6cGqmer0+insG8gRvsI1cBLRYhjjbJsPHvIDE2pRhEdcxRsmjxtBSSUaNju5pIPhbTYJ29Rgaa2eNdm85JoUFxtWpi Xxa/GXjPM0KIg0viR06lUAJHXTHBz+N3tCGaYgkvrI4S10ggD8QAaNpYhPpin0IXkwIbNxybIkhegBnzH2gLvn/gwEFYS55hVAEc/XVbxVQVkIHyfr2L+GDo frIXlNCWADJYJagHxFpPNAhCYOxlmlOH+nw5cOKIBnrtGH4W2SKUHvQSh2/U+zeDuk8WpqVvbPJ8v5p++tBQIdUVYxlxCZAgzVsKnl1ASa4X7xNZyFmVgyrh GRfI3eKcO+7QZ2bj
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 60
Organization linux.* mail to news gateway
X-Original-Cc Shuah Khan <shuahkh@osg.samsung.com>, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan <shuah@kernel.org>
X-Original-Date Fri, 30 Jun 2017 10:33:47 -0600
X-Original-Message-ID <3d5e18c0-781d-b9d3-c9df-c02e62ded88d@kernel.org>
X-Original-References <cover.1498777889.git.shuahkh@osg.samsung.com> <6fb6618f-7f39-dd6b-07bb-0e7e9929e6e1@pitt.edu>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1678981

Show key headers only | View raw


On 06/30/2017 10:13 AM, Paul Elder wrote:
> On 06/30/2017 08:18 AM, Shuah Khan wrote:
>> This patch series converts breakpoint_test_arm64 to TAP13 output. Uses
>> ksft_ var arg msg functions as needed. Changed to ensure parent is the
>> one that increments test counters.
>>
>> breakpoint_test, step_after_suspend_test, membarrier tests are changed
>> to use ksft_ var arg msg functions as needed.
>>
>> This patch series depends on Paul Elder's
>>
>> [PATCH v2 0/2] kselftest: make ksft_* output functions variadic
>> The v2 series doesn't append newline and makes it easier to use.
>>
>> Shuah Khan (4):
>>   selftests: breakpoint_test: use ksft_* var arg msg api
>>   selftests: breakpoints: step_after_suspend_test use ksft_* var arg msg
>>     api
>>   selftests: breakpoints: breakpoint_test_arm64: convert test to use
>>     TAP13
>>   selftests: membarrier: use ksft_* var arg msg api
>>
>>  .../selftests/breakpoints/breakpoint_test.c        | 28 ++++---
>>  .../selftests/breakpoints/breakpoint_test_arm64.c  | 94 +++++++++++++---------
>>  .../breakpoints/step_after_suspend_test.c          | 59 ++++++++------
>>  .../testing/selftests/membarrier/membarrier_test.c | 91 ++++++++++-----------
>>  4 files changed, 148 insertions(+), 124 deletions(-)
>>
> Looks good to me.
> 
> Although I am wondering why you said earlier that you were going to go with
> my v1, while this depends on v2.
> 
> Thank you,
> 
> Paul
> 
> 

Yeah my bad!

I was playing with both v1 and v2 for my testing. I lost track of which one worked
well. I had to start from square one and re-test.

v2 by not appending newline, allows custom formats in individual test messages.
For example, a test wants to use tabs between two ksft_print_msg() calls or _report_
messages. v2 is flexible and works better and leds itself well. Users can just pass
the format and expect it to stick.

If there are no issues with this series, I plan to apply your v2 series and this
series later on today or early tomorrow to linux-kselftest next.

If we have this infrastructure in place, we will be able to make progress in the
next release with the TAP13 conversion of other tests.

thanks,
-- Shuah

thanks,
-- Shuah

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] Convert to TAP13 using ksft_ var arg msg api  Shuah Khan <shuahkh@osg.samsung.com> - 2017-06-30 01:20 +0200
  [PATCH 3/4] selftests: breakpoints: breakpoint_test_arm64: convert test to use TAP13 Shuah Khan <shuahkh@osg.samsung.com> - 2017-06-30 01:20 +0200
  [PATCH 1/4] selftests: breakpoint_test: use ksft_* var arg msg api Shuah Khan <shuahkh@osg.samsung.com> - 2017-06-30 01:20 +0200
  [PATCH 4/4] selftests: membarrier: use ksft_* var arg msg api Shuah Khan <shuahkh@osg.samsung.com> - 2017-06-30 01:20 +0200
  [PATCH 2/4] selftests: breakpoints: step_after_suspend_test use ksft_* var arg msg api Shuah Khan <shuahkh@osg.samsung.com> - 2017-06-30 01:20 +0200
  Re: [PATCH 0/4] Convert to TAP13 using ksft_ var arg msg api Shuah Khan <shuah@kernel.org> - 2017-06-30 18:40 +0200
    Re: [PATCH 0/4] Convert to TAP13 using ksft_ var arg msg api Shuah Khan <shuah@kernel.org> - 2017-06-30 19:10 +0200

csiph-web