Skip to content

Commit

Permalink
tcp_cmds: Remove ftp01.sh test, binary data files
Browse files Browse the repository at this point in the history
FTP login tests were removed in 6282e55, as out of scope of
of kernel testing. ftp01.sh is FTP server unit test, which is also not
relevant for kernel testing, thus removing.

Remove also binary data files bin.sm, bin.med, bin.lg, bin.jmb which are
not needed any more.

Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Wei Gao <[email protected]>
Reviewed-by: Cyril Hrubis <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Nov 4, 2024
1 parent 2345298 commit b8531de
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 140 deletions.
1 change: 0 additions & 1 deletion runtest/net.tcp_cmds
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
ipneigh01_arp ipneigh01.sh -c arp
ipneigh01_ip ipneigh01.sh -c ip
arping01 arping01.sh
ftp ftp01.sh
netstat netstat01.sh
ping01 ping01.sh
ping02 ping02.sh
Expand Down
1 change: 0 additions & 1 deletion testcases/network/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ CLEAN_TARGETS += $(DIR)
INSTALL_DIR := testcases/bin

INSTALL_TARGETS := $(addprefix $(DIR)/ascii.,sm med lg jmb)
INSTALL_TARGETS += $(addprefix $(DIR)/bin.,sm med lg jmb)

RM += -r

Expand Down
26 changes: 0 additions & 26 deletions testcases/network/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,3 @@ fi
"$make_file" "$medium_file" $medium_size
"$make_file" "$large_file" $large_size
"$make_file" "$jumbo_file" $jumbo_size

if [ ! -e "bin.sm" ] ; then
cnt=0
while [ $cnt -lt 5 ] ; do
gzip -1 -c -n ascii.sm >> "bin.sm"
cnt=$(($cnt + 1))
done
fi

genfile() {
local input="$1" output="$2"
local cnt=19

[ -e "$output" ] && return $?

while [ $cnt -ge 0 ] ; do
cat "$input" >> "$output"
cnt=$(($cnt-1))
done
}

genfile bin.sm bin.med
genfile bin.med bin.lg
genfile bin.lg bin.jmb

chmod 666 bin.*
8 changes: 2 additions & 6 deletions testcases/network/tcp_cmds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@ top_srcdir ?= ../../..

include $(top_srcdir)/include/mk/env_pre.mk

ifneq ($(WITH_EXPECT),yes)
FILTER_OUT_SUBDIRS := ftp
endif
INSTALL_DEPS := ../datafiles/ascii.sm

INSTALL_DEPS := ../datafiles/bin.sm

../datafiles/bin.sm:
../datafiles/ascii.sm:
$(MAKE) -C .. -f "$(abs_srcdir)/../Makefile" generate

include $(top_srcdir)/include/mk/generic_trunk_target.mk
2 changes: 1 addition & 1 deletion testcases/network/tcp_cmds/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

GENERATE_FILE_DIR := ../..

MAKE_DEPS := $(GENERATE_FILE_DIR)/datafiles/bin.sm
MAKE_DEPS := $(GENERATE_FILE_DIR)/datafiles/ascii.sm

$(MAKE_DEPS):
$(MAKE) -C $(GENERATE_FILE_DIR) \
Expand Down
30 changes: 0 additions & 30 deletions testcases/network/tcp_cmds/ftp/Makefile

This file was deleted.

75 changes: 0 additions & 75 deletions testcases/network/tcp_cmds/ftp/ftp01.sh

This file was deleted.

0 comments on commit b8531de

Please sign in to comment.