From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B574FC433EF for ; Thu, 4 Nov 2021 06:45:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9DD2F60ED5 for ; Thu, 4 Nov 2021 06:45:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231671AbhKDGsA (ORCPT ); Thu, 4 Nov 2021 02:48:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231211AbhKDGqm (ORCPT ); Thu, 4 Nov 2021 02:46:42 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 17A63C0797B1 for ; Wed, 3 Nov 2021 23:42:55 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id z65-20020a256544000000b005c21b35717dso7444197ybb.10 for ; Wed, 03 Nov 2021 23:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=c5kOW90u4xsq8H2QxSIbQc8Tz3TWyUWjUuTa0kkYcgQ=; b=W1LISV6K8ImfLN23kZIBLz/8oPp3a772noUSRVSCKrrGpHAy1ct1mxt7jj0ZDxSEfX MzP15U0SO8kxTuBMpBtS7ofoxYg/wbqeFI0e0kB//Lt2mofIpUlLxXecBJKaejSpxtDB W5Z0ZACdt4V/EWaF2eeX1jpdLWRXv3oqxkuRbuiSIZ2AIMQBT8sgN3n4IcYOrVEFOAkG p8Q4YWRyCZVLcy+7hq4NsurF9Yy2kCL6Rbcbdaxt2xTXeEJuhbagRu2ESLZQSdxzNIei FPjmQ/IWMuRBT3BXNV1zWqJDD1OK2soX5gG3jp/LlHug1ivtXjxNAOYgi+kxZhmlRKNf hwuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=c5kOW90u4xsq8H2QxSIbQc8Tz3TWyUWjUuTa0kkYcgQ=; b=eW+Ldw3/nkBbqBdg0FkoLmPQGPPX+iruSXf0mwhzP+chx6f1R1gDRjs832ex/a/UQ9 H0IUv4FAGPGHrIa1tl6g5m2YWhWXp6ehCkqepcsKhVyAYtiY+B6Q1PdGeBZrbhSZvqvh 01230woA/qme29uowB5udACjE3w48D160i7nrg8OGv3ishtwwNBa6SspNolylR6yJnD4 S+/Q/3KeHe5hgw6e9rqbVLsBlSYC7xvFYo1OXl4gfhh+rr4jUzJP9ZHg9ESVWhxx1kKH Z7IBx42w850eNVAuT8QFcnpiiAwwZ3oOnP/ct7PIJ13JoYXCpyzB7wR9WRbvZbe2/zHr AFNw== X-Gm-Message-State: AOAM532XBffJCO6tXepnDvQiXgFMIxL4Qs0n6T+mb/7rG4tx3Pv/1tHw Z5AwXaypFg+fXywFgC7UJhyvCw7DnFtH X-Google-Smtp-Source: ABdhPJzfR7lzk8qdPKBvdk/ijcyDoDO2weQwc7JLbwZob3YYP/lX0ibUYNQYdqJLaedYAoSl9tmRDCea42PP X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:8ce:af84:2510:3f29]) (user=irogers job=sendgmr) by 2002:a25:d386:: with SMTP id e128mr45990113ybf.176.1636008174311; Wed, 03 Nov 2021 23:42:54 -0700 (PDT) Date: Wed, 3 Nov 2021 23:42:02 -0700 In-Reply-To: <20211104064208.3156807-1-irogers@google.com> Message-Id: <20211104064208.3156807-17-irogers@google.com> Mime-Version: 1.0 References: <20211104064208.3156807-1-irogers@google.com> X-Mailer: git-send-email 2.33.1.1089.g2158813163f-goog Subject: [PATCH v3 16/22] perf test: bp tests use test case From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Jin Yao , John Garry , "Paul A . Clarke" , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Brendan Higgins , Daniel Latypov , David Gow , Sohaib Mohamed Cc: eranian@google.com, Ian Rogers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Migration toward kunit style test cases. Signed-off-by: Ian Rogers --- tools/perf/tests/bp_account.c | 7 ++++++- tools/perf/tests/bp_signal.c | 7 ++++++- tools/perf/tests/bp_signal_overflow.c | 7 ++++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/tools/perf/tests/bp_account.c b/tools/perf/tests/bp_account.c index 365120146d17..e4f7b635ffef 100644 --- a/tools/perf/tests/bp_account.c +++ b/tools/perf/tests/bp_account.c @@ -205,8 +205,13 @@ static bool test__bp_account_is_supported(void) #endif } +static struct test_case bp_accounting_tests[] = { + TEST_CASE("Breakpoint accounting", bp_accounting), + { .name = NULL, } +}; + struct test_suite suite__bp_accounting = { .desc = "Breakpoint accounting", - .func = test__bp_accounting, + .test_cases = bp_accounting_tests, .is_supported = test__bp_account_is_supported, }; diff --git a/tools/perf/tests/bp_signal.c b/tools/perf/tests/bp_signal.c index 3c269f81818a..1676e3a11906 100644 --- a/tools/perf/tests/bp_signal.c +++ b/tools/perf/tests/bp_signal.c @@ -312,8 +312,13 @@ bool test__bp_signal_is_supported(void) #endif } +static struct test_case bp_signal_tests[] = { + TEST_CASE("Breakpoint overflow signal handler", bp_signal), + { .name = NULL, } +}; + struct test_suite suite__bp_signal = { .desc = "Breakpoint overflow signal handler", - .func = test__bp_signal, + .test_cases = bp_signal_tests, .is_supported = test__bp_signal_is_supported, }; diff --git a/tools/perf/tests/bp_signal_overflow.c b/tools/perf/tests/bp_signal_overflow.c index 5ac6e1393cf4..bc1f13851750 100644 --- a/tools/perf/tests/bp_signal_overflow.c +++ b/tools/perf/tests/bp_signal_overflow.c @@ -134,8 +134,13 @@ static int test__bp_signal_overflow(struct test_suite *test __maybe_unused, int return fails ? TEST_FAIL : TEST_OK; } +static struct test_case bp_signal_overflow_tests[] = { + TEST_CASE("Breakpoint overflow sampling", bp_signal_overflow), + { .name = NULL, } +}; + struct test_suite suite__bp_signal_overflow = { .desc = "Breakpoint overflow sampling", - .func = test__bp_signal_overflow, + .test_cases = bp_signal_overflow_tests, .is_supported = test__bp_signal_is_supported, }; -- 2.33.1.1089.g2158813163f-goog