execute: how: tmt discover: how: shell tests: - name: pytest test: PYTHONPATH=/usr/lib/rpm/redhat ALTERNATE_PYTHON_VERSION=SKIP pytest -v - name: manual_byte_compilation_clamp_mtime_off path: /tests test: rpmbuild --define 'dist .clamp0' --define 'clamp_mtime_to_source_date_epoch 0' -ba pythontest.spec - name: manual_byte_compilation_clamp_mtime_on path: /tests test: rpmbuild --define 'dist .clamp1' --define 'clamp_mtime_to_source_date_epoch 1' -ba pythontest.spec - name: rpmlint_clamp_mtime_off test: rpmlint ~/rpmbuild/RPMS/*/pythontest-0-0.clamp0.*.rpm | grep python-bytecode-inconsistent-mtime || exit 0 && exit 1 - name: rpmlint_clamp_mtime_on test: rpmlint ~/rpmbuild/RPMS/*/pythontest-0-0.clamp1.*.rpm | grep python-bytecode-inconsistent-mtime || exit 0 && exit 1 prepare: - how: feature epel: enabled - how: install package: - rpm-build - rpmlint - python-rpm-macros - python3-rpm-macros - python3-devel - python3-pytest - dnf - how: shell script: dnf upgrade -y