From 3b0787fdecc21edf9ad22b82f547363c1aa79b15 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 5 Aug 2026 03:58:11 +0900 Subject: test(plugin): compare plugin-provided command execution against upstream A Shirabe-authored CommandProvider fixture plugin (greet) runs under both implementations: exit codes, the command's own output, help/list rendering, alias resolution, a validation failure, and a file recording the shared object graph the command observed (root package, strict application FQCN, and the exit code of the built-in about command it invoked) must match. Co-Authored-By: Claude Fable 5 --- crates/shirabe/tests/plugin/e2e_extension_installer_test.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/tests/plugin/e2e_extension_installer_test.rs') diff --git a/crates/shirabe/tests/plugin/e2e_extension_installer_test.rs b/crates/shirabe/tests/plugin/e2e_extension_installer_test.rs index c78af3cd..9a95888c 100644 --- a/crates/shirabe/tests/plugin/e2e_extension_installer_test.rs +++ b/crates/shirabe/tests/plugin/e2e_extension_installer_test.rs @@ -20,7 +20,7 @@ fn fixture_dir() -> PathBuf { /// The upstream Composer checkout used as the comparison oracle (and as the PHP runtime of /// the worker). Absent checkout means the oracle cannot run; the test returns early, /// following the convention of the non-mock tests in `shirabe-php-rpc`. -fn upstream_composer_bin() -> Option { +pub(crate) fn upstream_composer_bin() -> Option { let root = match std::env::var("SHIRABE_COMPOSER_PHP_DIR") { Ok(dir) => PathBuf::from(dir), Err(_) => Path::new(env!("CARGO_MANIFEST_DIR")).join("../../composer"), @@ -33,7 +33,7 @@ fn upstream_composer_bin() -> Option { } } -fn copy_dir(from: &Path, to: &Path) { +pub(crate) fn copy_dir(from: &Path, to: &Path) { std::fs::create_dir_all(to).unwrap(); for entry in std::fs::read_dir(from).unwrap() { let entry = entry.unwrap(); -- cgit v1.3.1