4e5dbe2
From 3b96485ed42b2e3c048bbb2b05640343e61d50de Mon Sep 17 00:00:00 2001
4e5dbe2
From: Adam Williamson <awilliam@redhat.com>
4e5dbe2
Date: Tue, 23 Jan 2024 16:05:24 -0800
4e5dbe2
Subject: [PATCH 12/21] Add testing instructions to README
4e5dbe2
4e5dbe2
Signed-off-by: Adam Williamson <awilliam@redhat.com>
4e5dbe2
---
4e5dbe2
 README | 15 +++++++++++++++
4e5dbe2
 1 file changed, 15 insertions(+)
4e5dbe2
4e5dbe2
diff --git a/README b/README
4e5dbe2
index ffcea09..9c78c59 100644
4e5dbe2
--- a/README
4e5dbe2
+++ b/README
4e5dbe2
@@ -4,7 +4,22 @@ images containing an operating systems and, optionally, programs.
4e5dbe2
 
4e5dbe2
 The best way to install it is to make an RPM out of it by running "make rpm"
4e5dbe2
 or "make srpm", and then installing the resulting RPM on the target machine.
4e5dbe2
+This will probably only work on Fedora or on RHEL 8 or later.
4e5dbe2
 
4e5dbe2
 Once you have the RPM installed, you will need to build up TDL files to feed
4e5dbe2
 as input into the building process.  Please see the examples directory to get
4e5dbe2
 an idea of what a TDL file looks like.
4e5dbe2
+
4e5dbe2
+Running the tests is also most easily done from a Fedora host. oz uses the
4e5dbe2
+guestfs Python module, which is not available from pypi, and needs a running
4e5dbe2
+libvirtd for most of the tests to run. Install all the test requirements:
4e5dbe2
+
4e5dbe2
+dnf install python3-requests python3-m2crypto python3-libvirt python3-lxml python3-libguestfs python3-pytest python3-monotonic
4e5dbe2
+
4e5dbe2
+If you wish to test on EL 7, make that:
4e5dbe2
+
4e5dbe2
+yum install python-requests m2crypto libvirt-python python-lxml python-libguestfs pytest python-monotonic
4e5dbe2
+
4e5dbe2
+then run the tests:
4e5dbe2
+
4e5dbe2
+py.test tests/
4e5dbe2
-- 
4e5dbe2
2.43.0
4e5dbe2