1#!/bin/sh -xe 2 3# Builds are run as root in containers, no need for sudo 4[ "$(id -u)" != '0' ] || alias sudo= 5 6# need to install as 'root' since some of the unit tests won't run without it 7sudo python3 -m pip install --upgrade 'meson==0.49.2' 8 9# setup hugepages. error ignored because having hugepage is not mandatory. 10cat /proc/meminfo 11sudo sh -c 'echo 1024 > /proc/sys/vm/nr_hugepages' || true 12cat /proc/meminfo 13