From 325f24134813336713362806b23d9d5630e25257 Mon Sep 17 00:00:00 2001 From: Bruno Goncalves Date: Jul 22 2019 16:52:05 +0000 Subject: Revert tests; incorporate fixes from bgoncalv Tests were clobbered (accidentally, I assume) by f9aac43. Revert, and incorporate changes from bgoncalv that address changes to CI system in last few months (artifact handling, new ansible version, add rootless tests) Signed-off-by: Ed Santiago --- diff --git a/tests/test_podman.sh b/tests/test_podman.sh new file mode 100755 index 0000000..5a339e9 --- /dev/null +++ b/tests/test_podman.sh @@ -0,0 +1,9 @@ +#!/bin/bash -e +# +# Simple podman tests +# + +# Log program versions +rpm -q podman podman-tests + +bats /usr/share/podman/test/system diff --git a/tests/test_podman.yml b/tests/test_podman.yml new file mode 100644 index 0000000..0e00f56 --- /dev/null +++ b/tests/test_podman.yml @@ -0,0 +1,20 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + - container + required_packages: + - bats + - podman + - podman-tests + tests: + - root-test: + dir: ./ + run: ./test_podman.sh + - rootless-test: + # running the test with su doesn't create the directory for fedora user on /run/user/ + # so create it manually + dir: ./ + run: mkdir /run/user/$(id -u fedora); su -c ${PWD}/test_podman.sh - fedora diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..80caee7 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1 @@ +- import_playbook: test_podman.yml