Commit Graph

14 Commits

Author SHA1 Message Date
Paweł Poławski
16e7b5de92 Tests: Update unit tests timeout
RHEL uses this repo for releases. Part of the procedure is unit testing
which takes big amount of time. On some machines default 3h time limit
may be not long enough to complete tests.

This limit has been changed to 4h now.

Resolves: RHEL-1035
2023-12-12 16:07:45 +01:00
Tomáš Hozza
90ab1b7b0c Increase unit-test duration to 3h
Related: rhbz#2174847
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-06-27 12:33:42 +02:00
Tomáš Hozza
d50917e374 Fix unit tests in RHEL CI and rebuild RPM
Also clean up the repo from unused patches and files.

Related: rhbz#2174847
Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-06-23 14:30:46 +02:00
Tomáš Hozza
2d5873bf11
Test: unify test case implementation across c8s / c9s
Resolves: rhbz#2174847
2023-05-30 13:08:03 +02:00
Tomáš Hozza
bda943d73c
Test: install pytest from pip
pytest version available in RHEL repos (especially on el8) is too old to
be used with osbuild tests and how we execute them. In order to keep the
test implementation the same across all distributions and their
versions, install pytest from pip and not system repositories.

Related: rhbz#2174847

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-04-24 21:38:03 +02:00
Tomáš Hozza
eac3dd265a
Test: simplify SRC_DIR extraction in run-unit-tests.sh
Use `spectool`, instead of `rpmdev-spectool`, because it is available
only on c9s and el9 and the intention was to keep tests implementation
the same across all distributions and their versions. This makes the
test case identical to c8s / el8.

In addition, the output from the tool differs on c8s and c9s, therefore
simplify the extraction of the SRC_DIR using only one sed command, which
produces the desired output on c8s and c9s.

Related: rhbz#2174847

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-04-24 21:02:57 +02:00
Tomáš Hozza
4d13e6b27c
Test: Rework FMF test metadata and test discovery for integration tests
Do not execute test script in the test plan, but use TMT test discovery
instead.

Related: rhbz#2174847

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-04-21 17:49:23 +02:00
Tomáš Hozza
288b280073
Test: rework execution of unit-tests
We have been running just a subset of osbuild unit tests and also not as
a root, so some of them would be skipped.

In addition, the downstream patches were never applied on sources which
were used for unit-testing. Thus if any issue with test was just
backported as a patch, this had no effect on the test result.

Rework how tests are executed by using a dedicated script which will
take care of the installation of test dependencies, preparation of
sources including application of downstream patches and execute all unit
tests.

Rework also the FMF test metadata and test discovery.

Related: rhbz#2174847

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-04-21 17:49:23 +02:00
Tomáš Hozza
185e3a8ba7
Test: fix the case statement patterns in build-images.sh
Related: rhbz#2132250

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-02-15 14:36:11 +01:00
Tomáš Hozza
01e2f67db0
Test: rework integration test to run on all supported distros
Previously, the integration test was always skipped in c9s. Rework it to
pick the correct image manifest based on the running distro and build it
using osbuild.

Pick manifests for the latest distro versions from the upstream
osbuild-composer repository. Use qcow2 image with customizations.

Related: rhbz#2132250

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2023-02-15 11:57:08 +01:00
Chloe Kaubisch
07927c9639 Update to 48
Use tmt based tests instead of STI

Resolves: rhbz#2011777
2022-02-17 17:38:20 +01:00
Ondřej Budai
9cfe887f2c
Update to 29
This commit also:
- backports the devices and mounts patch from upstream 50971fbe
- copies gating from RHEL 8
  - RHEL 9 manifest is used instead of RHEL 8

Resolves: rhbz#1972429
2021-06-29 09:31:42 +02:00
DistroBaker
e8f9198d70 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/osbuild.git#d38dd0c342fa33afb308acf06037d9488c4dbb85
2021-03-21 21:50:22 +00:00
Petr Šabata
aaed67deea RHEL 9.0.0 Alpha bootstrap
The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/osbuild#3ed31ee037b425d9d9e3c9b64bfad7a1b9ad6999
2020-10-15 22:34:39 +02:00