summaryrefslogtreecommitdiffstats
path: root/tests/roles/github-runc
diff options
context:
space:
mode:
authorGuohua Ouyang <gouyang@redhat.com>2018-04-19 21:43:06 +0800
committerGuohua Ouyang <gouyang@redhat.com>2018-04-19 21:43:06 +0800
commit619163f3a6ef9c19a644bd314382b0ff6edbddbc (patch)
treeb620ef957f3ccf2de3c3e60a2165244707ccdf0f /tests/roles/github-runc
parent4770dbb8bf1af8c6a58c2cc154838bc613d939e4 (diff)
downloadbuildah-619163f3a6ef9c19a644bd314382b0ff6edbddbc.tar.gz
buildah-619163f3a6ef9c19a644bd314382b0ff6edbddbc.tar.xz
buildah-619163f3a6ef9c19a644bd314382b0ff6edbddbc.zip
Sync new tests from upstreamfirstHEADmaster
* the tests is quite old since it moved from upstreamfirst * lots of new cases are added, like option 'run', 'inspect' etc * save log to TEST_ARTIFACTS when the variable is set * always run tests with latest runc built from source Signed-off-by: Guohua Ouyang <gouyang@redhat.com>
Diffstat (limited to 'tests/roles/github-runc')
-rw-r--r--tests/roles/github-runc/tasks/main.yml16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/roles/github-runc/tasks/main.yml b/tests/roles/github-runc/tasks/main.yml
new file mode 100644
index 0000000..1752a24
--- /dev/null
+++ b/tests/roles/github-runc/tasks/main.yml
@@ -0,0 +1,16 @@
+---
+- name: pull latest runc source from github
+ git:
+ repo: https://github.com/opencontainers/runc
+ dest: "{{ ansible_env.HOME }}/go/src/github.com/opencontainers/runc"
+
+- name: building runc for buildah runtime
+ command: make
+ args:
+ chdir: "{{ ansible_env.HOME }}/go/src/github.com/opencontainers/runc"
+
+- name: copy runc to /usr/bin
+ copy:
+ remote_src: True
+ src: "{{ ansible_env.HOME }}/go/src/github.com/opencontainers/runc/runc"
+ dest: /usr/bin/runc