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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 592C8C83F17 for ; Thu, 10 Jul 2025 12:19:05 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uZqEY-0007lD-Rk; Thu, 10 Jul 2025 08:18:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uZqEJ-0007QU-Do for qemu-riscv@nongnu.org; Thu, 10 Jul 2025 08:18:23 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uZqEC-0003li-8H for qemu-riscv@nongnu.org; Thu, 10 Jul 2025 08:18:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1752149894; 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: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=oZcdTKwr5VGZtAgmNu8ai1lKcazl2PBX3e6N7JXe32M=; b=cHM0gtTsFtwhk242/zUFiH07BXJrsTFg1dWdhjzDxAQko0xy9/TnYh4Rhv0OWVbU/FjsBK akFa2iksW25yUJ+/GrbA1Cjj869vmpZ2ES8eKRSMhhPSVBxWGqb/C/N0nsdqTDd6+ROP74 97XxXTOlkynrUbXMBEy0P4X5/I9nOe0= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-102-kg2k6vozPhOkC19txae5iQ-1; Thu, 10 Jul 2025 08:18:11 -0400 X-MC-Unique: kg2k6vozPhOkC19txae5iQ-1 X-Mimecast-MFC-AGG-ID: kg2k6vozPhOkC19txae5iQ_1752149890 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-45311704d1fso6041045e9.1 for ; Thu, 10 Jul 2025 05:18:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752149890; x=1752754690; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oZcdTKwr5VGZtAgmNu8ai1lKcazl2PBX3e6N7JXe32M=; b=SYxA+q1RMwzUvmjZWGHFBC4jTaFnZwHlL3OHRPvrMHP0MuPuIWOHFivMWyE+Xs1wlb jjm7jpFCYOHeT0FfiVDjT/1lndT/wwtsIwm6VIfpE/DzH2QF7qQOLWUj1aStSYzR5m3I PnLHgJt9xXvOTibYNw2GWS6iDMDS+XqkVxG1eRscVjSKeZSBpXEa3qOBVp+GlbekoAOd MZ+P5yobKe0hVwcW/IpoDyVeRfkLihybKX48mEe4LkpcoHXF6gNZorRaMV4vooIPJy8w N2w/NZB50GgxZBxdUUcsj+YfxaJdjDVz3QbDEr9Yie7yJSzTQ/vCrj3/cjkp/+fOzLbl a8uw== X-Forwarded-Encrypted: i=1; AJvYcCWvBh44AFeY54s+AbTdxzZc071pxSf2AuqUKA89WJAqBKbuXu5E4lcpYb44BbzB/zfXrMBvdzuUW3/0@nongnu.org X-Gm-Message-State: AOJu0YwsLQk0BjY3sAJyMq6G4zKaytpa4fvM06/t5fjFC6GXb2ctN7vM kVZROlJzNmdaqgTXm+CGGwOqB+Smd1T6M96jGb+FaZ33VT7kkVhZPm7fENNtq+FarVDyeQ2jqKE kLk/msQG0uM9FPCTTLexs8eLM6j8wnEwEnQ+/9pJSJgE4i5jOUVCuSwGh X-Gm-Gg: ASbGncvN8/XsR24eWJSO6pi/r1zaylsFIbmGgt4rYWgz2mybpiEOU+2TDTaDKobxyuK lyH1ib6GYVno1anRSEuloMEC2OL2Er2fgVZ/gSZ1sSJ9bLTvzBFP5GT55YMm/zZ4cEf65C62FJw jLeUmwqVZ3Yjb+mnN5ipI8qyizBrYdaLD3crRu2rNXB8znLTjEbRriO7vCkp+fCZrUyDIzCo+BR 2ANKk5EhBlRRnJ8G97CtKSPubzVWqqfCmnMGwgD6thEDTZ0t+RTTZ6oOgzqnmznWmK+2E2CQ2/R JRDgRoGDdWYmLOhNbs3kFVukN0UcegpohGrWk0f8s9I+s3EyMohgmDQHyiwXU64= X-Received: by 2002:a05:600c:1381:b0:453:6f1:bdba with SMTP id 5b1f17b1804b1-454e146b67bmr4375165e9.20.1752149889864; Thu, 10 Jul 2025 05:18:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGMjQy8WsxdZS7+lhMyd7amgOkqcPwlFevggNA3gq8sHSr099uC0kRgVnY4uFwCXEjQE6pENA== X-Received: by 2002:a05:600c:1381:b0:453:6f1:bdba with SMTP id 5b1f17b1804b1-454e146b67bmr4374515e9.20.1752149889059; Thu, 10 Jul 2025 05:18:09 -0700 (PDT) Received: from [192.168.0.6] (ltea-047-064-115-149.pools.arcor-ip.net. [47.64.115.149]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-454d575cbbfsm53755995e9.32.2025.07.10.05.18.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Jul 2025 05:18:08 -0700 (PDT) Message-ID: <2f45bae7-cee8-40f0-9627-bd47621c69b2@redhat.com> Date: Thu, 10 Jul 2025 14:18:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH] tests/functional: Move tests into architecture specific folders To: Manos Pitsidianakis Cc: qemu-devel@nongnu.org, =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-s390x@nongnu.org, qemu-riscv@nongnu.org, =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , Pierrick Bouvier , =?UTF-8?Q?Alex_Benn=C3=A9e?= References: <20250710094251.139514-1-thuth@redhat.com> From: Thomas Huth Autocrypt: addr=thuth@redhat.com; keydata= xsFNBFH7eUwBEACzyOXKU+5Pcs6wNpKzrlJwzRl3VGZt95VCdb+FgoU9g11m7FWcOafrVRwU yYkTm9+7zBUc0sW5AuPGR/dp3pSLX/yFWsA/UB4nJsHqgDvDU7BImSeiTrnpMOTXb7Arw2a2 4CflIyFqjCpfDM4MuTmzTjXq4Uov1giGE9X6viNo1pxyEpd7PanlKNnf4PqEQp06X4IgUacW tSGj6Gcns1bCuHV8OPWLkf4hkRnu8hdL6i60Yxz4E6TqlrpxsfYwLXgEeswPHOA6Mn4Cso9O 0lewVYfFfsmokfAVMKWzOl1Sr0KGI5T9CpmRfAiSHpthhHWnECcJFwl72NTi6kUcUzG4se81 O6n9d/kTj7pzTmBdfwuOZ0YUSqcqs0W+l1NcASSYZQaDoD3/SLk+nqVeCBB4OnYOGhgmIHNW 0CwMRO/GK+20alxzk//V9GmIM2ACElbfF8+Uug3pqiHkVnKqM7W9/S1NH2qmxB6zMiJUHlTH gnVeZX0dgH27mzstcF786uPcdEqS0KJuxh2kk5IvUSL3Qn3ZgmgdxBMyCPciD/1cb7/Ahazr 3ThHQXSHXkH/aDXdfLsKVuwDzHLVSkdSnZdt5HHh75/NFHxwaTlydgfHmFFwodK8y/TjyiGZ zg2Kje38xnz8zKn9iesFBCcONXS7txENTzX0z80WKBhK+XSFJwARAQABzR5UaG9tYXMgSHV0 aCA8dGh1dGhAcmVkaGF0LmNvbT7CwXgEEwECACIFAlVgX6oCGwMGCwk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DllL59cFFOJCkn4Xboj/aVxxJxF30bn In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: HXV8eeKrBqZnLDAq7aQMv3uSgxWIMSkpxkYcgbTCh6E_1752149890 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=170.10.133.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org On 10/07/2025 11.59, Manos Pitsidianakis wrote: > On Thu, Jul 10, 2025 at 12:51 PM Thomas Huth wrote: >> >> This patch tackles two issues. First, the tests/functional folder has >> become quite crowded already, some restructuring would be helpful here. >> Second, we currently encode the target architecture twice in the test >> names since a lot of the test file names contain the target, too. >> This contributes to the very long output lines when running "make >> check-functional". >> >> So let's move the individual test files to target specific folders now. >> Then we can drop the target from the file name (and thus from the test >> name). >> >> Before the change, the output looked like this: >> >> ... >> 195/236 qemu:func-thorough+func-microblazeel-thorough+thorough / func-microblazeel-microblazeel_s3adsp1800 OK 2.00s 2 subtests passed >> 196/236 qemu:func-thorough+func-microblaze-thorough+thorough / func-microblaze-microblaze_replay OK 2.78s 1 subtests passed >> 197/236 qemu:func-thorough+func-microblaze-thorough+thorough / func-microblaze-microblaze_s3adsp1800 OK 2.02s 2 subtests passed >> 198/236 qemu:func-thorough+func-mips64el-thorough+thorough / func-mips64el-mips64el_fuloong2e OK 1.95s 1 subtests passed >> 199/236 qemu:func-thorough+func-mips64el-thorough+thorough / func-mips64el-mips64el_loongson3v SKIP 0.07s 0 subtests passed >> 200/236 qemu:func-thorough+func-mips64el-thorough+thorough / func-mips64el-mips64el_tuxrun OK 8.52s 1 subtests passed >> ... >> >> After this change, it gets a little bit shorter: >> >> ... >> 195/236 qemu:func-thorough+func-microblazeel-thorough+thorough / func-microblazeel-s3adsp1800 OK 2.12s 2 subtests passed >> 196/236 qemu:func-thorough+func-microblaze-thorough+thorough / func-microblaze-replay OK 2.90s 1 subtests passed >> 197/236 qemu:func-thorough+func-microblaze-thorough+thorough / func-microblaze-s3adsp1800 OK 2.07s 2 subtests passed >> 198/236 qemu:func-thorough+func-mips64el-thorough+thorough / func-mips64el-fuloong2e OK 2.05s 1 subtests passed >> 199/236 qemu:func-thorough+func-mips64el-thorough+thorough / func-mips64el-loongson3v SKIP 0.07s 0 subtests passed >> 200/236 qemu:func-thorough+func-mips64el-thorough+thorough / func-mips64el-tuxrun OK 8.84s 1 subtests passed >> ... >> >> Tests that can be used for multiple but not all targets (like the "migration" >> test) are now handled via symlinks in the target folders. >> >> Signed-off-by: Thomas Huth >> --- >> Note: Marked as RFC since I'm not that happy about the symlinks yet ... >> if someone has a better idea, please let me know! > > How about making those tests utility functions that each target arch > imports and calls? It feels cleaner than symlinks, I think. That sounds better, indeed. I'll give it a try... Thanks, Thomas