sanoid/tests
Aaron Whitehouse 501c9921c4 Test return code for monitoring no pool 2022-03-17 14:34:08 +00:00
..
0_monitoring_tests Test return code for monitoring no pool 2022-03-17 14:34:08 +00:00
1_one_year improved dst handling to only suffix the duplicate hourly snapshot on DST change 2019-06-14 07:53:40 +02:00
2_dst_handling improved dst handling to only suffix the duplicate hourly snapshot on DST change 2019-06-14 07:53:40 +02:00
common Fix path to sanoid snapshot cache file 2022-03-17 11:03:29 +00:00
syncoid only preserve recordsize for datasets of type "filesystem" 2020-11-03 18:05:13 +01:00
README.md Add new monitoring test scaffolding. 2022-03-17 10:27:04 +00:00
run-tests.sh Add tests README with instructions on testing 2022-03-17 10:05:01 +00:00

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