Compare commits
63 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6c8609b708 | ||
|
|
675f2d0d10 | ||
|
|
74e1b2ca91 | ||
|
|
7b85663ab7 | ||
|
|
c34020e077 | ||
|
|
3118b58c27 | ||
|
|
0aaf5925fd | ||
|
|
18089b05fb | ||
|
|
999bf28370 | ||
|
|
cca6083e8b | ||
|
|
c29719e5d3 | ||
|
|
e229ca6662 | ||
|
|
ff0aa5a201 | ||
|
|
a03e221e27 | ||
|
|
98fab4c8ff | ||
|
|
8b18a60e74 | ||
|
|
0d788ed684 | ||
|
|
898858285f | ||
|
|
101c787115 | ||
|
|
9d8f6f511c | ||
|
|
153b8b99c8 | ||
|
|
f008080661 | ||
|
|
fe6ddf4fed | ||
|
|
6f31a965e3 | ||
|
|
4b520db9b1 | ||
|
|
75e122c0cd | ||
|
|
f4f88918c4 |
||
|
|
99f07fae09 |
||
|
|
92267971e3 | ||
|
|
7070857c47 | ||
|
|
021e5c9ad8 | ||
|
|
0b885083f0 | ||
|
|
325f241348 | ||
|
|
f24c7b5b26 | ||
|
|
4a32bdd508 | ||
|
|
e66ee7c272 | ||
|
|
238f787fee | ||
|
|
2ce1b09966 | ||
|
|
b9ef8282ad | ||
|
|
9a7ab2473e | ||
|
|
9a4372d544 | ||
|
|
f9aac439c2 | ||
|
|
4a519ff85c |
||
|
|
34d64b1d32 |
||
|
|
a69f329409 |
||
|
|
5f4deb63a8 |
||
|
|
984c99cf26 | ||
|
|
a010642f8c | ||
|
|
2ac7ef9a1b | ||
|
|
0234e54eee | ||
|
|
8ee8c09939 | ||
|
|
6dac147346 |
||
|
|
c31edba33b |
||
|
|
8b6243c172 |
||
|
|
91f36f3b7a |
||
|
|
3da628c6a1 |
||
|
|
cb72f22e9f |
||
|
|
d47816a3de | ||
|
|
14cf121258 | ||
|
|
40c2979e72 | ||
|
|
6ca447fd65 | ||
|
|
c29859e974 | ||
|
|
6af3419225 |
6 changed files with 1060 additions and 175 deletions
78
.gitignore
vendored
78
.gitignore
vendored
|
|
@ -186,3 +186,81 @@
|
|||
/libpod-1cb16bd.tar.gz
|
||||
/libpod-3f32eae.tar.gz
|
||||
/libpod-228d1cb.tar.gz
|
||||
/libpod-3b88c73.tar.gz
|
||||
/libpod-4934bf2.tar.gz
|
||||
/libpod-1788add.tar.gz
|
||||
/libpod-b223d4e.tar.gz
|
||||
/libpod-cc4addd.tar.gz
|
||||
/libpod-553ac80.tar.gz
|
||||
/libpod-cf52144.tar.gz
|
||||
/libpod-623fcfa.tar.gz
|
||||
/libpod-5afae0b.tar.gz
|
||||
/libpod-9137315.tar.gz
|
||||
/libpod-9adcda7.tar.gz
|
||||
/libpod-f3a3d8e.tar.gz
|
||||
/libpod-4b80517.tar.gz
|
||||
/libpod-40f7843.tar.gz
|
||||
/libpod-614409f.tar.gz
|
||||
/libpod-1b2f867.tar.gz
|
||||
/libpod-9b21f14.tar.gz
|
||||
/libpod-d95f97a.tar.gz
|
||||
/libpod-de0192a.tar.gz
|
||||
/libpod-883566f.tar.gz
|
||||
/libpod-7426d4f.tar.gz
|
||||
/libpod-31f11a8.tar.gz
|
||||
/libpod-6aa8078.tar.gz
|
||||
/libpod-ac523cb.tar.gz
|
||||
/libpod-537c382.tar.gz
|
||||
/libpod-c230f0c.tar.gz
|
||||
/libpod-68e3df3.tar.gz
|
||||
/libpod-0458daf.tar.gz
|
||||
/libpod-d0c6a35.tar.gz
|
||||
/libpod-fc546d4.tar.gz
|
||||
/libpod-850326c.tar.gz
|
||||
/libpod-fdf979a.tar.gz
|
||||
/libpod-7b73974.tar.gz
|
||||
/libpod-833204d.tar.gz
|
||||
/libpod-cd35e20.tar.gz
|
||||
/libpod-ad467ba.tar.gz
|
||||
/libpod-4bda537.tar.gz
|
||||
/libpod-bda28c6.tar.gz
|
||||
/libpod-bc320be.tar.gz
|
||||
/libpod-c94903a.tar.gz
|
||||
/libpod-60ef8f8.tar.gz
|
||||
/libpod-6cd6eb6.tar.gz
|
||||
/libpod-387d601.tar.gz
|
||||
/libpod-1572367.tar.gz
|
||||
/libpod-b926005.tar.gz
|
||||
/libpod-167ce59.tar.gz
|
||||
/libpod-c1e2b58.tar.gz
|
||||
/libpod-a87cf6f.tar.gz
|
||||
/libpod-bf5ffda.tar.gz
|
||||
/libpod-e4947e5.tar.gz
|
||||
/libpod-9f92b21.tar.gz
|
||||
/libpod-d652c86.tar.gz
|
||||
/libpod-b01fdcb.tar.gz
|
||||
/libpod-9ae3221.tar.gz
|
||||
/libpod-7210727.tar.gz
|
||||
/conmon-5995229.tar.gz
|
||||
/libpod-41365a8.tar.gz
|
||||
/libpod-6d285b8.tar.gz
|
||||
/libpod-9b6a98c.tar.gz
|
||||
/libpod-7fd6528.tar.gz
|
||||
/libpod-2371158.tar.gz
|
||||
/libpod-b3f10c8.tar.gz
|
||||
/conmon-1de71ad.tar.gz
|
||||
/conmon-e217fdf.tar.gz
|
||||
/libpod-54b394b.tar.gz
|
||||
/libpod-0005792.tar.gz
|
||||
/libpod-ca5ff03.tar.gz
|
||||
/libpod-9181c65.tar.gz
|
||||
/libpod-b02b072.tar.gz
|
||||
/libpod-a2fdb6e.tar.gz
|
||||
/libpod-233d95f.tar.gz
|
||||
/libpod-4d653f0.tar.gz
|
||||
/libpod-f3ffda1.tar.gz
|
||||
/libpod-7bbef41.tar.gz
|
||||
/libpod-9090c47.tar.gz
|
||||
/libpod-b7ce115.tar.gz
|
||||
/dnsname-f5af33d.tar.gz
|
||||
/v1.8.0.tar.gz
|
||||
|
|
|
|||
6
gating.yaml
Normal file
6
gating.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
--- !Policy
|
||||
product_versions:
|
||||
- fedora-*
|
||||
decision_context: bodhi_update_push_testing
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: org.centos.prod.ci.pipeline.allpackages-build.complete}
|
||||
1015
podman.spec
1015
podman.spec
File diff suppressed because it is too large
Load diff
4
sources
4
sources
|
|
@ -1,2 +1,2 @@
|
|||
SHA512 (cri-o-a30f93c.tar.gz) = 8bfa291fe3720259b63abaae5b0e50574a3437e1742c84fca36ff325d046ddd81a406a26fe0a3c4760b4c69a7e065a9b1ac550f2e061b45aadc7faf4702b798d
|
||||
SHA512 (libpod-228d1cb.tar.gz) = f865d6c86e0fb373b277a05fe74b90b2c82ed6768fca731c63d44fdbb04049798b8989009481bcabe64c9a2e8416f57009ee1e98195dfccddecc7e123d8f3329
|
||||
SHA512 (dnsname-f5af33d.tar.gz) = 564555ef83f9bf70560bfdaf864112d62c318b83827400e65d8cbca6deed0813cafdef222c32ada4f596ad60fe4d9753286e65b577a73c85915bd46fc550cadc
|
||||
SHA512 (v1.8.0.tar.gz) = 8e46633742e7dda1b9f6b641051009485331a3a95fcc8ff4c59c46a66f86ce1b79c832c5775d825aa54b885edaf533be2f864257137277a5265509026d0a8b87
|
||||
|
|
|
|||
|
|
@ -1,82 +1,17 @@
|
|||
#!/bin/bash
|
||||
#!/bin/bash -e
|
||||
#
|
||||
# Simple podman tests
|
||||
#
|
||||
|
||||
set -x
|
||||
# Log program and kernel versions
|
||||
echo "Important package versions:"
|
||||
(
|
||||
uname -r
|
||||
rpm -qa | egrep 'podman|conmon|crun|runc|iptable|slirp|systemd' | sort
|
||||
) | sed -e 's/^/ /'
|
||||
|
||||
exec >/tmp/test.debug.log 2>&1
|
||||
# Log environment; or at least the useful bits
|
||||
echo "Environment:"
|
||||
env | grep -v LS_COLORS= | sort | sed -e 's/^/ /'
|
||||
|
||||
echo "************************************************************************"
|
||||
echo "* This log contains the debug output from test_podman.sh."
|
||||
echo "*"
|
||||
echo "* Short test PASS/FAIL summary is in test.log"
|
||||
echo "************************************************************************"
|
||||
|
||||
rm -f /tmp/test.log
|
||||
touch /tmp/test.log
|
||||
|
||||
counter_file=/tmp/test.counter.txt
|
||||
echo 0 >| $counter_file
|
||||
|
||||
do_test() {
|
||||
local cmd="$1"; shift
|
||||
local expected_status="$1"; shift
|
||||
local expected_stdout="$1"; shift
|
||||
|
||||
counter=$(expr $(< $counter_file) + 1)
|
||||
echo $counter >| $counter_file
|
||||
|
||||
# Make debug log easier to read
|
||||
echo
|
||||
echo "--------------------------------------------------------------------"
|
||||
echo "-- test $counter"
|
||||
echo
|
||||
|
||||
stdout=$(eval podman $cmd)
|
||||
status=$?
|
||||
if [ $status -ne $expected_status ]; then
|
||||
echo "FAIL $counter $cmd: status=$status (expected $expected_status)" >>/tmp/test.log
|
||||
return
|
||||
fi
|
||||
|
||||
if [ "$expected_stdout" = "-" ]; then
|
||||
:
|
||||
elif [ -z "$expected_stdout" ]; then
|
||||
if [ -n "$stdout" ]; then
|
||||
echo "FAIL $counter $cmd : stdout='$stdout' (expected '')" >>/tmp/test.log
|
||||
return
|
||||
fi
|
||||
else
|
||||
if ! expr "$stdout" : "$expected_stdout"; then
|
||||
echo "FAIL $counter $cmd : stdout='$stdout' (expected '$expected_stdout')" >>/tmp/test.log
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "PASS $counter $cmd" >>/tmp/test.log
|
||||
}
|
||||
|
||||
# Clean slate
|
||||
do_test "rm -a -f" 0 "-"
|
||||
do_test "rmi -a -f" 0 "-"
|
||||
|
||||
do_test "info --format '{{.host.rootless}}'" 0 "false"
|
||||
do_test "info --format '{{.store.GraphDriverName}}'" 0 "overlay"
|
||||
|
||||
do_test "pull alpine" 0 "-"
|
||||
do_test "images --format {{.Repository}}:{{.Tag}}" 0 \
|
||||
"docker.io/library/alpine:latest"
|
||||
|
||||
do_test "run alpine sh -c 'echo hi'" 0 "hi"
|
||||
do_test "run alpine date" 0 "-"
|
||||
do_test "run alpine /bin/false" 1 ""
|
||||
|
||||
do_test "ps -a | wc -l" 0 "4"
|
||||
do_test "ps -a | grep false | grep -q 'Exited (1)'" 0 ""
|
||||
|
||||
# Final exit status: nonzero if the word FAIL is present in results
|
||||
if grep -q FAIL /tmp/test.log; then
|
||||
exit 1
|
||||
fi
|
||||
exit 0
|
||||
bats /usr/share/podman/test/system
|
||||
|
|
|
|||
|
|
@ -1,27 +1,22 @@
|
|||
---
|
||||
- hosts: localhost
|
||||
vars:
|
||||
- artifacts: ./artifacts
|
||||
- required_packages:
|
||||
- podman
|
||||
tags:
|
||||
- classic
|
||||
- container
|
||||
|
||||
tasks:
|
||||
- name: install packages
|
||||
dnf: name="{{ required_packages }}" state=installed
|
||||
enablerepo=updates-testing
|
||||
|
||||
- block:
|
||||
- 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
|
||||
roles:
|
||||
- role: standard-test-basic
|
||||
tags:
|
||||
- classic
|
||||
- container
|
||||
required_packages:
|
||||
- bats
|
||||
- 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: loginctl enable-linger fedora; su -c ${PWD}/test_podman.sh - fedora
|
||||
timeout: 15m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue