[LTP] [PATCH 4/4] network: Remove clockdiff01.sh test

Petr Vorel pvorel@suse.cz
Thu Feb 8 09:59:30 CET 2024


clockdiff is not much relevant nowadays, thus remove it.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 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 <alexey.kodanev@oracle.com>
-
-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
-- 
2.43.0



More information about the ltp mailing list