]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - tests/ts/lsfd/option-inet
3 # Copyright (C) 2023 Masatake YAMATO <yamato@redhat.com>
5 # This file is part of util-linux.
7 # This file is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This file is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 TS_TOPDIR
="${0%/*}/../.."
18 TS_DESC
="--inet option"
20 .
"$TS_TOPDIR"/functions.sh
24 ts_check_test_command
"$TS_CMD_LSFD"
25 ts_check_test_command
"$TS_HELPER_MKFDS"
30 "$TS_HELPER_MKFDS" -q tcp
3 4 5 server-port
=34567 client-port
=23456 &
33 "$TS_HELPER_MKFDS" -q tcp6
3 4 5 server-port
=34567 client-port
=23456 &
36 "$TS_HELPER_MKFDS" -q ro-regular-file
3 file=/etc
/passwd
&
39 "$TS_HELPER_MKFDS" -q udp
3 4 server-port
=34567 client-port
=23456 server-do-bind
=1 client-do-bind
=1 client-do-connect
=1&
42 "$TS_HELPER_MKFDS" -q udp6
3 4 lite
=1 server-port
=34567 client-port
=23456 server-do-bind
=1 client-do-bind
=1 client-do-connect
=1&
50 -Q "(PID == $PID0) or (PID == $PID1) or (PID == $PID2) or (PID == $PID3) or (PID == $PID4)"
57 -Q "(PID == $PID0) or (PID == $PID1) or (PID == $PID2) or (PID == $PID3) or (PID == $PID4)"
64 -Q "(PID == $PID0) or (PID == $PID1) or (PID == $PID2) or (PID == $PID3) or (PID == $PID4)"
71 -Q "(PID == $PID0) or (PID == $PID1) or (PID == $PID2) or (PID == $PID3) or (PID == $PID4)"
78 -Q "(PID == $PID0) or (PID == $PID1) or (PID == $PID2) or (PID == $PID3) or (PID == $PID4)"
85 -Q "(PID == $PID0) or (PID == $PID1) or (PID == $PID2) or (PID == $PID3) or (PID == $PID4)"