xref: /aosp_15_r20/external/ltp/testcases/network/stress/multicast/grp-operation/mcast-group-same-group.sh (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2017-2018 Petr Vorel <[email protected]>
4# Copyright (c) International Business Machines  Corp., 2006
5# Author: Mitsuru Chinen <[email protected]>
6
7TST_NEEDS_ROOT=1
8TST_NEEDS_TMPDIR=1
9TST_SETUP="mcast_setup_normal"
10TST_CLEANUP="mcast_cleanup"
11TST_TESTFUNC="do_test"
12
13do_test()
14{
15	tst_res TINFO "joining and leaving the same IPv$TST_IPVER multicast group on $MCASTNUM_NORMAL sockets in $NS_TIMES times"
16	do_multicast_test_join_leave $MCASTNUM_NORMAL
17}
18
19. mcast-lib.sh
20tst_run
21