Migrate to TMT
Signed-off-by: Julien Rische <jrische@redhat.com>
This commit is contained in:
parent
e6e0f3539b
commit
b5e2620d27
1
.fmf/version
Normal file
1
.fmf/version
Normal file
@ -0,0 +1 @@
|
||||
1
|
||||
9
plans/tests.fmf
Normal file
9
plans/tests.fmf
Normal file
@ -0,0 +1,9 @@
|
||||
summary: Tests
|
||||
discover:
|
||||
how: fmf
|
||||
dist-git-source: true
|
||||
prepare:
|
||||
how: feature
|
||||
crb: enabled
|
||||
execute:
|
||||
how: tmt
|
||||
@ -1,25 +0,0 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
tags:
|
||||
- classic
|
||||
pre_tasks:
|
||||
- name: Enable CRB for python3-pytest on 1minutetip
|
||||
ini_file:
|
||||
path: /etc/yum.repos.d/rhel.repo
|
||||
section: rhel-CRB
|
||||
option: enabled
|
||||
value: "1"
|
||||
create: no
|
||||
ignore_errors: yes
|
||||
roles:
|
||||
- role: standard-test-source
|
||||
- role: standard-test-basic
|
||||
required_packages:
|
||||
- python3-kdcproxy
|
||||
- python3-pytest
|
||||
tests:
|
||||
- unittests:
|
||||
dir: "source"
|
||||
run: >-
|
||||
rm -rf kdcproxy* &&
|
||||
python3 -m pytest
|
||||
11
tests/unittests/main.fmf
Normal file
11
tests/unittests/main.fmf
Normal file
@ -0,0 +1,11 @@
|
||||
summary: Unit tests
|
||||
component:
|
||||
- python-kdcproxy
|
||||
require:
|
||||
- python3-kdcproxy
|
||||
- python3-pytest
|
||||
test: |
|
||||
pushd "${TMT_SOURCE_DIR}/kdcproxy-"*/
|
||||
python3 -m pytest
|
||||
duration: 15m
|
||||
enabled: true
|
||||
Loading…
Reference in New Issue
Block a user