From 830dbbe0e00a3bce4fb88469b8afb0046bb9163f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Zaoral?= Date: Tue, 24 Jun 2025 15:09:24 +0200 Subject: [PATCH 1/2] tests: migrate STI tests to TMT --- .fmf/version | 1 + plans/ci.fmf | 5 ++++ tests/silvester-number/main.fmf | 6 +++++ tests/silvester-number/test.sh | 10 +++++++ tests/tests.yml | 46 --------------------------------- 5 files changed, 22 insertions(+), 46 deletions(-) create mode 100644 .fmf/version create mode 100644 plans/ci.fmf create mode 100644 tests/silvester-number/main.fmf create mode 100755 tests/silvester-number/test.sh delete mode 100644 tests/tests.yml 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/ci.fmf b/plans/ci.fmf new file mode 100644 index 0000000..c1627f9 --- /dev/null +++ b/plans/ci.fmf @@ -0,0 +1,5 @@ +summary: Basic smoke test +discover: + how: fmf +execute: + how: tmt diff --git a/tests/silvester-number/main.fmf b/tests/silvester-number/main.fmf new file mode 100644 index 0000000..919dffd --- /dev/null +++ b/tests/silvester-number/main.fmf @@ -0,0 +1,6 @@ +summary: Calculate Silvester Number +framework: shell +test: ./test.sh +component: mpfr +recommends: + - gawk diff --git a/tests/silvester-number/test.sh b/tests/silvester-number/test.sh new file mode 100755 index 0000000..d46c907 --- /dev/null +++ b/tests/silvester-number/test.sh @@ -0,0 +1,10 @@ +#!/bin/sh -eux + +OUT="$(gawk -M 'BEGIN { + s = 2 + for (i = 1; i <= 7; i++) + s = s * (s - 1) + 1 + print s +}')" + +test "$OUT" = "113423713055421844361000443" diff --git a/tests/tests.yml b/tests/tests.yml deleted file mode 100644 index dd32ccf..0000000 --- a/tests/tests.yml +++ /dev/null @@ -1,46 +0,0 @@ -- hosts: all - vars: - - ansible_python_interpreter: /usr/bin/python3 - - artifacts: ./artifacts - tags: - - classic - - container - - atomic - tasks: - - name: create artifacts - file: - path: "{{ artifacts }}" - state: directory - delegate_to: localhost - - - name: do it all - block: - - name: calculate Silvester number - command: | - gawk -M 'BEGIN { - s = 2 - for (i = 1; i <= 7; i++) - s = s * (s - 1) + 1 - print s - }' - register: silvester - - - name: verify Silvester number - fail: - when: silvester.stdout != '113423713055421844361000443' - - always: - - name: write log - copy: - content: | - stderr: - {{ silvester.stderr }} - stdout: - {{ silvester.stdout }} - dest: "{{ artifacts }}/test.log" - delegate_to: localhost - -# fetch: -# dest: "{{ artifacts }}/" -# src: "/tmp/test.log" -# flat: yes From ebdaaedf86e2a22913d26995ac27c9d1e45cd406 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 24 Jul 2025 22:24:07 +0000 Subject: [PATCH 2/2] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- mpfr.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mpfr.spec b/mpfr.spec index 87247b8..68ad652 100644 --- a/mpfr.spec +++ b/mpfr.spec @@ -1,7 +1,7 @@ Summary: C library for multiple-precision floating-point computations Name: mpfr Version: 4.2.2 -Release: 1%{?dist} +Release: 2%{?dist} URL: https://www.mpfr.org/ VCS: git:https://gitlab.inria.fr/mpfr/mpfr.git @@ -98,6 +98,9 @@ export LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{_infodir}/mpfr.info* %changelog +* Thu Jul 24 2025 Fedora Release Engineering - 4.2.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Mar 20 2025 Jerry James - 4.2.2-1 - Update to MPFR 4.2.2