sanoid/tests
Aaron Whitehouse cd0b9f362b Add tests with monitor_dont_crit set but
without monitor_dont_warn
2022-04-02 21:37:54 +01: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
3_monitor_snapshots Add newline 2022-03-27 22:23:03 +01:00
4_monitor_snapshots_dont_warncrit Add copy of monitor snapshots test with 2022-04-02 21:23:34 +01:00
5_monitor_snapshots_warn_dont_crit Add tests with monitor_dont_crit set but 2022-04-02 21:37:54 +01:00
common Create a new set of tests for --monitor-snapshots 2022-03-27 21:28:21 +01:00
syncoid only preserve recordsize for datasets of type "filesystem" 2020-11-03 18:05:13 +01:00
README.md Ready to merge 2022-03-27 22:10:03 +01:00
run-tests.sh Create a new set of tests for --monitor-snapshots 2022-03-27 21:28:21 +01: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 running Ubuntu 20.04 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

This requires root/sudo privileges.

cd sanoid/tests/
./run-tests.sh