aea393b7eb
Define a new podman-tests subpackage, containing a set of tests intended to be run as gates. As of this initial checkin, this consists of a set of BATS tests in /usr/share/podman . Include a configuration for running under Fedora CI Signed-off-by: Ed Santiago <santiago@redhat.com>
36 lines
1017 B
YAML
36 lines
1017 B
YAML
---
|
|
- hosts: localhost
|
|
vars:
|
|
- artifacts: ./artifacts
|
|
# FIXME! It would be cleaner to include 'podman' in this list; but the
|
|
# dnf module is broken in ansible <= 2.8, it doesn't report failures
|
|
# to install as long as _one_ package installs! So if podman installs
|
|
# but podman-tests doesn't, the `dnf` stanza succeeds, then the test
|
|
# one fails with a less-than-helpful error.
|
|
#
|
|
# See https://github.com/ansible/ansible/pull/49760
|
|
- required_packages:
|
|
- podman-tests
|
|
tags:
|
|
- classic
|
|
- container
|
|
|
|
tasks:
|
|
- name: install packages
|
|
dnf: name="{{ required_packages }}" state=installed
|
|
enablerepo=updates-testing
|
|
|
|
- block:
|
|
# FIXME: how to make two passes, one as root and one rootless?
|
|
- name: Run test
|
|
script: ./test_podman.sh
|
|
always:
|
|
- name: Pull out logs
|
|
fetch:
|
|
src: "/tmp/{{ item }}"
|
|
dest: "{{ artifacts }}/{{ item }}"
|
|
flat: yes
|
|
with_items:
|
|
- test.log
|
|
- test.debug.log
|