Update tests

f38
Parag Nemade 6 years ago
parent 8f02ea22bc
commit a1f163c024
No known key found for this signature in database
GPG Key ID: 71932951EB71E972

@ -1,2 +1,15 @@
#/usr/bin/bash #/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

@ -1,25 +1,28 @@
- hosts: localhost - hosts: localhost
roles: vars:
- role: standard-test-basic - artifacts: ./artifacts
tags: tags:
- classic - classic
remote_user: root remote_user: root
tasks: tasks:
- name: Install the test files - name: Install required packages
copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755 dnf:
with_items: name: google-croscore-*-fonts
- {file: test-simple, dest: test-simple } state: latest
- name: Test block - name: Install the test files
block: copy: src={{ item.file }} dest=/usr/local/bin/{{ item.dest }} mode=0755
- name: Execute the tests with_items:
shell: exec > /tmp/test.log 2>&1 && /usr/local/bin/test-simple - {file: test-simple, dest: test-simple }
always: - name: Test block
- name: Pull out the logs block:
fetch: - name: Execute the tests
dest: "{{ artifacts }}/" shell: exec > /tmp/test.log 2>&1 && /usr/local/bin/test-simple
src: "/tmp/test.log"
flat: yes always:
required_packages: - name: Pull out the logs
- google-croscore-fonts fetch:
dest: "{{ artifacts }}/"
src: "/tmp/test.log"
flat: yes

Loading…
Cancel
Save