From patchwork Thu Feb 8 08:59:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1896469 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=y1zrylsX; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=qafq0vUa; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=y1zrylsX; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=qafq0vUa; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=patchwork.ozlabs.org) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TVrYL6TdSz23h2 for ; Thu, 8 Feb 2024 20:00:38 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id CE3AA3CE32E for ; Thu, 8 Feb 2024 10:00:36 +0100 (CET) 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 (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 7268C3CC4B5 for ; Thu, 8 Feb 2024 09:59:40 +0100 (CET) Authentication-Results: in-2.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=2a07:de40:b251:101:10:150:64:2; helo=smtp-out2.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2a07:de40:b251:101:10:150:64:2]) (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 D961360673C for ; Thu, 8 Feb 2024 09:59:38 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (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 0D98A1FD89; Thu, 8 Feb 2024 08:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707382778; 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=/3uP134n2M902t2rF+yk9CBjBNyDi09XNDG4FcwW9VI=; b=y1zrylsXLXj46Yu/szawTkZbsw+idc8eZk50Lv9Cn6IasLwkqAjAk9HzcXCXlobjNnvA2C kNgAyDAr/N3X7pzbpg0f/dFuiJbG0YYltmXmHPg6Edat2eUWfgjwc6sGvmq1DCay3Smz/L oOSAC+avbLxb/o0XrYdOLrY3C8DL8kc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707382778; 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=/3uP134n2M902t2rF+yk9CBjBNyDi09XNDG4FcwW9VI=; b=qafq0vUaJS5WX5sDiaTpIiJ/oyxkScttknfheQnsr+lMqKqRU72xV27wjF/HrIeqA638ap ryyc4ixLoObaTSAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707382778; 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=/3uP134n2M902t2rF+yk9CBjBNyDi09XNDG4FcwW9VI=; b=y1zrylsXLXj46Yu/szawTkZbsw+idc8eZk50Lv9Cn6IasLwkqAjAk9HzcXCXlobjNnvA2C kNgAyDAr/N3X7pzbpg0f/dFuiJbG0YYltmXmHPg6Edat2eUWfgjwc6sGvmq1DCay3Smz/L oOSAC+avbLxb/o0XrYdOLrY3C8DL8kc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707382778; 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=/3uP134n2M902t2rF+yk9CBjBNyDi09XNDG4FcwW9VI=; b=qafq0vUaJS5WX5sDiaTpIiJ/oyxkScttknfheQnsr+lMqKqRU72xV27wjF/HrIeqA638ap ryyc4ixLoObaTSAw== Received: from imap1.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 imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id E3C5513985; Thu, 8 Feb 2024 08:59:37 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id wDM6NvmXxGUoDgAAD6G6ig (envelope-from ); Thu, 08 Feb 2024 08:59:37 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Thu, 8 Feb 2024 09:59:27 +0100 Message-ID: <20240208085932.182167-2-pvorel@suse.cz> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240208085932.182167-1-pvorel@suse.cz> References: <20240208085932.182167-1-pvorel@suse.cz> MIME-Version: 1.0 Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=y1zrylsX; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=qafq0vUa X-Spamd-Result: default: False [0.69 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.cz:+]; MX_GOOD(-0.01)[]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spam-Score: 0.69 X-Rspamd-Queue-Id: 0D98A1FD89 X-Spam-Level: X-Spamd-Bar: / X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,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-2.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-2.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 1/4] network: Remove host01.sh 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: , Cc: automated-testing@lists.yoctoproject.org Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Testing old host functionality requires proper DNS setup. That would be quite complicated setup and result would be to test bind project userspace tool instead of kernel internals. Testing remote host e.g. host example.org would require SUT having internet connection. Testing hostnamectl would make more sense nowadays, therefore remove the test. Signed-off-by: Petr Vorel Reviewed-by: Cyril Hrubis --- runtest/net.tcp_cmds | 1 - testcases/network/tcp_cmds/host/Makefile | 11 -------- testcases/network/tcp_cmds/host/host01.sh | 34 ----------------------- 3 files changed, 46 deletions(-) delete mode 100644 testcases/network/tcp_cmds/host/Makefile delete mode 100755 testcases/network/tcp_cmds/host/host01.sh diff --git a/runtest/net.tcp_cmds b/runtest/net.tcp_cmds index 7e142de11..c63223763 100644 --- a/runtest/net.tcp_cmds +++ b/runtest/net.tcp_cmds @@ -7,7 +7,6 @@ ipneigh01_ip ipneigh01.sh -c ip arping01 arping01.sh clockdiff01 clockdiff01.sh ftp ftp01.sh -host host01.sh netstat netstat01.sh ping01 ping01.sh ping02 ping02.sh diff --git a/testcases/network/tcp_cmds/host/Makefile b/testcases/network/tcp_cmds/host/Makefile deleted file mode 100644 index 453951e0d..000000000 --- a/testcases/network/tcp_cmds/host/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (C) 2009, Cisco Systems Inc. -# Ngie Cooper, July 2009 - -top_srcdir ?= ../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk - -INSTALL_TARGETS := host01.sh - -include $(top_srcdir)/include/mk/generic_leaf_target.mk diff --git a/testcases/network/tcp_cmds/host/host01.sh b/testcases/network/tcp_cmds/host/host01.sh deleted file mode 100755 index 9ed44bae3..000000000 --- a/testcases/network/tcp_cmds/host/host01.sh +++ /dev/null @@ -1,34 +0,0 @@ -#!/bin/sh -# SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) 2020 Petr Vorel -# Copyright (c) Köry Maincent 2020 -# Copyright (c) Manoj Iyer 2003 -# Copyright (c) Robbie Williamson 2001 -# Copyright (c) International Business Machines Corp., 2000 - -TST_TESTFUNC="do_test" -TST_NEEDS_CMDS="awk grep host hostname tail" - - -do_test() -{ - local lhost="${HOSTNAME:-$(hostname)}" - local addr - - tst_res TINFO "test basic functionality of the host command" - tst_res TINFO "lhost: $lhost" - - if addr=$(host $lhost); then - addr=$(echo "$addr" | grep address | tail -1 | awk '{print $NF}') - if [ -z "$addr" ]; then - tst_res TFAIL "empty address" - return - fi - EXPECT_PASS host $addr \>/dev/null - else - tst_res TFAIL "host $lhost on local machine failed" - fi -} - -. tst_net.sh -tst_run From patchwork Thu Feb 8 08:59:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1896468 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=EX6ewzg1; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=sEz+egaX; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=EX6ewzg1; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=sEz+egaX; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TVrY261HXz23h2 for ; Thu, 8 Feb 2024 20:00:22 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id C60613CC4BC for ; Thu, 8 Feb 2024 10:00:20 +0100 (CET) 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 [IPv6:2001:4b78:1:20::5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 6A0FF3CC4AD for ; Thu, 8 Feb 2024 09:59:39 +0100 (CET) Authentication-Results: in-5.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=195.135.223.131; helo=smtp-out2.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 3B6D160010F for ; Thu, 8 Feb 2024 09:59:38 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (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 298EB1FD8B; Thu, 8 Feb 2024 08:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707382778; 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=P6Q4tdoTvsv3FVK5xSRRuyZzLLHWGd3/RJcNHbIfKU0=; b=EX6ewzg1GbXrf/DrsvcGvxu3FVMdX8QOakNhr+ga49ywag++4nnc9z+Na+pyGtaHEMA9rg A/SUvIALR7g71Q2r1HRwpI3qtGKqC6n2/FDI56n5aVnYBTpGpNw+j/B8V0vGONM2Avr4Jc S2DMKQBcsZpS/FuZwxJoUOq+qmMwapE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707382778; 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=P6Q4tdoTvsv3FVK5xSRRuyZzLLHWGd3/RJcNHbIfKU0=; b=sEz+egaX7GVK/e264016bpZc/6L978YFnd/rxf+XYaSw4fhEh+F5qGMN0bWSxQSvQIzF5L Ffa8RP0CWOdRM4Cg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707382778; 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=P6Q4tdoTvsv3FVK5xSRRuyZzLLHWGd3/RJcNHbIfKU0=; b=EX6ewzg1GbXrf/DrsvcGvxu3FVMdX8QOakNhr+ga49ywag++4nnc9z+Na+pyGtaHEMA9rg A/SUvIALR7g71Q2r1HRwpI3qtGKqC6n2/FDI56n5aVnYBTpGpNw+j/B8V0vGONM2Avr4Jc S2DMKQBcsZpS/FuZwxJoUOq+qmMwapE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707382778; 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=P6Q4tdoTvsv3FVK5xSRRuyZzLLHWGd3/RJcNHbIfKU0=; b=sEz+egaX7GVK/e264016bpZc/6L978YFnd/rxf+XYaSw4fhEh+F5qGMN0bWSxQSvQIzF5L Ffa8RP0CWOdRM4Cg== Received: from imap1.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 imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 129791398A; Thu, 8 Feb 2024 08:59:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id wMWtA/qXxGUoDgAAD6G6ig (envelope-from ); Thu, 08 Feb 2024 08:59:38 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Thu, 8 Feb 2024 09:59:28 +0100 Message-ID: <20240208085932.182167-3-pvorel@suse.cz> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240208085932.182167-1-pvorel@suse.cz> References: <20240208085932.182167-1-pvorel@suse.cz> MIME-Version: 1.0 X-Spam-Level: X-Spamd-Bar: / Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=EX6ewzg1; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=sEz+egaX X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [0.52 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.cz:+]; MX_GOOD(-0.01)[]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_SHORT(-0.17)[-0.859]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Score: 0.52 X-Rspamd-Queue-Id: 298EB1FD8B 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 X-Virus-Scanned: clamav-milter 1.0.3 at in-5.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 2/4] network: remove xinetd_tests.sh 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: , Cc: automated-testing@lists.yoctoproject.org Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" xinetd is nowadays replaced with systemd socket activation. Therefore remove the test. Signed-off-by: Petr Vorel Reviewed-by: Cyril Hrubis --- runtest/net.tcp_cmds | 1 - testcases/network/xinetd/Makefile | 11 --- testcases/network/xinetd/xinetd_tests.sh | 113 ----------------------- 3 files changed, 125 deletions(-) delete mode 100644 testcases/network/xinetd/Makefile delete mode 100755 testcases/network/xinetd/xinetd_tests.sh diff --git a/runtest/net.tcp_cmds b/runtest/net.tcp_cmds index c63223763..83f7c5b78 100644 --- a/runtest/net.tcp_cmds +++ b/runtest/net.tcp_cmds @@ -21,4 +21,3 @@ dnsmasq dnsmasq_tests.sh iproute ip_tests.sh tracepath01 tracepath01.sh traceroute01 traceroute01.sh -xinetd xinetd_tests.sh diff --git a/testcases/network/xinetd/Makefile b/testcases/network/xinetd/Makefile deleted file mode 100644 index b789b2a3a..000000000 --- a/testcases/network/xinetd/Makefile +++ /dev/null @@ -1,11 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (C) 2009, Cisco Systems Inc. -# Ngie Cooper, July 2009 - -top_srcdir ?= ../../.. - -include $(top_srcdir)/include/mk/env_pre.mk - -INSTALL_TARGETS := xinetd_tests.sh - -include $(top_srcdir)/include/mk/generic_leaf_target.mk diff --git a/testcases/network/xinetd/xinetd_tests.sh b/testcases/network/xinetd/xinetd_tests.sh deleted file mode 100755 index 25ec91d26..000000000 --- a/testcases/network/xinetd/xinetd_tests.sh +++ /dev/null @@ -1,113 +0,0 @@ -#!/bin/sh -# SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) 2020 Petr Vorel -# Copyright (c) 2016 Oracle and/or its affiliates. All Rights Reserved. -# Copyright (c) International Business Machines Corp., 2001 - -TST_SETUP="setup" -TST_CLEANUP="cleanup" -TST_NEEDS_CMDS="diff telnet in.telnetd xinetd" -TST_NEEDS_TMPDIR=1 -TST_TESTFUNC="do_test" -TST_CNT=2 - -. daemonlib.sh - -setup() -{ - [ -f "/usr/lib/systemd/system/telnet.socket" ] && \ - tst_brk TCONF "xinetd doesn't manage telnet" - - check_addr="127.0.0.1" - ip a | grep -q inet6 && check_addr="$check_addr ::1" - - cat > tst_xinetd.conf.1 <<-EOF -defaults -{ - instances = 25 - log_type = FILE /var/log/servicelog - log_on_success = HOST PID - log_on_failure = HOST - disabled = telnet -} -EOF - - cat > tst_xinetd.conf.2 <<-EOF -defaults -{ - instances = 25 - log_type = FILE /var/log/servicelog - log_on_success = HOST PID - log_on_failure = HOST - # disabled = telnet -} - -service telnet -{ - socket_type = stream - protocol = tcp - wait = no - user = root - server = /usr/sbin/in.telnetd - server_args = -n - no_access = - flags = IPv6 -} -EOF - ROD mv /etc/xinetd.conf xinetd.conf.orig -} - -cleanup() -{ - [ -f xinetd.conf.orig ] && \ - mv xinetd.conf.orig /etc/xinetd.conf - - restart_daemon xinetd -} - -restart_xinetd() -{ - tst_res TINFO "restart xinetd" - restart_daemon xinetd > tst_xinetd.out 2>&1 - if [ $? -ne 0 ]; then - cat tst_xinetd.out - tst_brk TBROK "unable to restart service with telnet disabled" - fi - - grep -qi "fail" tst_xinetd.out && \ - tst_brk TBROK "xinetd failed to restart" -} - -xinetd_test() -{ - local cnt=$1 - local desc="$2" - local pattern="$3" - local a p - - tst_res TINFO "install the new config file with telnet $desc" - ROD mv tst_xinetd.conf.$cnt /etc/xinetd.conf - restart_xinetd - - for a in $check_addr; do - p=$(echo $pattern | sed "s/ADDR/$a/") - if ! echo '' | telnet $a 2>&1 | grep -qiE "$p"; then - tst_res TFAIL "not expected output for 'telnet $a'" - return - fi - done - tst_res TPASS "expected output with telnet $desc" -} - -do_test() -{ - case $1 in - 1) xinetd_test $1 "disabled" \ - "telnet: (connect to address ADDR|Unable to connect to remote host): Connection refused";; - 2) xinetd_test $1 "enabled" \ - "Connection closed by foreign host";; - esac -} - -. tst_net.sh -tst_run From patchwork Thu Feb 8 08:59:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1896470 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=zFc5Q+FX; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=V85CudOt; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=zFc5Q+FX; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=V85CudOt; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TVrYg2KxXz23h2 for ; Thu, 8 Feb 2024 20:00:55 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 58AAC3CF547 for ; Thu, 8 Feb 2024 10:00:53 +0100 (CET) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 564723CF542 for ; Thu, 8 Feb 2024 09:59:48 +0100 (CET) Authentication-Results: in-6.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=2a07:de40:b251:101:10:150:64:1; helo=smtp-out1.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) (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 802421400998 for ; Thu, 8 Feb 2024 09:59:39 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (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-out1.suse.de (Postfix) with ESMTPS id 8305622389; Thu, 8 Feb 2024 08:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707382778; 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=Yy6TdfeN5UJ7G/BuI8eAAetwGU03TNC6jPVYJ31S0lA=; b=zFc5Q+FXYbugvlgbo43p60PQoUMT0/vQrjB5sAnts1sxdVzziF8la1mKH9TBS9O3PZu4AS fsVHqLRIJMVQeLKLxf2XZjNjd7siTYNSXuFQ9D2SaQGjHixgQYqOq7vOC6w3uJkPAdw31Z tvAdBwxpY0KvqLj5xbM2X4bhJTBIKKc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707382778; 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=Yy6TdfeN5UJ7G/BuI8eAAetwGU03TNC6jPVYJ31S0lA=; b=V85CudOtBB0p9IjRP1mhBLuHAf03tMZAtHXpaIeMc9NfBRbkngWWmZrB/JOnECQ8QKmijP 1G3thyM80zfH5kAw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707382778; 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=Yy6TdfeN5UJ7G/BuI8eAAetwGU03TNC6jPVYJ31S0lA=; b=zFc5Q+FXYbugvlgbo43p60PQoUMT0/vQrjB5sAnts1sxdVzziF8la1mKH9TBS9O3PZu4AS fsVHqLRIJMVQeLKLxf2XZjNjd7siTYNSXuFQ9D2SaQGjHixgQYqOq7vOC6w3uJkPAdw31Z tvAdBwxpY0KvqLj5xbM2X4bhJTBIKKc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707382778; 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=Yy6TdfeN5UJ7G/BuI8eAAetwGU03TNC6jPVYJ31S0lA=; b=V85CudOtBB0p9IjRP1mhBLuHAf03tMZAtHXpaIeMc9NfBRbkngWWmZrB/JOnECQ8QKmijP 1G3thyM80zfH5kAw== Received: from imap1.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 imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 30CEF13A29; Thu, 8 Feb 2024 08:59:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id GG8TC/qXxGUoDgAAD6G6ig (envelope-from ); Thu, 08 Feb 2024 08:59:38 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Thu, 8 Feb 2024 09:59:29 +0100 Message-ID: <20240208085932.182167-4-pvorel@suse.cz> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240208085932.182167-1-pvorel@suse.cz> References: <20240208085932.182167-1-pvorel@suse.cz> MIME-Version: 1.0 Authentication-Results: smtp-out1.suse.de; none X-Spamd-Result: default: False [10.00 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BAYES_SPAM(5.10)[100.00%]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[] X-Spam-Score: 10.00 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-6.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-6.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 3/4] network: Remove telnet01.sh test 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: , Cc: automated-testing@lists.yoctoproject.org Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" login via telnet has been obsolete for ages. Testing it nowadays does not make sense, remove it. Signed-off-by: Petr Vorel Reviewed-by: Cyril Hrubis --- runtest/net.tcp_cmds | 1 - testcases/network/tcp_cmds/telnet/Makefile | 29 ------ testcases/network/tcp_cmds/telnet/telnet01.sh | 96 ------------------- 3 files changed, 126 deletions(-) delete mode 100644 testcases/network/tcp_cmds/telnet/Makefile delete mode 100755 testcases/network/tcp_cmds/telnet/telnet01.sh diff --git a/runtest/net.tcp_cmds b/runtest/net.tcp_cmds index 83f7c5b78..d6ba49e07 100644 --- a/runtest/net.tcp_cmds +++ b/runtest/net.tcp_cmds @@ -13,7 +13,6 @@ ping02 ping02.sh sendfile sendfile01.sh tc01 tc01.sh tcpdump tcpdump01.sh -telnet telnet01.sh iptables iptables01.sh nft nft01.sh dhcpd dhcpd_tests.sh diff --git a/testcases/network/tcp_cmds/telnet/Makefile b/testcases/network/tcp_cmds/telnet/Makefile deleted file mode 100644 index 90e879de2..000000000 --- a/testcases/network/tcp_cmds/telnet/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# -# network/tcp_cmds/telnet testcases Makefile. -# -# Copyright (C) 2009, Cisco Systems Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Ngie Cooper, July 2009 -# - -top_srcdir ?= ../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk - -INSTALL_TARGETS := telnet01.sh - -include $(top_srcdir)/include/mk/generic_leaf_target.mk diff --git a/testcases/network/tcp_cmds/telnet/telnet01.sh b/testcases/network/tcp_cmds/telnet/telnet01.sh deleted file mode 100755 index 93343b995..000000000 --- a/testcases/network/tcp_cmds/telnet/telnet01.sh +++ /dev/null @@ -1,96 +0,0 @@ -#!/bin/sh -# Copyright (c) International Business Machines Corp., 2000 -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See -# the GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -# -# 03/01 Robbie Williamson (robbiew@us.ibm.com) - -TCID="telnet01" -TST_TOTAL=1 - -TST_USE_LEGACY_API=1 - -setup() -{ - tst_require_cmds telnet expect - - if [ -z $RUSER ]; then - RUSER=root - fi - - if [ -z $PASSWD ]; then - tst_brkm TCONF "Please set PASSWD for $RUSER." - fi - - if [ -z $RHOST ]; then - tst_brkm TCONF "Please set RHOST." - fi - - if [ -z $LOOPCOUNT ]; then - LOOPCOUNT=25 - fi -} - -do_test() -{ - tst_resm TINFO "Starting" - - for i in $(seq 1 ${LOOPCOUNT}) - do - telnet_test || return 1 - done -} - -telnet_test() -{ - tst_resm TINFO "login with telnet($i/$LOOPCOUNT)" - - expect -c " - spawn telnet $RHOST - - expect -re \"login:\" - send \"$RUSER\r\" - - expect -re \"Password:\" - send \"$PASSWD\r\" - - expect { - \"incorrect\" { - exit 1 - } \"$RUSER@\" { - send \"LC_ALL=C ls -l /etc/hosts | \\ - wc -w > $RUSER.$RHOST\rexit\r\"; - exp_continue} - } - - " > /dev/null || return 1 - - tst_resm TINFO "checking telnet status($i/$LOOPCOUNT)" - tst_rhost_run -u $RUSER -c "grep -q 9 $RUSER.$RHOST" || return 1 - tst_rhost_run -u $RUSER -c "rm -f $RUSER.$RHOST" -} - -. tst_net.sh - -setup - -do_test -if [ $? -ne 0 ]; then - tst_resm TFAIL "Test $TCID failed." -else - tst_resm TPASS "Test $TCID succeeded." -fi - -tst_exit From patchwork Thu Feb 8 08:59:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Petr Vorel X-Patchwork-Id: 1896467 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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=yslu13hb; dkim=fail reason="signature verification failed" header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=oBfRPWmC; dkim=fail reason="signature verification failed" (1024-bit key) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa header.b=yslu13hb; dkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=oBfRPWmC; dkim-atps=neutral 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=patchwork.ozlabs.org) 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 (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TVrXc3smLz23hn for ; Thu, 8 Feb 2024 20:00:00 +1100 (AEDT) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 975533CC4AD for ; Thu, 8 Feb 2024 09:59:58 +0100 (CET) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 1D5213CC4AD for ; Thu, 8 Feb 2024 09:59:40 +0100 (CET) Authentication-Results: in-4.smtp.seeweb.it; spf=pass (sender SPF authorized) smtp.mailfrom=suse.cz (client-ip=2a07:de40:b251:101:10:150:64:1; helo=smtp-out1.suse.de; envelope-from=pvorel@suse.cz; receiver=lists.linux.it) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2a07:de40:b251:101:10:150:64:1]) (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-4.smtp.seeweb.it (Postfix) with ESMTPS id 6CA6711F6454 for ; Thu, 8 Feb 2024 09:59:39 +0100 (CET) Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (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-out1.suse.de (Postfix) with ESMTPS id A184C22393; Thu, 8 Feb 2024 08:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707382778; 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=QITzb9SqfWSC13RYFXcsCSPagD2U0xIOctHBkxOWJag=; b=yslu13hbjwwSI4v5ib62aVlwbfZ4Y6dJgIWbc2bq/dDHjjBrlNRb1fApXJAjYSQPfEv4Re Geg1XzGo87a8iA9850KVvBtdUq846ct1+lUmMib6PxN9SCYKSmA9o8hSj+yvKXoq74akJQ ceN0RsyT94t+n+KIpFuHCWlaycQ5mF4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707382778; 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=QITzb9SqfWSC13RYFXcsCSPagD2U0xIOctHBkxOWJag=; b=oBfRPWmCu3GHK6MnHU/K+haJ9gx8BgDcHIPjj+1WXR751l99WsBe1JJFFIEjky/ht/i867 5sM4cN8g3nwn2/CQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1707382778; 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=QITzb9SqfWSC13RYFXcsCSPagD2U0xIOctHBkxOWJag=; b=yslu13hbjwwSI4v5ib62aVlwbfZ4Y6dJgIWbc2bq/dDHjjBrlNRb1fApXJAjYSQPfEv4Re Geg1XzGo87a8iA9850KVvBtdUq846ct1+lUmMib6PxN9SCYKSmA9o8hSj+yvKXoq74akJQ ceN0RsyT94t+n+KIpFuHCWlaycQ5mF4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1707382778; 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=QITzb9SqfWSC13RYFXcsCSPagD2U0xIOctHBkxOWJag=; b=oBfRPWmCu3GHK6MnHU/K+haJ9gx8BgDcHIPjj+1WXR751l99WsBe1JJFFIEjky/ht/i867 5sM4cN8g3nwn2/CQ== Received: from imap1.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 imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 5870D13984; Thu, 8 Feb 2024 08:59:38 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap1.dmz-prg2.suse.org with ESMTPSA id CB12FPqXxGUoDgAAD6G6ig (envelope-from ); Thu, 08 Feb 2024 08:59:38 +0000 From: Petr Vorel To: ltp@lists.linux.it Date: Thu, 8 Feb 2024 09:59:30 +0100 Message-ID: <20240208085932.182167-5-pvorel@suse.cz> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240208085932.182167-1-pvorel@suse.cz> References: <20240208085932.182167-1-pvorel@suse.cz> MIME-Version: 1.0 Authentication-Results: smtp-out1.suse.de; none X-Spam-Score: 3.86 X-Spamd-Result: default: False [3.86 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; BROKEN_CONTENT_TYPE(1.50)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.04)[-0.186]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.00)[15.85%] 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-4.smtp.seeweb.it X-Virus-Scanned: clamav-milter 1.0.3 at in-4.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH 4/4] network: Remove clockdiff01.sh test 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: , Cc: automated-testing@lists.yoctoproject.org Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" clockdiff is not much relevant nowadays, thus remove it. Signed-off-by: Petr Vorel Reviewed-by: Cyril Hrubis --- runtest/net.tcp_cmds | 1 - testcases/network/tcp_cmds/clockdiff/Makefile | 10 ------- .../network/tcp_cmds/clockdiff/clockdiff01.sh | 30 ------------------- 3 files changed, 41 deletions(-) delete mode 100644 testcases/network/tcp_cmds/clockdiff/Makefile delete mode 100755 testcases/network/tcp_cmds/clockdiff/clockdiff01.sh diff --git a/runtest/net.tcp_cmds b/runtest/net.tcp_cmds index d6ba49e07..248c7371d 100644 --- a/runtest/net.tcp_cmds +++ b/runtest/net.tcp_cmds @@ -5,7 +5,6 @@ ipneigh01_arp ipneigh01.sh -c arp ipneigh01_ip ipneigh01.sh -c ip arping01 arping01.sh -clockdiff01 clockdiff01.sh ftp ftp01.sh netstat netstat01.sh ping01 ping01.sh diff --git a/testcases/network/tcp_cmds/clockdiff/Makefile b/testcases/network/tcp_cmds/clockdiff/Makefile deleted file mode 100644 index d2e72519a..000000000 --- a/testcases/network/tcp_cmds/clockdiff/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) 2016-2019 Oracle and/or its affiliates. All Rights Reserved. - -top_srcdir ?= ../../../.. - -include $(top_srcdir)/include/mk/env_pre.mk - -INSTALL_TARGETS := clockdiff01.sh - -include $(top_srcdir)/include/mk/generic_leaf_target.mk diff --git a/testcases/network/tcp_cmds/clockdiff/clockdiff01.sh b/testcases/network/tcp_cmds/clockdiff/clockdiff01.sh deleted file mode 100755 index 4058fbe11..000000000 --- a/testcases/network/tcp_cmds/clockdiff/clockdiff01.sh +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (c) 2016-2019 Oracle and/or its affiliates. All Rights Reserved. -# Author: Alexey Kodanev - -TST_TESTFUNC="do_test" -TST_NEEDS_ROOT=1 -TST_NEEDS_CMDS="cut clockdiff" - - -do_test() -{ - tst_res TINFO "check time delta for $(tst_ipaddr)" - - local output=$(clockdiff $(tst_ipaddr)) - - if [ $? -ne 0 ]; then - tst_res TFAIL "clockdiff failed to get delta" - else - delta=$(echo "$output" | cut -d' ' -f2,3) - if [ "$delta" = "0 0" ]; then - tst_res TPASS "delta is 0 as expected" - else - tst_res TFAIL "not expected data received: '$output'" - fi - fi -} - -. tst_net.sh -tst_run