Compare commits
	
		
			No commits in common. "c10s" and "c9s" have entirely different histories.
		
	
	
		
	
		
| @ -1 +0,0 @@ | ||||
| 1 | ||||
| @ -1,6 +1,6 @@ | ||||
| --- !Policy | ||||
| product_versions: | ||||
|   - rhel-10 | ||||
|   - rhel-9 | ||||
| decision_context: osci_compose_gate | ||||
| rules: | ||||
|   # this is the testcase identifier, which OSCI pipeline uses | ||||
|  | ||||
| @ -1,5 +0,0 @@ | ||||
| summary: Basic smoke test | ||||
| discover: | ||||
|     how: fmf | ||||
| execute: | ||||
|     how: tmt | ||||
| @ -3,7 +3,7 @@ | ||||
| 
 | ||||
| Name:           python-%{pypi_name} | ||||
| Version:        1.1.0 | ||||
| Release:        24%{?dist} | ||||
| Release:        11%{?dist} | ||||
| Summary:        A tiny test runner that outputs TAP results to standard output | ||||
| 
 | ||||
| License:        MIT | ||||
| @ -49,54 +49,15 @@ find %{buildroot}/%{python3_sitelib} -name '*.py' | xargs sed -i '/^#!/d' | ||||
| %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info | ||||
| 
 | ||||
| %changelog | ||||
| * Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 1.1.0-24 | ||||
| - Bump release for October 2024 mass rebuild: | ||||
|   Resolves: RHEL-64018 | ||||
| * Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.0-11 | ||||
| - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags | ||||
|   Related: rhbz#1991688 | ||||
| 
 | ||||
| * Fri Oct 11 2024 Takao Fujiwara <tfujiwar@redhat.com> - 1.1.0-23 | ||||
| - Rebuild for CI | ||||
| * Sat May 01 2021 Takao Fujiwara <tfujiwar@redhat.com> - 1.1.0-10 | ||||
| - Enable CI. Related: rhbz#1956213 | ||||
| 
 | ||||
| * Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 1.1.0-22 | ||||
| - Bump release for June 2024 mass rebuild | ||||
| 
 | ||||
| * Fri May 10 2024 Takao Fujiwara <tfujiwar@redhat.com> - 1.1.0-21 | ||||
| - Rebuild for RHEL10 | ||||
| 
 | ||||
| * Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-20 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild | ||||
| 
 | ||||
| * Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-19 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild | ||||
| 
 | ||||
| * Mon Aug 21 2023 Parag Nemade <pnemade AT fedoraproject DOT org> - 1.1.0-18 | ||||
| - Mark this as SPDX license expression converted | ||||
| 
 | ||||
| * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-17 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild | ||||
| 
 | ||||
| * Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.1.0-16 | ||||
| - Rebuilt for Python 3.12 | ||||
| 
 | ||||
| * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-15 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild | ||||
| 
 | ||||
| * Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-14 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild | ||||
| 
 | ||||
| * Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.1.0-13 | ||||
| - Rebuilt for Python 3.11 | ||||
| 
 | ||||
| * Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-12 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild | ||||
| 
 | ||||
| * Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-11 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild | ||||
| 
 | ||||
| * Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.0-10 | ||||
| - Rebuilt for Python 3.10 | ||||
| 
 | ||||
| * Sat May 01 2021 Takao Fujiwara <tfujiwar@redhat.com> - 1.1.0-9 | ||||
| - Enable CI | ||||
| * Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.1.0-9 | ||||
| - Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 | ||||
| 
 | ||||
| * Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8 | ||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild | ||||
|  | ||||
| @ -1,5 +0,0 @@ | ||||
| summary: Simple test of python-pycotap | ||||
| test: ./test.sh | ||||
| framework: beakerlib | ||||
| require: | ||||
|     - python3-pycotap | ||||
| @ -1,36 +0,0 @@ | ||||
| #!/usr/bin/python3 | ||||
| # -*- coding: utf-8 -*- | ||||
| 
 | ||||
| import unittest | ||||
| import sys | ||||
| 
 | ||||
| from pycotap import TAPTestRunner | ||||
| from pycotap import LogMode | ||||
| 
 | ||||
| 
 | ||||
| class SimpleTest(unittest.TestCase): | ||||
|     @classmethod | ||||
|     def function_name(cls): | ||||
|         return sys._getframe().f_back.f_code.co_name | ||||
| 
 | ||||
|     @classmethod | ||||
|     def setUpClass(cls): | ||||
|         print(cls.function_name()) | ||||
| 
 | ||||
|     def setUp(self): | ||||
|         print(SimpleTest.function_name()) | ||||
| 
 | ||||
|     def main(self): | ||||
|         print(SimpleTest.function_name()) | ||||
| 
 | ||||
|     def test_foo(self): | ||||
|         print(SimpleTest.function_name()) | ||||
| 
 | ||||
| 
 | ||||
| def main(): | ||||
|     loader = unittest.TestLoader() | ||||
|     runner = TAPTestRunner(test_output_log=LogMode.LogToError) | ||||
|     unittest.main(testRunner=runner, testLoader=loader) | ||||
| 
 | ||||
| if __name__ == '__main__': | ||||
|     main() | ||||
| @ -1,9 +0,0 @@ | ||||
| #!/bin/bash | ||||
| # vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k | ||||
| . /usr/share/beakerlib/beakerlib.sh || exit 1 | ||||
| 
 | ||||
| rlJournalStart | ||||
|     rlPhaseStartTest | ||||
|         rlRun -t "./test.py" | ||||
|     rlPhaseEnd | ||||
| rlJournalEnd | ||||
							
								
								
									
										53
									
								
								tests/tests.py
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										53
									
								
								tests/tests.py
									
									
									
									
									
										Executable file
									
								
							| @ -0,0 +1,53 @@ | ||||
| #!/usr/bin/python3 | ||||
| # -*- coding: utf-8 -*- | ||||
| 
 | ||||
| from __future__ import print_function | ||||
| 
 | ||||
| import sys | ||||
| import unittest | ||||
| 
 | ||||
| # Need to flush the output against Gtk.main() | ||||
| def printflush(sentence): | ||||
|     try: | ||||
|         print(sentence, flush=True) | ||||
|     except IOError: | ||||
|         pass | ||||
| 
 | ||||
| def printerr(sentence): | ||||
|     try: | ||||
|         print(sentence, flush=True, file=sys.stderr) | ||||
|     except IOError: | ||||
|         pass | ||||
| 
 | ||||
| from pycotap import TAPTestRunner | ||||
| from pycotap import LogMode | ||||
| printflush('## Load pycotap') | ||||
| 
 | ||||
| 
 | ||||
| class AnthyTest(unittest.TestCase): | ||||
|     __test_index = 0 | ||||
| 
 | ||||
|     @classmethod | ||||
|     def setUpClass(cls): | ||||
|         printflush('## setUpclass done') | ||||
|         cls.__test_index += 1 | ||||
| 
 | ||||
|     def setUp(self): | ||||
|         self.__test_index += 1 | ||||
|         printflush('## setUp done') | ||||
| 
 | ||||
|     def test_case1(self): | ||||
|         if self.__test_index != 2: | ||||
|             with self.subTest(i = self.__test_index): | ||||
|                 self.fail('setUp does not run: ' + error.message) | ||||
|         printflush('## Test done %d' % self.__test_index) | ||||
| 
 | ||||
| 
 | ||||
| def main(): | ||||
|     loader = unittest.TestLoader() | ||||
|     # Log should be in stderr instead of StringIO | ||||
|     runner = TAPTestRunner(test_output_log=LogMode.LogToError) | ||||
|     unittest.main(testRunner=runner, testLoader=loader) | ||||
| 
 | ||||
| if __name__ == '__main__': | ||||
|     main() | ||||
							
								
								
									
										13
									
								
								tests/tests.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								tests/tests.yml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| - hosts: localhost | ||||
|   tags: | ||||
|     - classic | ||||
|   roles: | ||||
|   - role: standard-test-basic | ||||
|   #- role: standard-test-beakerlib | ||||
|     required_packages: | ||||
|     - python3-pycotap | ||||
|     tests: | ||||
|     - smoke1: | ||||
|         dir: . | ||||
|         run: ./tests.py | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user