From a6a99a32c9790870139899dcbc24ad4e80f6522e Mon Sep 17 00:00:00 2001 From: Petr Šplíchal Date: Jan 11 2018 16:45:45 +0000 Subject: Add CI tests using the standard test interface Adding initial set of basic functionality tests for bash according to the CI wiki [1] and the Standard Test Interface [2]. Instead of copying the test code this pull request links tests from the new shared shell tests repo and fetches them using the "repositories" option [3]. [1] https://fedoraproject.org/wiki/CI [2] https://fedoraproject.org/wiki/Changes/InvokingTests [3] https://pagure.io/standard-test-roles/pull-request/101 --- diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..5cee817 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,34 @@ +--- + +# Tests that run in classic context +- hosts: localhost + roles: + - role: standard-test-beakerlib + tags: + - classic + repositories: + - repo: "https://src.fedoraproject.org/tests/shell.git" + dest: "shell" + tests: + - shell/func + - shell/login + - shell/smoke + required_packages: + - expect # login requires expect + - which # smoke requires which + +# Tests that run in container and atomic contexts +- hosts: localhost + roles: + - role: standard-test-beakerlib + tags: + - container + - atomic + repositories: + - repo: "https://src.fedoraproject.org/tests/shell.git" + dest: "shell" + tests: + - shell/func + - shell/smoke + required_packages: + - which # smoke requires which