From 27eb6995f19eebea2338df8539ebcdbd63b73576 Mon Sep 17 00:00:00 2001 From: DatuX Date: Mon, 24 Jan 2022 10:54:40 +0100 Subject: [PATCH] Updated Development (markdown) --- Development.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Development.md b/Development.md index 9f42561..b81d8d0 100644 --- a/Development.md +++ b/Development.md @@ -27,8 +27,29 @@ Same goes for zfs-autoverify: ZfsAutoverify.py v3.2-alpha1 - (c)2021 E.H.Eefting (edwin@datux.nl) ``` +## Running automated test suites + +zfs-autobackup is a test driven design process, usually i start with creating the test and then writing the code. + +The tests run against actual zfs commands and create a lot of temporary pools via loopback-images in the /tmp dir. Therefore the tests need root to run. + +The tests also need ssh support via root@localhost, so it will create and install a sshkey if needed. +```console +(backupdev) root@ws1:/home/psy/zfs_autobackup# ./tests/run_tests +########################################### +#### Unit testing against: +#### Python :3.8.10 (default, Nov 26 2021, 20:14:08) [GCC 9.3.0] +#### ZFS userspace :2.1.1-0york0~20.04 +#### ZFS kernel :2.1.1-0york0~20.04 +############################################# +THIS TEST REQUIRES SSH TO LOCALHOST +test_exitcode (test_cmdpipe.TestCmdPipe) +test piped exitcodes ... ok +... +``` +