1#!/usr/bin/env bash
2# SPDX-License-Identifier: LGPL-2.1-or-later
3set -e
4
5TEST_DESCRIPTION="test NUMAPolicy= and NUMAMask= options"
6TEST_NO_NSPAWN=1
7
8# shellcheck source=test/test-functions
9. "${TEST_BASE_DIR:?}/test-functions"
10
11if qemu_min_version "5.2.0"; then
12    QEMU_OPTIONS="-object memory-backend-ram,id=mem0,size=${QEMU_MEM:?} -numa node,memdev=mem0,nodeid=0"
13else
14    QEMU_OPTIONS="-numa node,nodeid=0"
15fi
16
17do_test "$@"
18