1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0-or-later 3# Copyright (c) 2017-2018 Petr Vorel <pvorel@suse.cz> 4# Copyright (c) International Business Machines Corp., 2006 5# Author: Mitsuru Chinen <mitch@jp.ibm.com> 6 7TST_NEEDS_ROOT=1 8TST_NEEDS_TMPDIR=1 9TST_SETUP="do_setup" 10TST_CLEANUP="mcast_cleanup" 11TST_TESTFUNC="do_test" 12. mcast-lib.sh 13 14do_setup() 15{ 16 # Increase the maximum number of open file descriptors 17 if [ $(ulimit -n) -lt $MCASTNUM_HEAVY ]; then 18 ulimit -n $MCASTNUM_HEAVY || tst_brk TCONF \ 19 "Failed to set the maximum number of open file descriptors to $MCASTNUM_HEAVY" 20 fi 21 22 mcast_setup $MCASTNUM_HEAVY 23} 24 25do_test() 26{ 27 tst_res TINFO "joining $MCASTNUM_HEAVY IPv$TST_IPVER multicast groups on multiple sockets" 28 do_multicast_test_multiple_join $MCASTNUM_HEAVY true 29} 30 31tst_run 32