1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0-or-later 3# Copyright (c) 2018 Petr Vorel <pvorel@suse.cz> 4# Copyright (c) 2017 Oracle and/or its affiliates. All Rights Reserved. 5# Author: Alexey Kodanev <alexey.kodanev@oracle.com> 6 7TST_NEEDS_TMPDIR=1 8TST_TESTFUNC=do_test 9TST_SETUP=tst_ipsec_setup 10TST_CNT=2 11TST_CLEANUP=tst_ipsec_cleanup 12. ipsec_lib.sh 13 14do_test() 15{ 16 local type="udp" 17 [ $1 -eq 2 ] && type="udp_lite" 18 19 tst_netload -H $(tst_ipaddr rhost) -T $type -n $2 -N $2 -r $IPSEC_REQUESTS 20} 21 22tst_run 23