From 72af842b2818f5b43e073cd9196afcc91f6af60a Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Thu, 1 Mar 2018 20:00:24 +0100 Subject: [PATCH] Import Zuul unittests Add the unittests in-tree and convert them as Zuul v3 native tests so that they can be modified locally. This adds a new job running on Ubuntu and an experimental CentOS-7 one. Change-Id: Ib43e40280411623fda84f2068958b64a17cdc3dc --- .zuul.yaml | 25 +++++++++++++++++++++++++ playbooks/unittests/run.yaml | 15 +++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 .zuul.yaml create mode 100644 playbooks/unittests/run.yaml diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..2565a73 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,25 @@ +- job: + name: liberasurecode-unittests + parent: unittests + description: | + Build and run test and valgrind-test for liberasurecode. + run: playbooks/unittests/run.yaml + +- job: + name: liberasurecode-unittests-centos-7 + parent: liberasurecode-unittests + nodeset: centos-7 + description: | + Build and run test and valgrind-test for liberasurecode. + This job runs on CentOS-7. + +- project: + check: + jobs: + - liberasurecode-unittests + gate: + jobs: + - liberasurecode-unittests + experimental: + jobs: + - liberasurecode-unittests-centos-7 diff --git a/playbooks/unittests/run.yaml b/playbooks/unittests/run.yaml new file mode 100644 index 0000000..c66c4e3 --- /dev/null +++ b/playbooks/unittests/run.yaml @@ -0,0 +1,15 @@ +- hosts: all + + tasks: + - name: Build and test + shell: + cmd: | + set -e + set -x + ./autogen.sh + ./configure + make + make test + make valgrind-test + executable: /bin/bash + chdir: '{{ zuul.project.src_dir }}'