From 3cf98739fbb722db7404ab542e5985b15ae59906 Mon Sep 17 00:00:00 2001 From: Keith Seitz Date: Tue, 25 Apr 2023 07:30:39 -0700 Subject: [PATCH] Fixup initial import A .src.rpm was accidentally included, and tests/ was not copied from gdb's main c8s repo. Resolves: rhbz#2172095 --- tests/README | 31 +++++++++++++++++++++++++++++++ inventory => tests/inventory | 0 tests.yml => tests/tests.yml | 0 3 files changed, 31 insertions(+) create mode 100644 tests/README rename inventory => tests/inventory (100%) rename tests.yml => tests/tests.yml (100%) diff --git a/tests/README b/tests/README new file mode 100644 index 0000000..0a1388a --- /dev/null +++ b/tests/README @@ -0,0 +1,31 @@ +Justification + +Adds tests according to the CI wiki specifically the standard test +interface in the spec. + +The playbook includes Tier1 level test cases that have been tested in +the following contexts and is passing reliably: Classic and +Container. Test logs are stored in the artifacts directory. + +The following steps are used to execute the tests using the standard +test interface: Test environment + +Make sure you have installed packages from the spec + + # rpm -q ansible python2-dnf libselinux-python standard-test-roles + ansible-2.3.2.0-1.fc26.noarch + python2-dnf-2.6.3-11.fc26.noarch + libselinux-python-2.6-7.fc26.x86_64 + standard-test-roles-2.4-1.fc26.noarch + +Run tests for Classic (must be run as root) + + # export ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) + # ansible-playbook --tags=classic tests.yml + +Run tests for Container (must be run as root) + + # export ANSIBLE_INVENTORY=$(test -e inventory && echo inventory || echo /usr/share/ansible/inventory) + # export TEST_SUBJECTS=docker:docker.io/library/fedora:26 + # ansible-playbook --tags=container tests.yml + diff --git a/inventory b/tests/inventory similarity index 100% rename from inventory rename to tests/inventory diff --git a/tests.yml b/tests/tests.yml similarity index 100% rename from tests.yml rename to tests/tests.yml