Commit graph

43 commits

Author SHA1 Message Date
Jakub Kadlcik
2ad7a823dd Replace egrep with grep -E
egrep: warning: egrep is obsolescent; using grep -E
2023-08-14 14:15:32 +02:00
Jakub Kadlcik
d96c9c7d7a Stop running tests for F27 in favor of F33 2021-01-12 16:27:27 +01:00
Jakub Kadlcik
1929f7f5a0 Temporarily skip some createrepo_c tests because it coredumps
This is probably not our fault, createrepo_c coredumps on Fedora
rawhide, please see the upstream issue
https://github.com/rpm-software-management/createrepo_c/issues/202

Once it gets resolved, revert this commit.
2020-01-31 21:23:17 +01:00
Jakub Kadlcik
30f59ec027 Use pycodestyle pacakge when pep8 is not available 2020-01-30 23:31:34 +01:00
Jakub Kadlcik
176d546872 There is no python2 in Fedora rawhide anymore 2020-01-30 23:30:42 +01:00
Ernestas Kulik
3a79fdde9f Move to python-blessed
As python-blessings is unmaintained nowadays and is not packaged for
EPEL 8, it might be good to move to an active fork.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1777377
2020-01-13 09:04:38 +01:00
Devan Goodwin
03196239a7 Fix rsync failures in dockerized tests, update for F27. 2017-12-07 11:12:11 -04:00
Neal Gompa
1906fbd900 Remove createrepo_c BR from spec
It's not even used while building the tito package...
2017-04-09 18:10:51 -04:00
Neal Gompa
cbaa09697f Use createrepo_c for creating rpm-md repos
createrepo_c is a faster and more correct implementation of
generating rpm repositories, used by Fedora, openSUSE, and Mageia
for creating official distro repositories. It is also used by COPR
for creating repositories for packages built through its system.
2017-04-01 18:27:19 -04:00
Neal Gompa
0929d2d296 Fixup Fedora Dockerfiles to work correctly
The test suite tests both Python 2 and Python 3, but the spec file
doesn't install both sets of dependencies, so we need to declare
the Python 2 dependencies to be installed in the Dockerfiles.

In addition, there's no reason to drag in yum-utils, since
"dnf builddep" exists and serves the same purpose.
2017-04-01 18:27:19 -04:00
Neal Gompa
18a21c6c5b Remove useless EL5 stuff
Red Hat Enterprise Linux 5 and its derivatives are now EOL.
2017-04-01 14:55:25 -04:00
Steve Kuznetsov
efab80283d Merge pull request #250 from stevekuznetsov/skuznets/fix-rawhide-tests
Work around `dnf` issues and install builddep for Rawhide
2017-01-26 13:39:39 -05:00
Steve Kuznetsov
81dc44d611
Added support for choosing platforms for tests
Running the entire suite of containerized tests across all of the
platforms that are supported takes quite a while, especially if the
container images need to be built. Now, the platforms that are to be
tested can be specified with `$PY2_DISTROS` and `$PY3_DISTROS`.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2017-01-26 08:42:30 -05:00
Steve Kuznetsov
3cdceca9bd
Work around dnf issues and install builddep for Rawhide
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2017-01-06 11:01:17 -05:00
Devan Goodwin
77c7ff9a91 Merge pull request #249 from stevekuznetsov/skuznets/reconfigure-test-os
Add CentOS 7 and Fedora 25 tests, remove Fedora 21 tests
2017-01-06 09:08:12 -04:00
Steve Kuznetsov
bc9b769c19
Add CentOS 7 and Fedora 25 tests, remove Fedora 21 tests
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2017-01-05 16:39:06 -05:00
Steve Kuznetsov
9a7fb69e9e
Use dnf instead of yum in Fedora Rawhide tests
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2017-01-05 16:33:59 -05:00
Steve Kuznetsov
784a76c036
Relabel test container volume contents for SELinux
To allow the tests to run from a host with SELinux enabled, the data
needs to be relabeled to the correct SELinux contexts. Adding the `Z`
label to the volume mount allows for this to occur.

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
2017-01-05 15:08:00 -05:00
Alex Wood
01c5170c29 Add python-blessings to Dockerfiles. 2015-06-09 10:52:07 -04:00
Devan Goodwin
dcbbb7f01a Add tito spec later in test dockerfiles.
It changes a lot and rebuilding everything sucks.
2015-05-12 16:07:04 -03:00
Devan Goodwin
43f9ce2dd3 Drop F20 docker tests. 2015-05-09 08:53:11 -03:00
Devan Goodwin
8f9f6ae3fd Add F21 docker testing. 2015-05-09 08:49:14 -03:00
Devan Goodwin
901bdf1d22 Docker test cleanup. 2015-05-08 16:15:02 -03:00
Devan Goodwin
efee896150 Restore rawhide docker tests. 2015-05-08 15:59:35 -03:00
Devan Goodwin
e8e7f63662 Restore F20 Python 3 docker tests. 2015-05-08 13:05:38 -03:00
Devan Goodwin
d1b1e9611b Restore F20 Python 2 docker tests. 2015-05-08 12:55:52 -03:00
Devan Goodwin
50526722e0 EL6 docker tests now fully passing. 2015-05-08 12:07:38 -03:00
Devan Goodwin
bf2d285061 Get the docker test suite up and running again. 2015-05-01 15:37:53 -03:00
Paul Morgan
20334d52ed remove f19 from test harness to save space and time
* Save disk space on dev host by avoiding `docker pull mattdm/fedora'
* Save time by not building a fedora 19 image and running its tests

We can always revert this commit if we need to run tests on f19.
2014-07-04 16:26:23 +00:00
Paul Morgan
fe0b6d8863 add fedora-rawhide to test harness
Use the "semi-official" base image for rawhide.
It appears to be updated on a regular basis.

This gives us advance warning of breaking changes
in the bleeding-edge version of fedora.
2014-07-04 16:26:23 +00:00
Paul Morgan
b479eb8cf7 use "semi-official" f20 base instead of mattdm/fedora
https://index.docker.io/_/fedora/ states:

> This image is to be considered semi-official from fedora's side
> (until approved by fedora rel-eng)
2014-07-04 16:26:23 +00:00
Paul Morgan
4aeab5dcc1 add f19 to test harness to test conditional build deps
* fedora 19 does not have rpm-python3, thus we only test python2.
* assert that build deps are correct for fedora 19
2014-07-04 16:26:23 +00:00
Paul Morgan
ea7404d6a5 DRY up test harness to use spec file for build deps
Ensure build deps are consistent across the spec file and test harness.

Note: http://fedoraproject.org/wiki/HOWTOFindMissingBuildRequires
says that some packages should not be BuildRequires because
"they would occur too often" and "are considered the minimum build
environment." However, Docker changes the scope of that assumption
to keep docker images small.
2014-07-04 16:26:23 +00:00
Paul Morgan
b3e0827d2c add rpmdevtools as build dep for el5
9feb9cf4 added rpmdevtools as an install depedency;
it is also needed as a build dep for current functional tests.
2014-07-04 14:34:00 +00:00
Devan Goodwin
cdf54b6ec5 Merge branch 'bzflagcheck'
Conflicts:
	hacking/titotest-centos-5.9/Dockerfile
2014-06-23 14:50:27 -03:00
Devan Goodwin
d978873738 Fixes for Python 3. 2014-06-23 09:45:41 -03:00
Paul Morgan
58e6360698 remove intermediate containers in test harness
Save disk space on workstation.
2014-05-26 23:49:22 +00:00
Paul Morgan
cd0cc194be add build dependency for el5 and new functional tests
* asciidoc indirectly requires docbook-style-xsl on el6 and f20,
  but not on el5. Resolve failure to build tito with tito on el5:
  "I/O error : Attempt to load network entity"

* Resolve "egg missing file" on el5 due to busted symlinks
  from 20c4f1b7c0.

* Add functional test to build tito with itself in order to
  catch problems like the ones above.

Closes https://github.com/dgoodwin/tito/issues/133
2014-05-26 18:37:00 +00:00
Dominic Cleal
bb60a6dede Support pre-5.20131213 versions of git-annex for EL6
Older versions of git-annex don't support `git annex lock --force`, so peform
a version check and call without --force on these.

The EL6 Docker image is changed to one that contains locales, in order for
git-annex to run successfully.
2014-05-09 13:57:53 +01:00
Devan Goodwin
4032c3d300 Merge pull request #121 from jumanjiman/hacking
propagate docs to docker public registry
2014-04-24 15:44:25 -03:00
alfen
66baaa4bd2 added rpmbuild output to an error raised by tito to easier the error's cause analysis 2014-04-20 18:55:26 +02:00
Paul Morgan
20c4f1b7c0 propagate docs to docker public registry
Add URL of upstream tito repo to HACKING, then
symlink HACKING as README.md in each Dockerfile dir.

Why?

If a README.md exists in same dir as Dockerfile (incl. symlink),
and it's set up as a
[trusted build](https://index.docker.io/help/docs/#trustedbuilds),
then index.docker.io automatically shows the readme on the info
page of the trusted build.
2014-04-19 21:05:15 +00:00
Paul Morgan
361eca6195 add test harness based on docker/lxc 2014-03-13 17:56:32 +00:00