diff --git a/tests/test-simple b/tests/test-simple new file mode 100644 index 0000000..ec7bbc6 --- /dev/null +++ b/tests/test-simple @@ -0,0 +1,2 @@ +#/usr/bin/bash +rpm -q --provides google-croscore-fonts diff --git a/tests/test_simple.yml b/tests/test_simple.yml new file mode 100644 index 0000000..87f0af9 --- /dev/null +++ b/tests/test_simple.yml @@ -0,0 +1,25 @@ +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + remote_user: root + tasks: + - name: Install the test files + copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755 + with_items: + - {file: test-simple, dest: test-simple } + + - name: Test block + block: + - name: Execute the tests + shell: exec > /tmp/test.log 2>&1 && /usr/local/bin/test-simple + + always: + - name: Pull out the logs + fetch: + dest: "{{ artifacts }}/" + src: "/tmp/test.log" + flat: yes + required_packages: + - google-croscore-fonts diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..e6be863 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1 @@ +- import_playbook: test_simple.yml