Name: uke-control-rust-tui-check Version: 2.22.0 Release: 20%{?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 Source3: uke-rgb.h Source4: oss-brightness-curve.hpp Source5: reference-brightness.cpp BuildRequires: crate(serde_json/float_roundtrip) BuildRequires: crate(wayland-client/default) crate(wayland-protocols/client) crate(wayland-protocols/staging) BuildRequires: crate(ashpd/default) crate(ashpd/screencast) crate(gstreamer/default) crate(serde/derive) BuildRequires: crate(tokio/macros) crate(tokio/net) crate(tokio/rt) crate(tokio/time) BuildRequires: pkgconfig(gstreamer-1.0) 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(fdisk) pkgconfig(openssl) pkgconfig(rpm) pkgconfig(blkid) /usr/bin/sfdisk 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 mkdir -p reviewed-uapi install -m644 %{SOURCE3} reviewed-uapi/uke-rgb.h %{__cc} $CFLAGS -std=c11 -UNDEBUG -Wall -Wextra -Werror -I reviewed-uapi tests/led-broker-abi.c $LDFLAGS -lsystemd -o led-broker-abi ./led-broker-abi %{__cc} -std=c11 -Wall -Wextra -Werror -fsyntax-only tests/terminal-abi.c %{__cc} -std=c11 -Wall -Wextra -Werror -fsyntax-only $(pkg-config --cflags libdrm) tests/drm-observation-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" %{__cxx} $CXXFLAGS -std=c++20 -Wall -Wextra -Werror -I%{_sourcedir} %{SOURCE5} $LDFLAGS -o legacy-brightness ./legacy-brightness > legacy-brightness.json truncate -s 32M gpt-slot-test.img printf "label: gpt\nsize=8MiB,name=boot_a\nsize=8MiB,name=boot_b\n" | sfdisk --no-reread --no-tell-kernel gpt-slot-test.img sfdisk --part-attrs gpt-slot-test.img 1 54 sfdisk --part-attrs gpt-slot-test.img 2 50,55 sha256sum gpt-slot-test.img > gpt.before truncate -s 128G gpt-pool-test.img printf "label: gpt\nsize=8MiB,name=boot_a\nname=userdata\n" | sfdisk --no-reread --no-tell-kernel gpt-pool-test.img sfdisk --part-attrs gpt-pool-test.img 1 54 %{__cxx} $CXXFLAGS -std=c++20 -Wall -Wextra -Werror tests/legacy-layout-record.cpp $(pkg-config --cflags --libs jsoncpp) $LDFLAGS -o legacy-layout-record truncate -s 96M gpt-archive-test.img printf "label: gpt\nsize=8MiB,name=boot_a\nname=userdata\n" | sfdisk --sector-size 4096 --no-reread --no-tell-kernel gpt-archive-test.img truncate -s 128G gpt-commit-test.img printf "label: gpt\nsize=8MiB,name=boot_a\nname=userdata\n" | sfdisk --sector-size 4096 --no-reread --no-tell-kernel gpt-commit-test.img export UKE_LAYOUT_COMMIT_FIXTURE="$PWD/gpt-commit-test.img" export UKE_LAYOUT_ARCHIVE_FIXTURE="$PWD/gpt-archive-test.img" export UKE_LAYOUT_LEGACY_WRITER="$PWD/legacy-layout-record" export UKE_LAYOUT_POOL_FIXTURE="$PWD/gpt-pool-test.img" export UKE_UPDATE_GPT_FIXTURE="$PWD/gpt-slot-test.img" export UKE_BRIGHTNESS_LEGACY_CURVE="$PWD/legacy-brightness.json" UKE_RESIZE_TEST_F2FS=1 cargo test --offline --target-dir target -- --nocapture | tee checks.txt grep -F "test led_broker::tests::validates_rgb_kernel_status_before_reporting ... ok" checks.txt grep -F "test torch::tests::torch_requires_the_exact_provider_current_channels_and_exclusive_trigger ... ok" checks.txt grep -F 'PASS: Rust brightness curve preserves the reviewed C++ normal-range points' checks.txt sha256sum --check --strict gpt.before grep -F 'PASS: Rust update status read exact flags from the disposable GPT' checks.txt grep -F 'test packages::repository_selection::tests::repository_only_selection_preserves_local_exclusions_and_normal_copr_policy ... ok' checks.txt grep -F 'test packages::journal::tests::finished_rpm_restarts_only_the_boot_and_selection_checkpoints ... ok' checks.txt grep -F 'test packages::solver_policy::tests::refuses_unmatched_kernel_parts_and_preserves_a_newer_installed_release ... ok' checks.txt grep -F 'test packages::stored_transaction::tests::dnf_transaction_requires_exact_archive_paths_and_outbound_provenance ... ok' checks.txt grep -F 'PASS: Rust layout refuses a damaged disposable GPT copy' checks.txt grep -F 'test touch_test::tests::contact_tracks_only_the_original_slot_and_refuses_dropped_events ... ok' checks.txt grep -F 'PASS: Rust layout verified the disposable ext4 filesystem extent' checks.txt grep -F 'PASS: Rust layout preserved OEM metadata and required child ownership on a sparse GPT' checks.txt grep -F 'PASS: Rust verified a disposable 4 KiB GPT archive and rejected foreign, changed and exposed ownership evidence' checks.txt grep -F 'test layout::allocation::tests::allocates_only_from_userdata_and_enforces_fixed_filesystems_and_order ... ok' checks.txt grep -F 'PASS: Rust layout policy preserved userdata confirmation, shutdown and refusal routes' checks.txt grep -F 'PASS: Rust GPT commit protected OEM bytes and payload on a disposable 4 KiB image' checks.txt grep -F 'test layout::shutdown::tests::ram_request_paths_are_relative_and_cannot_escape_the_mounted_journal ... ok' checks.txt grep -F 'test cadence::tests::retains_the_bounds_and_idle_cadence ... ok' checks.txt target/debug/ukectl-cli test cadence --self-test grep -F 'test ssc::wire::tests::matches_the_pinned_qmi_lookup_and_rejects_malformed_frames ... ok' checks.txt grep -F 'test ssc::wire::tests::keeps_metadata_and_samples_bound_to_the_requested_sensor ... ok' checks.txt target/debug/ukectl-cli --version | grep -Fx 'uke-control 3.0.0' grep -F 'test refresh::tests::preserves_content_multiples_and_restores_the_observed_baseline ... ok' checks.txt grep -F 'test iris_record::tests::accepts_only_numbered_kernel_video_devices ... ok' checks.txt target/debug/ukectl-cli video iris-record --help | grep -F 'video iris-record NEW_FILE.mkv' target/debug/ukectl-cli display content-refresh --help | grep -F 'display content-refresh play FILE...' mkdir installed-aliases ln -s ../target/debug/ukectl-cli installed-aliases/tests ln -s ../target/debug/ukectl-cli installed-aliases/ssc-discovery installed-aliases/tests --self-test if installed-aliases/ssc-discovery factory_test > ssc-refusal.log 2>&1; then echo 'SSC alias unexpectedly accepted the forbidden operation' exit 1 fi grep -Fx 'Unsupported discovery data type' ssc-refusal.log if target/debug/layout-manager --offline > layout-offline-refusal.log 2>&1; then echo 'Layout shutdown helper unexpectedly accepted the build root' exit 1 fi grep -E 'Layout work requires the shutdown RAM root|This setting requires root' layout-offline-refusal.log grep -F 'test layout::worker::tests::binds_the_exact_approval_count_and_same_boot_lease ... ok' checks.txt grep -F 'test layout::executor::tests::uses_nondiscard_formats_and_refuses_f2fs_preservation_shrink ... ok' checks.txt grep -F 'test layout::records::tests::writes_rollback_compatible_json_with_large_integers_and_utf16_escapes ... ok' checks.txt if target/debug/ukectl-cli singleboot --dry-run wizard-unattended.log 2>&1; then echo 'Unattended boot-layout preview unexpectedly succeeded' exit 1 fi grep -F 'An interactive terminal is required' wizard-unattended.log grep -F 'test test_commands::tests::measures_wrapping_drm_sequences_and_refuses_stale_samples ... ok' 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 * Mon Nov 30 2026 Uke Linux - 2.22.0-20 - Check Rust content refresh and Portal/PipeWire Iris recording. * Mon Nov 30 2026 Uke Linux - 2.22.0-18 - Check the 3.0.0 native runtime and the bounded SSC command aliases. * Sun Nov 29 2026 Uke Linux - 2.22.0-17 - Check the Rust RAM handoff and Wayland cadence tool. * Sun Nov 29 2026 Uke Linux - 2.22.0-16 - Check layout execution, confirmation and commit with disposable 4 KiB GPT metadata. * Sun Nov 29 2026 Uke Linux - 2.22.0-15 - Check the integrated layout preview and rollback-compatible GPT archive writer. * Sun Nov 29 2026 Uke Linux - 2.22.0-14 - Check the layout confirmation policy and native DRM and sensor diagnostics. * Sun Nov 29 2026 Uke Linux - 2.22.0-13 - Verify 4 KiB GPT archives and ownership receipts using the original JsonCpp serialization. * Sun Nov 29 2026 Uke Linux - 2.22.0-12 - Exercise verified userdata allocation and preserved OEM GPT metadata without a device write. * Sun Nov 29 2026 Uke Linux - 2.22.0-11 - Check native libblkid extent observation and partition bounds. * Sun Nov 29 2026 Uke Linux - 2.22.0-10 - Check both GPT copies and Rust touch contact identity. * Sun Nov 29 2026 Uke Linux - 2.22.0-9 - Exercise Rust DNF transaction and retained-kernel admission policy. * Sun Nov 29 2026 Uke Linux - 2.22.0-8 - Check resume after an exact durable RPM completion phase. * Sun Nov 29 2026 Uke Linux - 2.22.0-7 - Exercise normal main COPR channel selection without transaction replay. * Sun Nov 29 2026 Uke Linux - 2.22.0-6 - Exercise Rust boot identities and readonly libfdisk on a disposable GPT. * Sun Nov 29 2026 Uke Linux - 2.22.0-5 - Compare the Rust brightness curve to the reviewed C++ normal range. * Sun Nov 29 2026 Uke Linux - 2.22.0-4 - Check Rust LED broker ABI and guarded torch current and provider selection. * 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.