# Tests for gc following the standard test interface defined at:
# https://fedoraproject.org/wiki/CI
---
- hosts: localhost
gather_facts: yes
remote_user: root
vars:
artifacts: "{{ lookup('env', 'TEST_ARTIFACTS')|default('./artifacts', true) }}"
subjects: "{{ lookup('env', 'TEST_SUBJECTS')}}"
# Install the dependencies for atomic
tasks:
- name: Install the dependencies
shell: rpm-ostree install gc-tests && rpm-ostree ex livefs
tags:
- atomic
# Install the dependencies for Docker and Classic
- name: Install the required packages
package:
name: "{{ item }}"
state: present
with_items:
- gc-tests
- gc
tags:
- classic
- container
- block:
- name: Make artifacts directory
file: path=/tmp/artifacts state=directory
owner=root mode=755 recurse=yes
- name: Run the test file
shell: /usr/libexec/gc/tst-gc > out
args:
chdir: /tmp/artifacts
- name: Check/grep the output
shell: grep "Heap size = [1-9][0-9]*" out
args:
chdir: /tmp/artifacts
always:
- name: Pull out the logs
synchronize:
dest: "{{ artifacts }}"
src: "/tmp/artifacts/./"
mode: pull