From d9049f9b658c13c0a9c4c3bc9ef1fd4cabf2cf9e Mon Sep 17 00:00:00 2001 From: Miroslav Vadkerti Date: Fri, 26 Oct 2018 18:21:40 +0200 Subject: [PATCH] Add tests running bundled tests in source In Standard Test Interface format. Signed-off-by: Miroslav Vadkerti --- tests/tests.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tests/tests.yml diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..96fac9c --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,32 @@ +--- +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-source + +- hosts: localhost + tags: + - classic + tasks: + - name: Make sure fedpkg and selinux bindings are installed + shell: dnf -y install fedpkg python2-libselinux libmodulemd-devel + - name: Copy spec file to remote machine + copy: + src: "{{ playbook_dir }}/../libmodulemd.spec" + dest: /tmp/libmodulemd.spec + - name: Install build deps + shell: dnf -y build-dep /tmp/libmodulemd.spec + +- hosts: localhost + tags: + - classic + roles: + - role: standard-test-basic + tests: + - build: + dir: . + run: meson -Dtest_installed_lib=true -Ddeveloper_build=false source + - test: + dir: . + run: ninja test