From 47630aba2a1b305a569b75ef6f4a951e722c3b76 Mon Sep 17 00:00:00 2001 From: Omair Majid Date: Oct 31 2018 20:36:03 +0000 Subject: Enable CI tests using the Standard Test Interface Adding initial set of basic functionality tests for dotnet according to the Standard Test Interface [1]. See Quick Start Guide [2] for brief introduction about how to run these tests and the Fedora CI portal [3] for more detailed info and links. A Dockerfile for create an environment for local testing is also included. [1] https://fedoraproject.org/wiki/CI/Standard_Test_Interface [2] https://fedoraproject.org/wiki/CI/Quick_Start_Guide [3] https://fedoraproject.org/wiki/CI --- diff --git a/tests/Dockerfile b/tests/Dockerfile new file mode 100644 index 0000000..a877a57 --- /dev/null +++ b/tests/Dockerfile @@ -0,0 +1,16 @@ +FROM fedora:28 + +RUN dnf install -y dnf-plugins-core && \ + dnf copr enable @dotnet-sig/dotnet -y && \ + dnf upgrade --refresh -y && \ + dnf install -y dotnet-sdk-2.1 standard-test-roles ansible git && \ + dnf clean all + +# Keep files created by ansible. Useful for debugging +ENV ANSIBLE_KEEP_REMOTE_FILES=1 +ENV TEST_DEBUG=1 + +RUN mkdir /dotnet-2-1/ +COPY tests.yml /dotnet-2-1/tests.yml + +CMD ["ansible-playbook", "dotnet-2-1/tests.yml"] diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..9bd167b --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,26 @@ +--- +- hosts: localhost + roles: + - role: standard-test-basic + tags: + - classic + - container + - atomic + repositories: + - repo: "https://github.com/redhat-developer/dotnet-bunny.git" + dest: "dotnet-bunny" + - repo: "https://github.com/redhat-developer/dotnet-regular-tests.git" + dest: "dotnet-bunny/dotnet-regular-tests" + tests: + - regular: + dir: dotnet-bunny/ + run: ./run-tests.py 2.1 -l={{ remote_artifacts }} + required_packages: + - expect + - which + - python3 + - jq + - bash-completion + - binutils + - npm + - strace