3 Commits

Author SHA1 Message Date
Petr Šplíchal 28b3f3e400 Try fetching a source rpm for installed tmt 2021-06-17 14:55:34 +02:00
Petr Šplíchal c31792d0e9 Enable the minimal install plan 2021-06-03 10:06:50 +02:00
Petr Šplíchal b00cf6f708 Release tmt-1.6.0 2021-06-02 16:41:44 +02:00
7 changed files with 95 additions and 2 deletions
+1
View File
@@ -16,3 +16,4 @@
/tmt-1.3.1.tar.gz
/tmt-1.4.0.tar.gz
/tmt-1.5.0.tar.gz
/tmt-1.6.0.tar.gz
+12
View File
@@ -0,0 +1,12 @@
summary: Verify that the minimal package works
discover:
tests:
- name: /install/minimal
test: cd $(mktemp -d) && tmt init -t full && tmt
prepare:
summary: Ensure that only 'tmt' is installed
name: minimal
order: 90
script: dnf remove -y 'tmt-*' --exclude tmt
execute:
how: tmt
+5
View File
@@ -0,0 +1,5 @@
summary: Basic smoke test
discover:
how: fmf
execute:
how: tmt
+1 -1
View File
@@ -1 +1 @@
SHA512 (tmt-1.5.0.tar.gz) = 99ab17250ecc126257a0fd7f6140af90a2575f1d3192078aac1ffc0bb788802c3f4445c2f7cd261627f53361772700fde211e15ad2479cd5b599caf5b70880c8
SHA512 (tmt-1.6.0.tar.gz) = 9ef48b424c15d822500636434de1d712583bff60c53d01be6bfcbed4a865a7d4a0f5d4821673347c9e465227728378194ed1ec3ac2c0fd80d8090498a28e2c80
+4
View File
@@ -0,0 +1,4 @@
summary: Fetch source rpm
test: ./test.sh
framework: beakerlib
require: tmt
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
. /usr/share/beakerlib/beakerlib.sh || exit 1
rlJournalStart
rlPhaseStartSetup
rlRun "tmp=\$(mktemp -d)" 0 "Create tmp directory"
rlRun "pushd $tmp"
rlRun "set -o pipefail"
rlPhaseEnd
rlPhaseStartTest
rlFetchSrcForInstalled "tmt"
rlRun "ls -la"
rlPhaseEnd
rlPhaseStartCleanup
rlRun "popd"
rlRun "rm -r $tmp" 0 "Remove tmp directory"
rlPhaseEnd
rlJournalEnd
+51 -1
View File
@@ -1,5 +1,5 @@
Name: tmt
Version: 1.5.0
Version: 1.6.0
Release: 1%{?dist}
Summary: Test Management Tool
@@ -48,6 +48,7 @@ BuildRequires: python%{python3_pkgversion}-mock
BuildRequires: python%{python3_pkgversion}-requests
BuildRequires: python%{python3_pkgversion}-testcloud
BuildRequires: python%{python3_pkgversion}-markdown
BuildRequires: python%{python3_pkgversion}-junit_xml
# Required for tests
BuildRequires: rsync
%{?python_provide:%python_provide python%{python3_pkgversion}-%{name}}
@@ -94,6 +95,13 @@ Requires: python3-jinja2
Generate test results in the html format. Quickly review test
output thanks to direct links to output logs.
%package report-junit
Summary: Report plugin with support for generating JUnit output file
Requires: python3-junit_xml
%description report-junit
Generate test results in the JUnit format.
%package all
Summary: Extra dependencies for the Test Management Tool
Requires: tmt >= %{version}
@@ -101,6 +109,7 @@ Requires: tmt-provision-container >= %{version}
Requires: tmt-provision-virtual >= %{version}
Requires: tmt-test-convert >= %{version}
Requires: tmt-report-html >= %{version}
Requires: tmt-report-junit >= %{version}
%description all
All extra dependencies of the Test Management Tool. Install this
@@ -156,6 +165,7 @@ export LANG=en_US.utf-8
%license LICENSE
%exclude %{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}{podman,testcloud}.*
%exclude %{python3_sitelib}/%{name}/steps/report/{,__pycache__/}html.*
%exclude %{python3_sitelib}/%{name}/steps/report/{,__pycache__/}junit.*
%files provision-container
%{python3_sitelib}/%{name}/steps/provision/{,__pycache__/}podman.*
@@ -166,6 +176,9 @@ export LANG=en_US.utf-8
%files report-html
%{python3_sitelib}/%{name}/steps/report/{,__pycache__/}html.*
%files report-junit
%{python3_sitelib}/%{name}/steps/report/{,__pycache__/}junit.*
%files test-convert
%license LICENSE
@@ -174,6 +187,43 @@ export LANG=en_US.utf-8
%changelog
* Wed Jun 02 2021 Petr Šplíchal <psplicha@redhat.com> - 1.6.0-1
- Adjust the new plugin documentation
- Add plugin examples and documentation
- Ensure that the discover git reference is a string
- Report plugin for JUnit output
- Fix issue when raising error for NoneType
- Print better error when nitrate testcase not found.
- Use `count=True` for multiple flag options
- Add option to explicitly use default plan
- Adjust debuginfo installation, add test coverage
- Use debuginfo-install for installing debuginfos
- Update the documentation based on refactoring
- Implement tmt story lint
- Refactor Node class to Core
- Correctly handle spaces in file/directory names
- Hand over plan environment during local execution
- Do not execute manual test cases
- Fix option handling for plugins with common prefix
- Propagate options to guests based on the step
- Support fetching libraries from a local directory
- Add a simple example of a test written in ansible
- Pass environment variables to ansible (local)
- Pass environment variables to ansible (virtual)
- Adjust warning for extra lines in Makefile targets
- Add test import warning for run and build targets
- Enable a few more pre-commit hooks, sort imports
- Give a warning about the obsoleted minute plugin
- Clarify adjust dependency on explicit context
- Fix the EPEL installation instructions
- Adjust the new list options for the minute plugin
- New print method, used now in minute plugin
- Implement listing available minute images/flavors
- Update default option values for verbose and debug
- Avoid creating workdir on --help
- Do not keep run workdir during testing
- Clean up the code style, remove the vagrant plugin
* Fri Apr 30 2021 Petr Šplíchal <psplicha@redhat.com> - 1.5.0-1
- Enable and document `pre-commit` and `autopep8`
- Reorganize feature stories, fix title duplication