diff --git a/tests/test-simple b/tests/test-simple index ec7bbc6..2dcf918 100644 --- a/tests/test-simple +++ b/tests/test-simple @@ -1,2 +1,15 @@ #/usr/bin/bash -rpm -q --provides google-croscore-fonts +aminfo=`rpm -q --provides google-croscore-arimo-fonts| grep "metainfo(google-croscore-arimo.metainfo.xml)"` +if [[ $aminfo ]];then + echo "metainfo present for Google CrosCore Arimo font" +fi + +tminfo=`rpm -q --provides google-croscore-tinos-fonts| grep "metainfo(google-croscore-tinos.metainfo.xml)"` +if [[ $tminfo ]];then + echo "metainfo present for Google CrosCore Tinos font" +fi + +cminfo=`rpm -q --provides google-croscore-cousine-fonts | grep "metainfo(google-croscore-cousine.metainfo.xml)"` +if [[ $cminfo ]];then + echo "metainfo present for Google CrosCore Cousine font" +fi diff --git a/tests/test_simple.yml b/tests/test_simple.yml index 87f0af9..97d1172 100644 --- a/tests/test_simple.yml +++ b/tests/test_simple.yml @@ -1,25 +1,28 @@ - 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 } + vars: + - artifacts: ./artifacts + tags: + - classic + remote_user: root + tasks: + - name: Install required packages + dnf: + name: google-croscore-*-fonts + state: latest - - name: Test block - block: - - name: Execute the tests - shell: exec > /tmp/test.log 2>&1 && /usr/local/bin/test-simple + - 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 } - always: - - name: Pull out the logs - fetch: - dest: "{{ artifacts }}/" - src: "/tmp/test.log" - flat: yes - required_packages: - - google-croscore-fonts + - 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