Skip to content

Commit

Permalink
tests: fmf/tmt combination for tests in upstrean and Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
jscotka committed Apr 1, 2021
1 parent 890f286 commit 5ddac5d
Show file tree
Hide file tree
Showing 11 changed files with 56 additions and 79 deletions.
6 changes: 5 additions & 1 deletion .packit.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
---
synced_files:
- src: fedora-tests/
- src: tests/
dest: tests/
- src: plans/
dest: plans/
- src: .fmf/
dest: .fmf/
# packit was already taken on PyPI
upstream_package_name: packitos
upstream_project_url: https://github.com/packit/packit
Expand Down
6 changes: 0 additions & 6 deletions fedora-tests/simple.py

This file was deleted.

26 changes: 0 additions & 26 deletions fedora-tests/tests.yml

This file was deleted.

25 changes: 0 additions & 25 deletions fedora-tests/upstream.sh

This file was deleted.

13 changes: 5 additions & 8 deletions plans/full.fmf
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
summary:
Unit, integration & functional tests.
prepare:
how: ansible
playbooks:
- files/packit-testing-farm-prepare.yaml
summary: Unit, integration & functional tests.
discover:
how: fmf
filter: tier:1
execute:
script:
- make check
how: tmt
13 changes: 5 additions & 8 deletions plans/session-recording.fmf
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
summary:
Tests using pre-recorded responses from external services.
prepare:
how: ansible
playbooks:
- files/packit-testing-farm-prepare-session-recording.yaml
summary: Session recording testcases
discover:
how: fmf
filter: tier:2
execute:
script:
- make check TESTS_TARGET=tests_recording
how: tmt
10 changes: 5 additions & 5 deletions plans/smoke.fmf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
summary:
Basic smoke tests.
summary: Basic simple tests
discover:
how: fmf
filter: tier:0
execute:
script:
- packit --version
- packit --help
how: tmt
14 changes: 14 additions & 0 deletions tests/full.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
require:
- python3-flexmock
- python-requre
- python3-pytest
- packit
- python3-packit
- python3-pytest-cov
- rpmautospec-rpm-macros
component:
- packit
tier: 1
tag:
- basic
test: pytest -v .
5 changes: 5 additions & 0 deletions tests/smoke.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
summary: Basic smoke test
test: ./smoke.sh
tag:
- smoke
tier: 0
5 changes: 5 additions & 0 deletions tests/smoke.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
set -eux

packit --version
packit --help
12 changes: 12 additions & 0 deletions tests_recording/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require:
- python3-flexmock
- python-requre
- python3-pytest
- packit
- python3-packit
component:
- packit
tier: 2
tag:
- requre
test: pytest -v .

0 comments on commit 5ddac5d

Please sign in to comment.