diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/plans/local/basic.fmf b/plans/local/basic.fmf new file mode 120000 index 0000000..a00dd90 --- /dev/null +++ b/plans/local/basic.fmf @@ -0,0 +1 @@ +../pr-tests/basic.fmf \ No newline at end of file diff --git a/plans/local/main.fmf b/plans/local/main.fmf new file mode 100644 index 0000000..dd50a59 --- /dev/null +++ b/plans/local/main.fmf @@ -0,0 +1,8 @@ +/basic: + summary+: ' (localhost)' + discover+: + filter: tag:local + prepare: + how: install + package: + - python3-gobject-base diff --git a/plans/pr-tests/basic.fmf b/plans/pr-tests/basic.fmf new file mode 100644 index 0000000..f874662 --- /dev/null +++ b/plans/pr-tests/basic.fmf @@ -0,0 +1,9 @@ +summary: Run unit tests +discover: + how: fmf + filter: tag:sys-installed +provision: + how: container + image: fedora:latest +execute: + how: shell diff --git a/plans/pr-tests/smoke.fmf b/plans/pr-tests/smoke.fmf new file mode 100644 index 0000000..5143f59 --- /dev/null +++ b/plans/pr-tests/smoke.fmf @@ -0,0 +1,7 @@ +summary: Run smoke test +provision: + how: container + image: fedora:latest +execute: + how: shell + script: python3 -c "import simpleline" diff --git a/tests/units/main.fmf b/tests/units/main.fmf new file mode 100644 index 0000000..ba95450 --- /dev/null +++ b/tests/units/main.fmf @@ -0,0 +1,16 @@ +summary: Run unit tests +description: Run all unit tests for the Simpleline project. +contact: Jiri Konecny +duration: 10m + +/source: + summary+: ' (source)' + path: / + test: ./tests/units/run_test.sh + tag: local + +/system: + summary+: ' (system)' + path: tests/ + test: ./units/run_test.sh + tag: sys-installed