summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2018-03-01 20:00:24 +0100
committerAndreas Jaeger <aj@suse.com>2018-03-01 20:02:26 +0100
commit72af842b2818f5b43e073cd9196afcc91f6af60a (patch)
tree1305cccd638c12ccce4fce90d8df7062728a8cc8
parent7247b27d70dd4d363fbb3f0013bf54b9f1e38f85 (diff)
downloadliberasurecode-72af842b2818f5b43e073cd9196afcc91f6af60a.tar.gz
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
-rw-r--r--.zuul.yaml25
-rw-r--r--playbooks/unittests/run.yaml15
2 files changed, 40 insertions, 0 deletions
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 }}'