test: correctly configure the NUMA node memory pool
authorFrantisek Sumsal <frantisek@sumsal.cz>
Mon, 14 Jun 2021 13:45:03 +0000 (15:45 +0200)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 Jun 2021 20:37:28 +0000 (05:37 +0900)
commit785256a3201c71763f18e4c8dce5476e69707d24
tree847592b4b7c782e8d02176ddea94bd5f753eb889
parent2502e7befea67117a5115317c3b85e1638ca92a0
test: correctly configure the NUMA node memory pool

The currently hardcoded value works with the default configuration, but
breaks when QEMU_MEM != 512M (in sanitizer runs, for example).

```
# QEMU_MEM=1G make -C test/TEST-36-NUMAPOLICY/ run
make: Entering directory '/home/fsumsal/repos/@systemd/systemd/test/TEST-36-NUMAPOLICY'
TEST-36-NUMAPOLICY RUN: test NUMAPolicy= and NUMAMask= options
+ /bin/qemu-kvm -smp 8 -net none -m 1G -nographic -kernel /boot/vmlinuz-5.12.5-300.fc34.x86_64 -drive format=raw'
qemu-kvm: total memory for NUMA nodes (0x20000000) should equal RAM size (0x40000000)
E: QEMU failed with exit code 1
```
test/TEST-36-NUMAPOLICY/test.sh