2018-11-13 13:28:26 +00:00
|
|
|
---
|
|
|
|
- hosts: localhost
|
2020-04-27 14:47:40 +00:00
|
|
|
tags:
|
|
|
|
- classic
|
|
|
|
- container
|
|
|
|
vars:
|
|
|
|
- artifacts: ./artifacts
|
|
|
|
rootless_user: testuser
|
2019-07-19 08:33:28 +00:00
|
|
|
roles:
|
2023-05-08 15:31:11 +00:00
|
|
|
- role: disable_systemd_resolved
|
2020-04-27 14:47:40 +00:00
|
|
|
- role: rootless_user_ready
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
# At the start of a run, clean up state. Useful for test reruns.
|
|
|
|
- name: local artifacts directory exists
|
|
|
|
local_action: file path="{{ artifacts }}" state=directory
|
|
|
|
|
|
|
|
- name: remove stale log files
|
|
|
|
local_action: shell rm -f {{ artifacts }}/test*.log
|
|
|
|
|
2020-05-12 12:38:17 +00:00
|
|
|
- name: clear test results (test.log)
|
2020-04-27 14:47:40 +00:00
|
|
|
local_action: command truncate --size=0 {{ artifacts }}/test.log
|
|
|
|
|
2020-05-12 12:38:17 +00:00
|
|
|
- name: clear test results (results.yml)
|
2020-05-13 19:29:13 +00:00
|
|
|
local_action: copy content="results:\n" dest={{ artifacts }}/results.yml
|
2020-05-12 12:38:17 +00:00
|
|
|
|
2024-02-01 13:33:04 +00:00
|
|
|
# These are the actual tests.
|
|
|
|
- name: test podman
|
|
|
|
include_tasks: run_podman_tests.yml
|
|
|
|
loop: [ podman, podman-remote ]
|
2020-04-27 14:47:40 +00:00
|
|
|
loop_control:
|
2024-02-01 13:33:04 +00:00
|
|
|
loop_var: podman_bin
|
2021-09-16 21:15:05 +00:00
|
|
|
|
2021-08-10 20:31:39 +00:00
|
|
|
- name: test toolbox
|
|
|
|
include_tasks: test_toolbox.yml
|
|
|
|
|
2020-04-27 14:47:40 +00:00
|
|
|
# Postprocessing: check for FAIL or ERROR in any test, exit 1 if so
|
|
|
|
- name: check results
|
|
|
|
include_tasks: check_results.yml
|