From nobody Sat May 18 21:16:04 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1615541321; cv=none; d=zohomail.com; s=zohoarc; b=d33kv9hLN5QEM7sr9bxpUoW8rDeoz0+/1666mUqrK6hkrH/yf8JJln3uD3ZwmriAkmSV9Q8Yo7tyo3HOHfNspShfgexIDf92g8xbRRzaDSINsSP2yKjXmaEnhrslhirRVyigaY+S/egdH74+Rd8dm8zAjklDC/cRv1TTGQ8/KDE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1615541321; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=oWPkGlcxgn2ABjMb8Yd9RlgUvN7E3GYUHaLEIybCGuQ=; b=MlfHm5cgsOUGEm0NSFtLnkQzY3HZcpvmCrqLnEnVc49UZI8D94Lj9VBf6PIYpkDWbs4y+KLo6RBSqNrVFCwnEFSnqEE5Xr4bLsAwm2z0wmbaArZ90JbbgjWhYvYolBiDPJhwy01se20kksUq4ue74bqCLbZ7VNexoTKsSpT1v/8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1615541321049261.1662854930265; Fri, 12 Mar 2021 01:28:41 -0800 (PST) Received: from localhost ([::1]:46740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKe61-0001NF-Vz for importer@patchew.org; Fri, 12 Mar 2021 04:28:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:52050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKe0V-0000UO-Tq for qemu-devel@nongnu.org; Fri, 12 Mar 2021 04:22:55 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:21791) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lKe0S-0004Ft-14 for qemu-devel@nongnu.org; Fri, 12 Mar 2021 04:22:53 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-200-AgAxmkW1N8K2SjTXePLt7Q-1; Fri, 12 Mar 2021 04:22:46 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B6596100D68A; Fri, 12 Mar 2021 09:22:45 +0000 (UTC) Received: from thuth.com (ovpn-112-83.ams2.redhat.com [10.36.112.83]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4BA731048100; Fri, 12 Mar 2021 09:22:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615540969; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oWPkGlcxgn2ABjMb8Yd9RlgUvN7E3GYUHaLEIybCGuQ=; b=a9kaMC/Co5kgzYeapuc8/ORY0vW54PqqV3JgYdKM+x3hYgftUC5MI8klLoJ7LJXcVO7Kq1 9Tg5/xf+wIs0IeZek78O/HweikP9gK44ov/2YiEVPC4Z85ILDs1c68ZE4xAZbZ/pfoRMO+ 6PpR3iMQHVc5co4Yww+jpWjHGjI/Yd4= X-MC-Unique: AgAxmkW1N8K2SjTXePLt7Q-1 From: Thomas Huth To: qemu-devel@nongnu.org, Paolo Bonzini Subject: [PATCH] tests: Move benchmarks into a separate folder Date: Fri, 12 Mar 2021 10:22:38 +0100 Message-Id: <20210312092238.79509-1-thuth@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=thuth@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=63.128.21.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.25, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Longpeng , "Emilio G . Cota" , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" Make it clear that these files are related to benchmarks by moving them into a new folder called "bench". Signed-off-by: Thomas Huth Acked-by: Daniel P. Berrang=C3=A9 Acked-by: Paolo Bonzini --- Based-on: 20210310063314.1049838-1-thuth@redhat.com tests/{ =3D> bench}/atomic64-bench.c | 0 tests/{ =3D> bench}/atomic_add-bench.c | 0 tests/{ =3D> bench}/benchmark-crypto-cipher.c | 0 tests/{ =3D> bench}/benchmark-crypto-hash.c | 0 tests/{ =3D> bench}/benchmark-crypto-hmac.c | 0 tests/bench/meson.build | 34 +++++++++++++++++++++ tests/{ =3D> bench}/qht-bench.c | 0 tests/meson.build | 34 +-------------------- 8 files changed, 35 insertions(+), 33 deletions(-) rename tests/{ =3D> bench}/atomic64-bench.c (100%) rename tests/{ =3D> bench}/atomic_add-bench.c (100%) rename tests/{ =3D> bench}/benchmark-crypto-cipher.c (100%) rename tests/{ =3D> bench}/benchmark-crypto-hash.c (100%) rename tests/{ =3D> bench}/benchmark-crypto-hmac.c (100%) create mode 100644 tests/bench/meson.build rename tests/{ =3D> bench}/qht-bench.c (100%) diff --git a/tests/atomic64-bench.c b/tests/bench/atomic64-bench.c similarity index 100% rename from tests/atomic64-bench.c rename to tests/bench/atomic64-bench.c diff --git a/tests/atomic_add-bench.c b/tests/bench/atomic_add-bench.c similarity index 100% rename from tests/atomic_add-bench.c rename to tests/bench/atomic_add-bench.c diff --git a/tests/benchmark-crypto-cipher.c b/tests/bench/benchmark-crypto= -cipher.c similarity index 100% rename from tests/benchmark-crypto-cipher.c rename to tests/bench/benchmark-crypto-cipher.c diff --git a/tests/benchmark-crypto-hash.c b/tests/bench/benchmark-crypto-h= ash.c similarity index 100% rename from tests/benchmark-crypto-hash.c rename to tests/bench/benchmark-crypto-hash.c diff --git a/tests/benchmark-crypto-hmac.c b/tests/bench/benchmark-crypto-h= mac.c similarity index 100% rename from tests/benchmark-crypto-hmac.c rename to tests/bench/benchmark-crypto-hmac.c diff --git a/tests/bench/meson.build b/tests/bench/meson.build new file mode 100644 index 0000000000..00b3c209dc --- /dev/null +++ b/tests/bench/meson.build @@ -0,0 +1,34 @@ + +qht_bench =3D executable('qht-bench', + sources: 'qht-bench.c', + dependencies: [qemuutil]) + +executable('atomic_add-bench', + sources: files('atomic_add-bench.c'), + dependencies: [qemuutil], + build_by_default: false) + +executable('atomic64-bench', + sources: files('atomic64-bench.c'), + dependencies: [qemuutil], + build_by_default: false) + +benchs =3D {} + +if have_block + benchs +=3D { + 'benchmark-crypto-hash': [crypto], + 'benchmark-crypto-hmac': [crypto], + 'benchmark-crypto-cipher': [crypto], + } +endif + +foreach bench_name, deps: benchs + exe =3D executable(bench_name, bench_name + '.c', + dependencies: [qemuutil] + deps) + benchmark(bench_name, exe, + args: ['--tap', '-k'], + protocol: 'tap', + timeout: 0, + suite: ['speed']) +endforeach diff --git a/tests/qht-bench.c b/tests/bench/qht-bench.c similarity index 100% rename from tests/qht-bench.c rename to tests/bench/qht-bench.c diff --git a/tests/meson.build b/tests/meson.build index af43fd1eaf..55a7b08275 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -1,18 +1,6 @@ py3 =3D import('python').find_installation() =20 -qht_bench =3D executable('qht-bench', - sources: 'qht-bench.c', - dependencies: [qemuutil]) - -executable('atomic_add-bench', - sources: files('atomic_add-bench.c'), - dependencies: [qemuutil], - build_by_default: false) - -executable('atomic64-bench', - sources: files('atomic64-bench.c'), - dependencies: [qemuutil], - build_by_default: false) +subdir('bench') =20 test_qapi_outputs =3D [ 'qapi-builtin-types.c', @@ -73,26 +61,6 @@ test_deps =3D { 'test-qht-par': qht_bench, } =20 -benchs =3D {} - -if have_block - benchs +=3D { - 'benchmark-crypto-hash': [crypto], - 'benchmark-crypto-hmac': [crypto], - 'benchmark-crypto-cipher': [crypto], - } -endif - -foreach bench_name, deps: benchs - exe =3D executable(bench_name, bench_name + '.c', - dependencies: [qemuutil] + deps) - benchmark(bench_name, exe, - args: ['--tap', '-k'], - protocol: 'tap', - timeout: 0, - suite: ['speed']) -endforeach - if have_tools and 'CONFIG_VHOST_USER' in config_host and 'CONFIG_LINUX' in= config_host executable('vhost-user-bridge', sources: files('vhost-user-bridge.c'), --=20 2.27.0