Home | History | Annotate | Download | only in grp-operation
      1 #!/bin/sh
      2 # Copyright (c) 2017-2018 Petr Vorel <pvorel (at] suse.cz>
      3 # Copyright (c) International Business Machines  Corp., 2006
      4 #
      5 # This program is free software; you can redistribute it and/or
      6 # modify it under the terms of the GNU General Public License as
      7 # published by the Free Software Foundation; either version 2 of
      8 # the License, or (at your option) any later version.
      9 #
     10 # This program is distributed in the hope that it would be useful,
     11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
     12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     13 # GNU General Public License for more details.
     14 #
     15 # You should have received a copy of the GNU General Public License
     16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
     17 #
     18 # Setup: testcases/network/stress/README
     19 #
     20 # Author: Mitsuru Chinen <mitch (at] jp.ibm.com>
     21 
     22 . mcast-lib.sh
     23 
     24 do_setup()
     25 {
     26 	# Increase the maximum number of open file descriptors
     27 	if [ $(ulimit -n) -lt $MCASTNUM_HEAVY ]; then
     28 		ulimit -n $MCASTNUM_HEAVY || tst_brk TCONF \
     29 			"Failed to set the maximum number of open file descriptors to $MCASTNUM_HEAVY"
     30 	fi
     31 
     32 	mcast_setup $MCASTNUM_HEAVY
     33 }
     34 
     35 do_test()
     36 {
     37 	tst_res TINFO "joining $MCASTNUM_HEAVY IPv$TST_IPVER multicast groups on multiple sockets"
     38 	do_multicast_test_multiple_join $MCASTNUM_HEAVY true
     39 }
     40 
     41 tst_run
     42