ghc-zlib/tests/tests.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2019-08-14 16:15:25 +00:00
---
- hosts: localhost
tags:
- classic
vars:
# standard-test-basic directory for tests are relative to {{ tenv_workdir }}
tenv_workdir: /var/test
pre_tasks:
- import_role:
name: standard-test-source
vars:
fetch_only: True
- name: Copy files including source to test environment
synchronize:
src: "{{ playbook_dir }}/.."
dest: "{{ tenv_workdir }}"
mode: push
ssh_args: "-o UserKnownHostsFile=/dev/null"
2019-08-14 16:15:25 +00:00
roles:
2019-08-14 16:15:25 +00:00
- role: standard-test-basic
required_packages:
- cabal-install
- ghc-tasty-hunit-devel
- ghc-tasty-quickcheck-devel
- ghc-zlib-devel
2019-09-25 09:34:25 +00:00
- ghc-rpm-macros
- rpm-build
2019-08-14 16:15:25 +00:00
tests:
- prepare-source:
dir: ./
run: rpmbuild -bp {{ tenv_workdir }}/*.spec --nodeps --define "_sourcedir {{ tenv_workdir }}" --define "_builddir {{ tenv_workdir }}/source"
- flatten-source:
dir: ./
run: shopt -s dotglob; mv {{ tenv_workdir }}/source/*/* {{ tenv_workdir }}/source
- smoke:
2019-08-14 16:15:25 +00:00
dir: simple
run: ./runtest.sh {{ tenv_workdir }}/source/
...