mirror of
https://gitlab.com/redhat/centos-stream/rpms/conmon.git
synced 2026-05-04 23:42:20 +00:00
Add gating tests (copied from podman)
Add gating tests, rawhide only. These are an almost-verbatim copy of podman's gating tests - as of this writing there is no way for CI tests to say "run another package's tests". Miro is aware of the need for this, and says the feature may be available "sooner or later" [conversation in #osci] Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_stable
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: org.centos.prod.ci.pipeline.allpackages-build.complete}
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash -e
|
||||
#
|
||||
# Simple podman tests
|
||||
#
|
||||
|
||||
# Log program and kernel versions
|
||||
echo "Important package versions:"
|
||||
rpm -qa | egrep 'conmon|podman|iptable|slirp|systemd' | sort | sed -e 's/^/ /'
|
||||
uname -a
|
||||
|
||||
bats /usr/share/podman/test/system
|
||||
@@ -0,0 +1,23 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
- container
|
||||
required_packages:
|
||||
- bats
|
||||
- conmon
|
||||
- podman
|
||||
- podman-tests
|
||||
tests:
|
||||
- root-test:
|
||||
dir: ./
|
||||
run: ./test_podman.sh
|
||||
timeout: 15m
|
||||
- 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); chown fedora /run/user/$(id -u fedora); su -c ${PWD}/test_podman.sh - fedora
|
||||
timeout: 15m
|
||||
@@ -0,0 +1 @@
|
||||
- import_playbook: test_podman.yml
|
||||
Reference in New Issue
Block a user