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