Commit Graph

11 Commits

Author SHA1 Message Date
Paweł Poławski
b56a763f50 Tests: Update GOFLAGS for tests
Existing GOFLAGS system variable has been updated and now it contains:
-mod=vendor
-tags=exclude_graphdriver_btrfs
2024-02-17 09:20:59 +01:00
Tomas Hozza
3c26cc981f
tests/unit: install build requires from SPEC
The unit test uses Golang to directly execute unit tests from dist-git
sources. Running unit tests requires all package build dependencies to
be installed. Previously, this was handled by explicitly specifying all
package build dependencies as a test dependencies. This results in the
requirement to update the unit test for any new release with additional
build dependency. This information is already encoded in the SPEC file
and it is not really specific to the unit test.

Move away from specifying package build dependencies as the test
dependency and install BuildRequires from the package SPEC as part of
the test case.

Related: rhbz#2059870
2022-07-18 14:34:06 +02:00
Ondřej Budai
480a172783
tests: Remove the test repositories
rhel-9.json is actually not used anymore in recent RHEL versions and the test
should just use their own stable snapshots nevertheless.

Related: rhbz#2059870
2022-05-17 12:40:41 +02:00
Ondřej Budai
cfe552ec43
Port gating improvements from 8.6/9.0
Let's print more information about the machine - the list of all installed RPMs
and the list of all repositories (including the filenames - that's why find is
used). Also, the old WORKSPACE workaround was removed (no longer needed).
The timeout for unit tests is now longer and we use the up-to-date RHEL 9
keys.

This commit also removes a lot of the tests, see the reasoning inline. The
process just took way too long. We have upstream CI and we have also the
nightly pipeline so we should be fine even though we remove some bits from
here.

The repositories were also removed, rhel-9.json is actually not used anymore
in recent RHEL versions and the test should just use their own stable
snapshots nevertheless.

Related: rhbz#2059870
2022-05-04 18:18:27 +02:00
Brian C. Lane
53595c6430 Update to 44
+ Use tmt based tests instead of STI
+ Disable tmt integration tests for CS9 (needs RH resources)

Resolves: rhbz#2011877
2022-02-14 14:34:33 +01:00
Thomas Lavocat
c0cce621b7 Update to 42
Tests: Do not count the number of executables
As the number of checks keeps changing, remove the need of updating the
value.

Resolves: rhbz#2011877
2022-01-17 13:13:42 +01:00
Ondřej Budai
fe9c94812a
Update to 41
Resolves: rhbz#2011877
2022-01-03 08:50:01 +01:00
Ondřej Budai
6c9bd9cf13
Update to 40
Resolves: rhbz#2011877
2021-12-14 12:06:55 +01:00
Achilleas Koutsou
bd2ed33a5b Update to 38
Resolves: rhbz#2011877

Enabled all tests:
- Copied script from RHEL 8.6.0 branch.
- Added nightly RHEL 9.0 repositories.
- Don't install EPEL for RHEL 9.0: Koji and Ansible aren't required for
  any of the enabled tests.

Unmount /tmp before running tests:
/tmp is too small to contain the results of image building tests.
Unmounting the partition makes it part of the underlying root partition,
which is much larger.
2021-11-19 13:29:14 +01:00
Ondřej Budai
faa4908d14
Update to 31
This commit also enables at least some meaningful tests in gating.

Resolves: rhbz#1972427
2021-08-20 23:03:27 +02:00
Ondřej Budai
ef20d629e8
Update to 30
This commit also copies gating from RHEL 8. The integration test is currently
disabled because there's not much to test on RHEL 9 yet.

Also, the patch is removed, this was probably forgotten in Fedora
dist-git.

Related: rhbz#1972427
2021-07-02 14:06:28 +02:00