test(flatpak): add end-to-end CLI integration test
Drives the real FlatpakManager against the live flatpak CLI: install a small app through the provider's own fallback logic, verify it is listed and flagged as installed in search, run update and refresh, then uninstall. The test is non-destructive for pre-existing installs and skips when flatpak is absent. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2 files changed
+100
No files matched your search
@@ -52,6 +52,12 @@ add_executable(flatpak-manager-test tests/flatpak-manager.test.cpp src/flatpak-m
|
||||
target_include_directories(flatpak-manager-test PRIVATE include)
|
||||
add_test(NAME flatpak-manager-test COMMAND flatpak-manager-test)
|
||||
|
||||
# Real end-to-end test of the Flatpak provider against the live flatpak CLI
|
||||
# (installs and uninstalls a small app). Skipped when flatpak is missing.
|
||||
add_executable(flatpak-integration-test tests/flatpak-integration.test.cpp src/flatpak-manager.cpp)
|
||||
target_include_directories(flatpak-integration-test PRIVATE include)
|
||||
add_test(NAME flatpak-integration-test COMMAND flatpak-integration-test)
|
||||
|
||||
add_executable(package-utils-test tests/package-utils.test.cpp)
|
||||
target_include_directories(package-utils-test PRIVATE include)
|
||||
add_test(NAME package-utils-test COMMAND package-utils-test)
|
||||
|
||||
Reference in new issue
Block a user