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
This commit is contained in:
Petr Šplíchal 2018-01-11 17:45:45 +01:00
parent 353794eb9d
commit a6a99a32c9

34
tests/tests.yml Normal file
View File

@ -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