![]() |
||
---|---|---|
.. | ||
0_monitoring_tests | ||
1_one_year | ||
2_dst_handling | ||
common | ||
syncoid | ||
README.md | ||
run-tests.sh |
README.md
Requirements
Tests must be run inside a virtual machine. This is for your own safety, as the tests may create and destroy zpools etc.
A VM with 35GB of storage and 8 cores completes the tests in about 5 hours.
Packages
The tests require the following packages to be installed in the VM (Ubuntu 20.04 package names are used, translate as appropriate):
zfsutils-linux
libconfig-inifiles-perl
libcapture-tiny-perl
apt install zfsutils-linux libconfig-inifiles-perl libcapture-tiny-perl
Install sanoid within the VM
Install sanoid within the VM, for example
apt install git
git clone https://github.com/jimsalterjrs/sanoid.git
mkdir /etc/sanoid/
cp sanoid/sanoid.defaults.conf /etc/sanoid/
Run the tests
cd sanoid/tests/
./run-tests.sh
Example using LXD VMs
VM_NAME=focal-sanoid-test
lxc init ubuntu:focal $VM_NAME --vm -c limits.cpu=8 -c limits.memory=10GB