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="do_setup" 10TST_CLEANUP="mcast_cleanup" 11TST_TESTFUNC="do_test" 12 13do_setup() 14{ 15 # Increase the maximum number of open file descriptors 16 if [ $(ulimit -n) -lt $MCASTNUM_HEAVY ]; then 17 ulimit -n $MCASTNUM_HEAVY || tst_brk TCONF \ 18 "Failed to set the maximum number of open file descriptors to $MCASTNUM_HEAVY" 19 fi 20 21 mcast_setup $MCASTNUM_HEAVY 22} 23 24do_test() 25{ 26 tst_res TINFO "joining $MCASTNUM_HEAVY IPv$TST_IPVER multicast groups on multiple sockets" 27 do_multicast_test_multiple_join $MCASTNUM_HEAVY true 28} 29 30. mcast-lib.sh 31tst_run 32