Blob Blame History Raw
From 3b96485ed42b2e3c048bbb2b05640343e61d50de Mon Sep 17 00:00:00 2001
From: Adam Williamson <awilliam@redhat.com>
Date: Tue, 23 Jan 2024 16:05:24 -0800
Subject: [PATCH 12/21] Add testing instructions to README

Signed-off-by: Adam Williamson <awilliam@redhat.com>
---
 README | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/README b/README
index ffcea09..9c78c59 100644
--- a/README
+++ b/README
@@ -4,7 +4,22 @@ images containing an operating systems and, optionally, programs.
 
 The best way to install it is to make an RPM out of it by running "make rpm"
 or "make srpm", and then installing the resulting RPM on the target machine.
+This will probably only work on Fedora or on RHEL 8 or later.
 
 Once you have the RPM installed, you will need to build up TDL files to feed
 as input into the building process.  Please see the examples directory to get
 an idea of what a TDL file looks like.
+
+Running the tests is also most easily done from a Fedora host. oz uses the
+guestfs Python module, which is not available from pypi, and needs a running
+libvirtd for most of the tests to run. Install all the test requirements:
+
+dnf install python3-requests python3-m2crypto python3-libvirt python3-lxml python3-libguestfs python3-pytest python3-monotonic
+
+If you wish to test on EL 7, make that:
+
+yum install python-requests m2crypto libvirt-python python-lxml python-libguestfs pytest python-monotonic
+
+then run the tests:
+
+py.test tests/
-- 
2.43.0