From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB0FC225A4F for ; Fri, 20 Dec 2024 22:04:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734732254; cv=none; b=JnYL/Lmr5JYDtYRxTZYlOcb5vls7NXqtO8GyBY83d8WVVtGOpRyu6RrjWAz4XA0w81E7VYOn9YFoP9S6Kphbf1PqEVbItAGzld6gvNMErQq8h2ir0vr4A8ySgqzfJL8prhDtMc7JU86ZYs31Ls7JuU3HOtEdXUud/wtO+5z6cGM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734732254; c=relaxed/simple; bh=UhqM/3920DHGuzGVhw6xDHZAj9b67pHaqnkub32uKps=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=D6uA/Ql68vhbFDUPk4rQLry5X88Tw9dycd2rfNPcZgTyLU7CNHnr7gTyAMd7m+xJyYio2Ro06AcdlIaLe55FIkOJnEl5vZf5MWAGl8hTmQ44C4Zy3lQbvfQYt3JqsSgjJCFOgDSXncAS/z3Se6asr6rYR3dFL05oie8ZM1OueKA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=KqG5Mhsh; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="KqG5Mhsh" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1734732251; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NYkYMzBknU6C7M/2zIs6jWi5hJ06+U3atw7JAXqXEfY=; b=KqG5Mhshkjh71iprjbgAUr73T4KCZ04xBH3Lv1UtLqOiUS0kspxkwrw/t/TKJ7inJ0Fj24 /vvvODQUsczBBRj4XaroVAlUwsX6Gt04JrD4ZWMbrsSOKEJ8LFOV8b9nFex6v3/LRu5W4l TsbYpAPFDTT2FRs7aoIIi1GRGCUV5Cw= Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-102-1nKNtsoxPpuBP8HftI8myQ-1; Fri, 20 Dec 2024 17:04:10 -0500 X-MC-Unique: 1nKNtsoxPpuBP8HftI8myQ-1 X-Mimecast-MFC-AGG-ID: 1nKNtsoxPpuBP8HftI8myQ Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 13A041955F44; Fri, 20 Dec 2024 22:04:09 +0000 (UTC) Received: from telekom.ip.com (unknown [10.45.224.30]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0F47B19560A2; Fri, 20 Dec 2024 22:04:06 +0000 (UTC) From: vmolnaro@redhat.com To: linux-perf-users@vger.kernel.org, acme@kernel.org, acme@redhat.com, namhyung@kernel.org, mpetlan@redhat.com Cc: irogers@google.com Subject: [PATCH 10/10] perf test: Remove perftool drivers Date: Fri, 20 Dec 2024 23:03:34 +0100 Message-ID: <20241220220334.69198-11-vmolnaro@redhat.com> In-Reply-To: <20241220220334.69198-1-vmolnaro@redhat.com> References: <20241220220334.69198-1-vmolnaro@redhat.com> Precedence: bulk X-Mailing-List: linux-perf-users@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 From: Veronika Molnarova The perf now provides all of the features required for running the perftool test cases, such as creating log directories, running setup scripts and the tests are structured by the base_ directories. Remove the drivers as they are no longer necessary together with the condition of skipping the base_ directories and run the test cases by the default perf test structure. Signed-off-by: Michael Petlan Signed-off-by: Veronika Molnarova --- .../tests/shell/perftool-testsuite_probe.sh | 23 ------------------- .../tests/shell/perftool-testsuite_report.sh | 23 ------------------- tools/perf/tests/tests-scripts.c | 2 -- 3 files changed, 48 deletions(-) delete mode 100755 tools/perf/tests/shell/perftool-testsuite_probe.sh delete mode 100755 tools/perf/tests/shell/perftool-testsuite_report.sh diff --git a/tools/perf/tests/shell/perftool-testsuite_probe.sh b/tools/perf/tests/shell/perftool-testsuite_probe.sh deleted file mode 100755 index a0fec33a0358aeff..0000000000000000 --- a/tools/perf/tests/shell/perftool-testsuite_probe.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# perftool-testsuite_probe -# SPDX-License-Identifier: GPL-2.0 - -test -d "$(dirname "$0")/base_probe" || exit 2 -cd "$(dirname "$0")/base_probe" || exit 2 -status=0 - -PERFSUITE_RUN_DIR=$(mktemp -d /tmp/"$(basename "$0" .sh)".XXX) -export PERFSUITE_RUN_DIR - -for testcase in setup.sh test_*; do # skip setup.sh if not present or not executable - test -x "$testcase" || continue - ./"$testcase" - (( status += $? )) -done - -if ! [ "$PERFTEST_KEEP_LOGS" = "y" ]; then - rm -rf "$PERFSUITE_RUN_DIR" -fi - -test $status -ne 0 && exit 1 -exit 0 diff --git a/tools/perf/tests/shell/perftool-testsuite_report.sh b/tools/perf/tests/shell/perftool-testsuite_report.sh deleted file mode 100755 index a8cf75b4e77ec1a3..0000000000000000 --- a/tools/perf/tests/shell/perftool-testsuite_report.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash -# perftool-testsuite_report (exclusive) -# SPDX-License-Identifier: GPL-2.0 - -test -d "$(dirname "$0")/base_report" || exit 2 -cd "$(dirname "$0")/base_report" || exit 2 -status=0 - -PERFSUITE_RUN_DIR=$(mktemp -d /tmp/"$(basename "$0" .sh)".XXX) -export PERFSUITE_RUN_DIR - -for testcase in setup.sh test_*; do # skip setup.sh if not present or not executable - test -x "$testcase" || continue - ./"$testcase" - (( status += $? )) -done - -if ! [ "$PERFTEST_KEEP_LOGS" = "y" ]; then - rm -rf "$PERFSUITE_RUN_DIR" -fi - -test $status -ne 0 && exit 1 -exit 0 diff --git a/tools/perf/tests/tests-scripts.c b/tools/perf/tests/tests-scripts.c index 2dab7324ed05e7e9..51d2ffaf31a0103a 100644 --- a/tools/perf/tests/tests-scripts.c +++ b/tools/perf/tests/tests-scripts.c @@ -413,8 +413,6 @@ static void append_suits_in_dir(int dir_fd, if (!S_ISDIR(st.st_mode)) continue; } - if (strncmp(ent->d_name, "base_", 5) == 0) - continue; /* Skip scripts that have a separate driver. */ /* Scan subdir for test cases*/ fd = openat(dir_fd, ent->d_name, O_PATH); -- 2.43.0