Commit 690f9c9 checkpoint

3 files Merged and Committed by santiago 10 months ago
checkpoint

    
 1 @@ -0,0 +1,33 @@
 2 + #!/bin/bash
 3 + #
 4 + # Simple wrapper for cri-o tests
 5 + #
 6 + 
 7 + set -e -x
 8 + 
 9 + exec >/tmp/test.debug.log 2>&1
10 + 
11 + rm -f /tmp/test.log
12 + 
13 + cd /usr/share/cri-o/test
14 + 
15 + # Gah
16 + cp --force redhat_sigstore.yaml \
17 +     /etc/containers/registries.d/registry.access.redhat.com.yaml
18 + 
19 + export CRIO_CNI_PLUGIN=/usr/libexec/cni
20 + export OCIC_BINARY=/usr/bin/crioctl
21 + export PAUSE_BINARY=/usr/libexec/crio/pause
22 + export CRIO_BINARY=/usr/bin/crio
23 + export KPOD_BINARY=/usr/bin/kpod
24 + export CONMON_BINARY=/usr/libexec/crio/conmon
25 + export SECCOMP_PROFILE=/etc/crio/seccomp.json
26 + 
27 + ./test_runner.sh
28 + 
29 + # FIXME: exit status?
30 + # FIXME: filter into /tmp/test.log
31 + 
32 + touch /tmp/test.log
33 + 
34 + exit 0
 1 @@ -0,0 +1,36 @@
 2 + ---
 3 + - hosts: localhost
 4 +   vars:
 5 +   - artifacts: ./artifacts
 6 +     excluded_tests: ""
 7 +   tags:
 8 +     - classic
 9 +     - container
10 + #    - atomic
11 + 
12 +   tasks:
13 +   - name: install integration tests
14 +     dnf: name={{ item }} state=present
15 +     with_items:
16 +       - cri-o
17 +       - cri-o-integration-tests
18 +       - cri-tools
19 +       - nmap-ncat
20 +       - socat
21 +       - containernetworking-cni
22 +       - bats
23 + 
24 +   - block:
25 +       - name: Run test
26 +         script: ./test_crio.sh
27 +     always:
28 +       - name: Pull out logs
29 +         fetch:
30 +           src: "/tmp/{{ item.remote_path }}"
31 +           dest: "{{ artifacts }}/{{ item.localname }}"
32 +           flat: yes
33 +         with_items:
34 +           - remote_path: test.log
35 +             localname: test.log
36 +           - remote_path: test.debug.log
37 +             localname: test.debug.log
1 @@ -0,0 +1,1 @@
2 + - import_playbook: test_crio.yml