Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp629958rdb; Thu, 15 Feb 2024 10:13:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUw+7zc8vVcaUfRGhd+bOs4Br6dJr0T7avKb4S0Zvoc+O2ek0+zpwCoFC++3A0BAxWQNpATXtXT8MHkvO4z72MMgS1FkjonT4P6WcVIew== X-Google-Smtp-Source: AGHT+IFSwUGtZCDrw4WvOeUZm9krAy97S0PwcoeKMcza8i7dV/H5J3+FcXuy1xvDfae359bYqGaW X-Received: by 2002:a19:ca53:0:b0:511:acd9:c10d with SMTP id h19-20020a19ca53000000b00511acd9c10dmr1696337lfj.40.1708020816656; Thu, 15 Feb 2024 10:13:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708020816; cv=pass; d=google.com; s=arc-20160816; b=FtxZhJw79g1we9iXENHQ69X/teKbJQvJpmz0uw6xLyUeRn3ipLGvM4EhMzRWb4jixZ 7xjxVz/kOlz0vQyxukS8GWDE6nQ+spA44yjPoQQABco27tM67Fp8qIWui4NczqY7f3mM cHgqhIqymRlniK8Dr9M9WsAQ4eX7Y09NKX390z/pFSXK76C41RH8PRmQY7Q6NhBLF5xq SVUcxC3sd2COytbnnmTZh65T7zgZMXfnZUfjG6tRFPnjo8WvtjLq6LBWUP4jZBKfufyL oyprMfumah4GZinvJZJEG+WFpce+k1OZX+nywj+UR6k2mKbhQXXelHaXK2HCAoASm+DE z7+g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature:dkim-signature; bh=D9P8j5qWhDJz4Oep9mbgqw672iDvJafFPD4oyhUBddI=; fh=oGTeheTGtJi/O2KL90xHksAdkswU33tM/8rayu80xMU=; b=U+H1UlocaUPzZPb+ft1A5/ztHVYDZlHbhkVJOpNylhAp3A4Xap4M9774hc+ve9eFoa ZxyBbXLd+uaXVgJ9Py++Ci41xkVJV0WRCiK8QbwCuiU5EeFn2vVOmzA9yjMv7hKfI3eu CJTw+642MOIKd8bN8r16mEZ9NLn3Kk8m1rkmD5zkk02lgpcE8XrOBrfegrwIMYy7hgv3 e0EC8gk+7tAF2sjCTu2hyqMwOIvSBpki7bvherltTUxZBTzuYh5An2L/gCCKh/s3R7Ng nXUPsrVihZ1wXwuA+5libGdHyeTQlEs3DJXXbaDxyAd1fsVeRxTS6p2QgB/4ixG69tTf v6nA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=KQpjfkGK; dkim=pass header.i=@suse.com header.s=susede1 header.b=KQpjfkGK; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-67478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id s26-20020a170906455a00b00a379d8d3356si813981ejq.818.2024.02.15.10.13.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 10:13:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=KQpjfkGK; dkim=pass header.i=@suse.com header.s=susede1 header.b=KQpjfkGK; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-67478-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 363481F23FF2 for ; Thu, 15 Feb 2024 18:13:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62C2113959C; Thu, 15 Feb 2024 18:12:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="KQpjfkGK"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="KQpjfkGK" Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7EF613957B; Thu, 15 Feb 2024 18:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708020768; cv=none; b=tvahn36Y8d0J9cp5EzbPmgLlDO9JvKg+ulaqN39h6z2AGmKVEl8yl1w2Pza5q8QogVida3zzWpGmlpCo/r6hxyCNWyi/kQ4AnKzZRycMN/XdgYzTFuLRhIaEhQtyvvWMUiVXwDAvna5uqU9aULCMsGwANMGdNGphD/+3VIiXr4A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708020768; c=relaxed/simple; bh=4sRYEFsMr0x8AvEq/m65uPROo9JRLFixj6hIrz82inQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=svJ9CC6d1/Xe2SGQZ/jWKKqrHl9UuoK0UIKTltNBhWl7as4fFvUBriIu2RJ0fg8tzmH6j5x3yQpGxs9AC5NvacrtLxbUcpvI1NsXSaTxJPG2L7HUZBs06luH1QIJQnG3vW0qn4dOgr/6GNE8kJwOa9AEmLtCTs0wiJADopelBaM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=KQpjfkGK; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=KQpjfkGK; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [10.150.64.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B37301F8C5; Thu, 15 Feb 2024 18:12:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1708020764; h=from:from:reply-to: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; bh=D9P8j5qWhDJz4Oep9mbgqw672iDvJafFPD4oyhUBddI=; b=KQpjfkGK5ng/v33n/Ir87kQIzKraqrPK5YGCGb+rZY6SrG6MPtnZxUD/Yo94axeOAzSvIh vO8XWdMxpZyMRfRRFRA5pyKq75AcN0BJMJTCdhZwRW2pFnmjn6r1fu94Uya7Ac6zEn22xE 6vKcDHwbUarZGh1oQGPVAZkhUP65eqM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1708020764; h=from:from:reply-to: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; bh=D9P8j5qWhDJz4Oep9mbgqw672iDvJafFPD4oyhUBddI=; b=KQpjfkGK5ng/v33n/Ir87kQIzKraqrPK5YGCGb+rZY6SrG6MPtnZxUD/Yo94axeOAzSvIh vO8XWdMxpZyMRfRRFRA5pyKq75AcN0BJMJTCdhZwRW2pFnmjn6r1fu94Uya7Ac6zEn22xE 6vKcDHwbUarZGh1oQGPVAZkhUP65eqM= Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 3BA371346A; Thu, 15 Feb 2024 18:12:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id 2QdrARxUzmXzVwAAn2gu4w (envelope-from ); Thu, 15 Feb 2024 18:12:44 +0000 From: Marcos Paulo de Souza Date: Thu, 15 Feb 2024 15:12:21 -0300 Subject: [PATCH 2/3] selftests: lib.mk: Simplify TEST_GEN_MODS_DIR handling Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240215-lp-selftests-fixes-v1-2-89f4a6f5cddc@suse.com> References: <20240215-lp-selftests-fixes-v1-0-89f4a6f5cddc@suse.com> In-Reply-To: <20240215-lp-selftests-fixes-v1-0-89f4a6f5cddc@suse.com> To: Shuah Khan , Josh Poimboeuf , Jiri Kosina , Miroslav Benes , Petr Mladek , Joe Lawrence Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Marcos Paulo de Souza X-Mailer: b4 0.13-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1708020755; l=1959; i=mpdesouza@suse.com; s=20231031; h=from:subject:message-id; bh=4sRYEFsMr0x8AvEq/m65uPROo9JRLFixj6hIrz82inQ=; b=zcZfYignRJgaR7E+a9UrQ2W5kHaC7C6bqwgG6KEBroOV/CxO0xVhtic0jk4F0RCX1ltxR9oHO mzz7XojaO0UA5mH1no0pEF4eCUnH6RxgScd4yoA+nnO42nuUvLrd9Mg X-Developer-Key: i=mpdesouza@suse.com; a=ed25519; pk=/Ni/TsKkr69EOmdZXkp1Q/BlzDonbOBRsfPa18ySIwU= Authentication-Results: smtp-out2.suse.de; none X-Spam-Level: X-Spam-Score: -0.20 X-Spamd-Result: default: False [-0.20 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_SPAM(5.10)[100.00%]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; REPLY(-4.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCPT_COUNT_SEVEN(0.00)[10]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Spam-Flag: NO We don't need new targets only to run two make modules and make clean. We can test if TEST_GEN_MODS_DIR is specified, and then run the commands. Signed-off-by: Marcos Paulo de Souza --- tools/testing/selftests/lib.mk | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 286ce0ee102b..eddcd4a849dc 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -58,8 +58,9 @@ TEST_GEN_PROGS := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS)) TEST_GEN_PROGS_EXTENDED := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS_EXTENDED)) TEST_GEN_FILES := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_FILES)) -all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) \ - $(if $(TEST_GEN_MODS_DIR),gen_mods_dir) +all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) + $(if $(TEST_GEN_MODS_DIR), \ + $(Q)$(MAKE) -C $(TEST_GEN_MODS_DIR)) define RUN_TESTS BASE_DIR="$(selfdir)"; \ @@ -85,11 +86,6 @@ else @$(call RUN_TESTS, $(TEST_GEN_PROGS) $(TEST_CUSTOM_PROGS) $(TEST_PROGS)) endif -gen_mods_dir: - $(Q)$(MAKE) -C $(TEST_GEN_MODS_DIR) - -clean_mods_dir: - $(Q)$(MAKE) -C $(TEST_GEN_MODS_DIR) clean define INSTALL_SINGLE_RULE $(if $(INSTALL_LIST),@mkdir -p $(INSTALL_PATH)) @@ -133,9 +129,11 @@ endif define CLEAN $(RM) -r $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) $(EXTRA_CLEAN) + $(if $(TEST_GEN_MODS_DIR), \ + $(Q)$(MAKE) -C $(TEST_GEN_MODS_DIR) clean) endef -clean: $(if $(TEST_GEN_MODS_DIR),clean_mods_dir) +clean: $(CLEAN) # Enables to extend CFLAGS and LDFLAGS from command line, e.g. @@ -166,4 +164,4 @@ $(OUTPUT)/%:%.S $(LINK.S) $^ $(LDLIBS) -o $@ endif -.PHONY: run_tests all clean install emit_tests gen_mods_dir clean_mods_dir +.PHONY: run_tests all clean install emit_tests -- 2.42.1