From patchwork Wed Jul 19 11:00:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1809831 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=Iaf5EwxY; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=Sl/e/jNo; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R5XvJ0LtFz1yY9 for ; Wed, 19 Jul 2023 21:01:48 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 23CFA3CE9D4 for ; Wed, 19 Jul 2023 13:01:46 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [IPv6:2001:4b78:1:20::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 2F2183C98EA for ; Wed, 19 Jul 2023 13:00:57 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) (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 in-2.smtp.seeweb.it (Postfix) with ESMTPS id 03761600A36 for ; Wed, 19 Jul 2023 13:00:56 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 141801FE7D; Wed, 19 Jul 2023 11:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1689764456; h=from:from:reply-to: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=5sG5HQeH9ccmdjRSN+hv3JzWX9xKsedTzFN+xAI2ZPg=; b=Iaf5EwxYxM1ttKYs5Gb0i9VM1iE0lgnY1ubqgMClDAD8+6QeurLwAoV3ybLxJrBKF+bX51 xJGvGscxKUeDCvSH3yVJJlUuvDuOldG7Ajlst6pGd2Xt9SktSyz+ADilAs6yD1mRyGJmMD nstpJ+beNSMd175ctbusMkERddJpctI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1689764456; h=from:from:reply-to: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=5sG5HQeH9ccmdjRSN+hv3JzWX9xKsedTzFN+xAI2ZPg=; b=Sl/e/jNoJg+wqXschTNviWv2MxmPnoym3utgiM62GY+VOWbBbhc3p3RFE9bXpHCBCDTd7a tiO7kKzkDxndAyAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 981671361C; Wed, 19 Jul 2023 11:00:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SIWEIWfCt2RtUgAAMHmgww (envelope-from ); Wed, 19 Jul 2023 11:00:55 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 19 Jul 2023 13:00:48 +0200 Message-Id: <20230719110051.1237775-2-pvorel@suse.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230719110051.1237775-1-pvorel@suse.cz> References: <20230719110051.1237775-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-2.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-2.smtp.seeweb.it Subject: [LTP] [PATCH v2 1/4] Makefile: Add C header with generated LTP version X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" From: Cyril Hrubis It will be used for printing LTP version in C API. Reviewed-by: Petr Vorel Signed-off-by: Cyril Hrubis Signed-off-by: Petr Vorel Reviewed-by: Li Wang --- lib/.gitignore | 2 ++ lib/Makefile | 13 +++++++++++++ lib/gen_version.sh | 16 ++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 lib/.gitignore create mode 100755 lib/gen_version.sh diff --git a/lib/.gitignore b/lib/.gitignore new file mode 100644 index 000000000..1bd967e2f --- /dev/null +++ b/lib/.gitignore @@ -0,0 +1,2 @@ +/ltp-version.h +/cached-version diff --git a/lib/Makefile b/lib/Makefile index 9b9906f25..ac1f62048 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -20,6 +20,19 @@ pc_file := $(DESTDIR)/$(datarootdir)/pkgconfig/ltp.pc INSTALL_TARGETS := $(pc_file) +tst_test.o: ltp-version.h + +ltp-version.h: gen_version + +MAKE_TARGETS += gen_version + +.PHONY: gen_version +gen_version: + @echo GEN ltp-version.h + @./gen_version.sh + +CLEAN_TARGETS += ltp-version.h cached-version + $(pc_file): test -d "$(@D)" || mkdir -p "$(@D)" install -m $(INSTALL_MODE) "$(builddir)/$(@F)" "$@" diff --git a/lib/gen_version.sh b/lib/gen_version.sh new file mode 100755 index 000000000..5d4250755 --- /dev/null +++ b/lib/gen_version.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +touch cached-version + +if git describe >/dev/null 2>&1; then + VERSION=`git describe` +else + VERSION=`cat $(dirname $0)/../VERSION` +fi + +CACHED_VERSION=`cat cached-version` + +if [ "$CACHED_VERSION" != "$VERSION" ]; then + echo "$VERSION" > cached-version + echo "#define LTP_VERSION \"$VERSION\"" > ltp-version.h +fi From patchwork Wed Jul 19 11:00:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1809828 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=rWzq1lmU; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=n5dVZNJt; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R5Xtd1JxTz1yY9 for ; Wed, 19 Jul 2023 21:01:13 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 044393CDD37 for ; Wed, 19 Jul 2023 13:01:11 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it [IPv6:2001:4b78:1:20::7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 9F5883C9733 for ; Wed, 19 Jul 2023 13:00:57 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (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 in-7.smtp.seeweb.it (Postfix) with ESMTPS id BC79F200A09 for ; Wed, 19 Jul 2023 13:00:56 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 6B65B1FE7E; Wed, 19 Jul 2023 11:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1689764456; h=from:from:reply-to: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=LNvEMaWKLoZIWsKGbjfTkwd/O5SjtfLcIBx7eRmTXo0=; b=rWzq1lmUZGkb1gp8HYTgvQEL6X0eYCQW9plKmp0hWsri5qSYY34yRJ4BtjuZCNgPHUYfXC pTmYOr7LrItyhDo0YpvOujU//8PuMbEWP8IRwE81sKSJx0QGMnQgNfcHLXd+QrzDCszH5g QJJi+HKKQYoxy22RpncsWebadip3Dko= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1689764456; h=from:from:reply-to: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=LNvEMaWKLoZIWsKGbjfTkwd/O5SjtfLcIBx7eRmTXo0=; b=n5dVZNJt+zfTNFm43keQXHmATm5DaxquCOcYPAK8XFN6jiGUtf8KwJeyNdMc8Czl2zSe5O 4Wk6XpJ5P/kB8HBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 1F1321361C; Wed, 19 Jul 2023 11:00:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id mLdfBWjCt2RtUgAAMHmgww (envelope-from ); Wed, 19 Jul 2023 11:00:56 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 19 Jul 2023 13:00:49 +0200 Message-Id: <20230719110051.1237775-3-pvorel@suse.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230719110051.1237775-1-pvorel@suse.cz> References: <20230719110051.1237775-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-7.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-7.smtp.seeweb.it Subject: [LTP] [PATCH v2 2/4] lib/C-API: Add option -V to print LTP version X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" It can be useful for troubleshooting reported issues. Signed-off-by: Petr Vorel --- lib/tst_test.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/tst_test.c b/lib/tst_test.c index 04da456c6..456d3d1e6 100644 --- a/lib/tst_test.c +++ b/lib/tst_test.c @@ -34,6 +34,7 @@ #include "old_resource.h" #include "old_device.h" #include "old_tmpdir.h" +#include "ltp-version.h" /* * Hack to get TCID defined in newlib tests @@ -509,6 +510,7 @@ static struct option { {"h", "-h Prints this help"}, {"i:", "-i n Execute test n times"}, {"I:", "-I x Execute test for n seconds"}, + {"V", "-V Prints LTP version"}, {"C:", "-C ARG Run child process with ARG arguments (used internally)"}, }; @@ -686,6 +688,10 @@ static void parse_opts(int argc, char *argv[]) else duration = SAFE_STRTOF(optarg, 0.1, HUGE_VALF); break; + case 'V': + fprintf(stderr, "LTP version: " LTP_VERSION "\n"); + exit(0); + break; case 'C': #ifdef UCLINUX child_args = optarg; From patchwork Wed Jul 19 11:00:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1809827 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=HpZ7MM3k; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=HI8PnSQp; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R5XtR59x7z1yY9 for ; Wed, 19 Jul 2023 21:01:03 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 730F03CB6C4 for ; Wed, 19 Jul 2023 13:00:59 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [217.194.8.5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 9F5F43C98EA for ; Wed, 19 Jul 2023 13:00:57 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (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 in-5.smtp.seeweb.it (Postfix) with ESMTPS id 1224460111D for ; Wed, 19 Jul 2023 13:00:57 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id CFE5B1FE7F; Wed, 19 Jul 2023 11:00:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1689764456; h=from:from:reply-to: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=avOfeVM6WCVZLKfZM4BMfvTDiAXy/vbHR8d+IMD0IMg=; b=HpZ7MM3k89q2WtltPZQoJ+NDmBmulqcihg18kxida9uc0PQRenVYLyqzYcwXMHX4a2iQuY Fl3/vLG7h0O/F4Cvx4ii3qo+jt1TV3YxBPugMdTkqYNpo6LEvPj+Qp+RaUWtf5za2sVip7 5tovgAt8Aj5Zl1GPu+6sYZoq8ivbLeM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1689764456; h=from:from:reply-to: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=avOfeVM6WCVZLKfZM4BMfvTDiAXy/vbHR8d+IMD0IMg=; b=HI8PnSQpdGLI5Gk4wTiquXCf/grFZZTLAACbMQx9vQdCPY34Lm/GzGbXdcnKUC2iXoAmcF UptNgzMn61izScBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8200F1361C; Wed, 19 Jul 2023 11:00:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id IOPRG2jCt2RtUgAAMHmgww (envelope-from ); Wed, 19 Jul 2023 11:00:56 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 19 Jul 2023 13:00:50 +0200 Message-Id: <20230719110051.1237775-4-pvorel@suse.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230719110051.1237775-1-pvorel@suse.cz> References: <20230719110051.1237775-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-5.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-5.smtp.seeweb.it Subject: [LTP] [PATCH v2 3/4] lib/C-API: Print LTP version at test start X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Although -V option for printing version was added in previous commit, having a way to always print LTP version at the beginning of the test (makes debugging of troubleshooting reported issues even easier). Signed-off-by: Petr Vorel Reviewed-by: Cyril Hrubis --- lib/tst_test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tst_test.c b/lib/tst_test.c index 456d3d1e6..0fcb43809 100644 --- a/lib/tst_test.c +++ b/lib/tst_test.c @@ -1677,6 +1677,8 @@ void tst_run_tcases(int argc, char *argv[], struct tst_test *self) SAFE_SIGNAL(SIGALRM, alarm_handler); SAFE_SIGNAL(SIGUSR1, heartbeat_handler); + tst_res(TINFO, "LTP version: "LTP_VERSION); + if (tst_test->max_runtime) results->max_runtime = multiply_runtime(tst_test->max_runtime); From patchwork Wed Jul 19 11:00:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1809829 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=avYkrTlF; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=xJg7lf7P; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4R5Xtt2M5Qz1yY9 for ; Wed, 19 Jul 2023 21:01:26 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 4659B3CB6C4 for ; Wed, 19 Jul 2023 13:01:24 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 115ED3C9733 for ; Wed, 19 Jul 2023 13:00:57 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) (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 in-6.smtp.seeweb.it (Postfix) with ESMTPS id 7977E1400451 for ; Wed, 19 Jul 2023 13:00:57 +0200 (CEST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 1B1E521B27; Wed, 19 Jul 2023 11:00:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1689764457; h=from:from:reply-to: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=f2qfkxP5Yykfg1tSV2XqfZsrWXK1B97QjCzbwsJgO74=; b=avYkrTlFp3E0kg7rzj+fcxgmyin8I3TDlDUAgXhA2XeKYaefy6QLXNlxBf6K5UR28163ba cv23sQlN6E63dvvtf2buGc90ng+LY0z/oB3AfLGr/Cta9dN/2gPyAC6bvFQv7TNWHVTVVM fQgpzrwN81Q8CUmTKZ/O8BOcUGQUL38= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1689764457; h=from:from:reply-to: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=f2qfkxP5Yykfg1tSV2XqfZsrWXK1B97QjCzbwsJgO74=; b=xJg7lf7PO39xyy88V9vINCf14aVqN0uE27lIn4YjYYY1omZkL4eRK4y+My12Eg77YEAeoV ijWtrBLrwlQIE7CA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id DB3311361C; Wed, 19 Jul 2023 11:00:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id yNfrMmjCt2RtUgAAMHmgww (envelope-from ); Wed, 19 Jul 2023 11:00:56 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Wed, 19 Jul 2023 13:00:51 +0200 Message-Id: <20230719110051.1237775-5-pvorel@suse.cz> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230719110051.1237775-1-pvorel@suse.cz> References: <20230719110051.1237775-1-pvorel@suse.cz> MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 1.0.1 at in-6.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=disabled version=4.0.0 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on in-6.smtp.seeweb.it Subject: [LTP] [PATCH v2 4/4] lib: Move gitignore entries to their directory X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Signed-off-by: Petr Vorel Reviewed-by: Cyril Hrubis --- .gitignore | 18 ------------------ lib/.gitignore | 1 + lib/tests/.gitignore | 17 +++++++++++++++++ 3 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 lib/tests/.gitignore diff --git a/.gitignore b/.gitignore index 915d22104..85bcf052b 100644 --- a/.gitignore +++ b/.gitignore @@ -41,7 +41,6 @@ autom4te.cache /include/mk/config-openposix.mk /include/mk/features.mk /m4/ltp-version.m4 -/lib/ltp.pc /pan/ltp-bump /pan/ltp-pan @@ -63,20 +62,3 @@ patches/ logfile.* /utils/benchmark/ebizzy-0.3/ebizzy -/lib/tests/tst_tmpdir_test -/lib/tests/tst_checkpoint -/lib/tests/tst_checkpoint_wait_timeout -/lib/tests/tst_checkpoint_wake_timeout -/lib/tests/tst_process_state -/lib/tests/tst_cleanup_once -/lib/tests/tst_safe_macros -/lib/tests/tst_strsig -/lib/tests/tst_strerrno -/lib/tests/tst_fs_fill_subdirs -/lib/tests/tst_fs_fill_hardlinks -/lib/tests/tst_device -/lib/tests/tst_record_childstatus -/lib/tests/trerrno -/lib/tests/tst_dataroot01 -/lib/tests/tst_dataroot02 -/lib/tests/tst_dataroot03 diff --git a/lib/.gitignore b/lib/.gitignore index 1bd967e2f..eb9901169 100644 --- a/lib/.gitignore +++ b/lib/.gitignore @@ -1,2 +1,3 @@ /ltp-version.h /cached-version +/ltp.pc diff --git a/lib/tests/.gitignore b/lib/tests/.gitignore new file mode 100644 index 000000000..1d880c1b7 --- /dev/null +++ b/lib/tests/.gitignore @@ -0,0 +1,17 @@ +/tst_tmpdir_test +/tst_checkpoint +/tst_checkpoint_wait_timeout +/tst_checkpoint_wake_timeout +/tst_process_state +/tst_cleanup_once +/tst_safe_macros +/tst_strsig +/tst_strerrno +/tst_fs_fill_subdirs +/tst_fs_fill_hardlinks +/tst_device +/tst_record_childstatus +/trerrno +/tst_dataroot01 +/tst_dataroot02 +/tst_dataroot03