Skip to content

Commit

Permalink
WIP: introduce integration testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
mrc0mmand committed Jun 6, 2024
1 parent 060b34c commit 20ab7b4
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ jobs:
trigger: pull_request
targets:
- fedora-all

- job: tests
trigger: pull_request
fmf_path: test/integration/
targets:
# FIXME: use fedora-all-{x86_64,aarch64}
- fedora-rawhide-x86_64
1 change: 1 addition & 0 deletions test/integration/.fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
2 changes: 2 additions & 0 deletions test/integration/foo/main.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
summary: Concise summary describing what the test does
test: ./test.sh
6 changes: 6 additions & 0 deletions test/integration/foo/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh -eux

tmp=$(mktemp)
tmt --help > "$tmp"
grep -C3 'Test Management Tool' "$tmp"
rm "$tmp"
9 changes: 9 additions & 0 deletions test/integration/plans/upstream_ci.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# vi: set sw=2 ts=2 et ft=yaml tw=80:

# This plan discovers and executes all (enabled) integration tests

summary: Upstream integration test suite
discover:
how: fmf
execute:
how: tmt

0 comments on commit 20ab7b4

Please sign in to comment.