Skip to content

Commit 2f64127

Browse files
committed
do not merge: gtests: Customize to build and run on Mariner 3.
Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
1 parent 1e0fd7c commit 2f64127

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

gtests/net/tcp/bbr/nsperf/configure.sh

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,15 @@
55
set -x # print commands before executing
66
set -e # exit upon error
77

8-
sudo apt update
9-
sudo apt install -y python2
10-
sudo apt install -y netperf
11-
sudo apt install -y gnuplot-nox
8+
# Quick and dirty installation of netperf:
9+
wget https://rpmfind.net/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/l/lksctp-tools-1.0.19-9.fc41.x86_64.rpm
10+
wget https://fr2.rpmfind.net/linux/fedora/linux/development/rawhide/Everything/x86_64/os/Packages/n/netperf-2.7.0-9.20210803git3bc455b.fc41.x86_64.rpm
11+
sudo dnf install -y --nogpgcheck lksctp-tools-1.0.19-9.fc41.x86_64.rpm
12+
sudo dnf install -y --nogpgcheck netperf-2.7.0-9.20210803git3bc455b.fc41.x86_64.rpm
13+
14+
# Quick and dirty installation pahole which is needed to compile the kernel:
15+
wget https://rpmfind.net/linux/openmandriva/cooker/repository/x86_64/main/release/pahole-1.25-1-omv2390.x86_64.rpm
16+
sudo dnf install -y --nogpgcheck pahole-1.25-1-omv2390.x86_64.rpm
1217

1318
# On Ubuntu 18.04.2 LTS, there are issues with the iproute2 binaries:
1419
# (1) the 'tc' binary has a bug and cannot parse netem random loss rates
@@ -19,7 +24,8 @@ sudo apt install -y gnuplot-nox
1924
# from the iproute2 sources, with patches from the BBRv3
2025
# source tree:
2126

22-
sudo apt install -y pkg-config make bison flex
27+
# Install other tools which are needed to compile the kernel.
28+
sudo dnf install -y pkg-config make bison flex git gcc binutils glibc-devel kernel-headers openssl-devel elfutils-libelf-devel zlib-devel
2329

2430
# Our project's patches for the iproute2 package are in this directory:
2531
PATCH_DIR=`pwd`

gtests/net/tcp/bbr/nsperf/nsperf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python2
1+
#!/usr/bin/python3
22
#
33
# Use netem, network namespaces, and veth virtual NICs
44
# to run a multi-flow TCP test on a single Linux machine.

0 commit comments

Comments
 (0)