Name: uke-control-rust-tui-check Version: 2.22.0 Release: 3%{?dist} Summary: Uke Control Rust terminal model source check License: MIT BuildArch: noarch Source0: ukectl-tui-rust.tar.xz Source1: uke-control-legacy-tui-inputs.tar.xz Source2: uke-control-legacy-pty.tar.xz BuildRequires: cargo-rpm-macros gcc-c++ binutils jq BuildRequires: gcc ncurses-base pkgconfig(ncursesw) pkgconfig(vterm) BuildRequires: e2fsprogs f2fs-tools util-linux pipewire-libs BuildRequires: crate(libc/default) crate(serde/default) crate(serde_json/default) crate(serde_json/preserve_order) BuildRequires: pkgconfig(ext2fs) pkgconfig(mount) pkgconfig(libselinux) pkgconfig(libsystemd) pkgconfig(libdrm) BuildRequires: pkgconfig(libdisplay-info) >= 0.3.0 BuildRequires: pkgconfig(libspa-0.2) pkgconfig(jsoncpp) %description Verify the Rust terminal sources against the existing Uke Control interface. %prep %setup -q -n ukectl -a 1 -a 2 (cd legacy && sha256sum --check --strict SHA256SUMS) %cargo_prep %build set -o pipefail %set_build_flags test "$(uname -m)" = aarch64 %{__cc} -std=c11 -Wall -Wextra -Werror -fsyntax-only tests/terminal-abi.c %{__cxx} $CXXFLAGS -std=c++20 -Wall -Wextra -Werror -Ilegacy tests/legacy-tui-reference.cpp legacy/client.cpp legacy/client-catalog.cpp $(pkg-config --cflags --libs jsoncpp) $LDFLAGS -o legacy-tui readelf -h legacy-tui | grep -F AArch64 ./legacy-tui > legacy-menus.json jq -e 'length == 25 and ([.[].items[] | select(.action)] | length == 134)' legacy-menus.json export UKE_TUI_LEGACY_REFERENCE="$PWD/legacy-menus.json" UKE_RESIZE_TEST_F2FS=1 cargo test --offline --target-dir target -- --nocapture | tee checks.txt grep -F "test wide_key_mouse_resize_and_handoff_preserve_termios ... ok" checks.txt grep -F "test termination_restores_idle_terminal ... ok" checks.txt grep -F "test rust_application_reads_a_fixture_and_refuses_saving_in_simulation ... ok" checks.txt grep -F 'PASS: Rust resize grew a disposable F2FS image and retained its identity' checks.txt grep -F 'PASS: all 25 bilingual menus and 134 action placements match the C++ frontend' checks.txt > result.txt # Run the original independent case bodies against the new executable. %{__cxx} $CXXFLAGS -std=c++20 -UNDEBUG -Wall -Wextra -Werror -Ilegacy legacy-regression/pty.cpp legacy/client.cpp legacy/client-catalog.cpp $(pkg-config --cflags --libs jsoncpp vterm) -lutil $LDFLAGS -o legacy-regression/pty-tests mkdir -p legacy-regression/build ln -s "$PWD/target/debug/ukectl-cli" legacy-regression/build/uke-control-tui ( cd legacy-regression ulimit -c 0 failures=0 for case in menu_coverage navigation observations forms background_reads touch_editor touch_search confirmations_and_paths wireless_shortcuts drag_and_resize readonly_and_signals; do if timeout 35s ./pty-tests "$case" > "$case.log" 2>&1; then printf 'PASS existing PTY case %%s\n' "$case" else printf 'FAIL existing PTY case %%s\n' "$case" tail -n 40 "$case.log" failures=$((failures + 1)) fi done test "$failures" = 0 ) %install install -Dm644 result.txt %{buildroot}%{_datadir}/%{name}/result.txt %check grep -Fx 'PASS: all 25 bilingual menus and 134 action placements match the C++ frontend' %{buildroot}%{_datadir}/%{name}/result.txt %files %{_datadir}/%{name}/result.txt %changelog * Sun Nov 29 2026 Uke Linux - 2.22.0-3 - Carry the explicit F2FS confirmation into the shutdown environment. - Check DNF channel identification and private operation receipts in Rust. * Sun Nov 29 2026 Uke Linux - 2.22.0-2 - Validate the Rust F2FS program using a disposable filesystem and existing terminal regressions. * Sun Nov 29 2026 Uke Linux - 2.22.0-1 - Exercise the terminal inside the Uke Control binary and its historical command alias. * Sun Nov 29 2026 Uke Linux - 2.21.0-1 - Verify the Rust graphical terminal request companion and preserve the existing terminal cases. * Sun Nov 29 2026 Uke Linux - 2.20.0-7 - Compare the Rust terminal menu and action placements with the C++ frontend. - Exercise read cancellation, receipt handling and review admission. - Check foreground and background metadata for all reviewed actions. - Verify the ncurses ABI and exercise keyboard, touch and terminal mode in a PTY. - Start the Rust application in a PTY and exercise a synthetic read and receipt refusal. - Compare the interactive Rust application with all eleven legacy PTY cases. - Display the localized choice label in action reviews.