aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/tests/package
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-06-25 17:02:11 +0900
committernsfisis <nsfisis@gmail.com>2026-06-26 00:20:05 +0900
commit3498bb1ca00ab7d051d296b8d482bea987a00fa4 (patch)
treee10260e5816317f4547847e2a230ea1a87fb2448 /crates/shirabe/tests/package
parent291b43d132749a61918dca23acef1b639c5333a7 (diff)
downloadphp-shirabe-3498bb1ca00ab7d051d296b8d482bea987a00fa4.tar.gz
php-shirabe-3498bb1ca00ab7d051d296b8d482bea987a00fa4.tar.zst
php-shirabe-3498bb1ca00ab7d051d296b8d482bea987a00fa4.zip
test: port 24 command/repository/package/util tests; add TlsHelper
Port command (9), util gitlab/forgejo/tls (6), package (6), repository (3) tests. Implement TlsHelper. Fix porting bugs: config_command extra merge, RootAliasPackage setters, ValidatingArrayLoader isset, repository_factory name generation, forgejo exception code, version_parser error chaining. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/tests/package')
-rw-r--r--crates/shirabe/tests/package/loader/root_package_loader_test.rs2
-rw-r--r--crates/shirabe/tests/package/loader/validating_array_loader_test.rs6
-rw-r--r--crates/shirabe/tests/package/root_alias_package_test.rs4
3 files changed, 3 insertions, 9 deletions
diff --git a/crates/shirabe/tests/package/loader/root_package_loader_test.rs b/crates/shirabe/tests/package/loader/root_package_loader_test.rs
index e78967e..23c8beb 100644
--- a/crates/shirabe/tests/package/loader/root_package_loader_test.rs
+++ b/crates/shirabe/tests/package/loader/root_package_loader_test.rs
@@ -36,7 +36,7 @@ fn http_downloader(
}
#[test]
-#[ignore]
+#[ignore = "process_executor.enable_async() drives the async stream path, which calls stream_set_blocking (fcntl(2) todo!() in shirabe-php-shim::stream)"]
fn test_stability_flags_parsing() {
let io = null_io();
let config = Rc::new(RefCell::new(Config::new(true, None)));
diff --git a/crates/shirabe/tests/package/loader/validating_array_loader_test.rs b/crates/shirabe/tests/package/loader/validating_array_loader_test.rs
index db5ff07..2e614ee 100644
--- a/crates/shirabe/tests/package/loader/validating_array_loader_test.rs
+++ b/crates/shirabe/tests/package/loader/validating_array_loader_test.rs
@@ -367,7 +367,6 @@ fn success_provider() -> Vec<IndexMap<String, PhpMixed>> {
}
/// ref: ValidatingArrayLoaderTest::testLoadSuccess
-#[ignore]
#[test]
fn test_load_success() {
for cfg in success_provider() {
@@ -795,7 +794,6 @@ fn error_provider() -> Vec<(IndexMap<String, PhpMixed>, Vec<String>)> {
}
/// ref: ValidatingArrayLoaderTest::testLoadFailureThrowsException
-#[ignore]
#[test]
fn test_load_failure_throws_exception() {
for (cfg, mut expected_errors) in error_provider() {
@@ -977,7 +975,7 @@ fn warning_provider() -> Vec<(
}
/// ref: ValidatingArrayLoaderTest::testLoadWarnings
-#[ignore]
+#[ignore = "license warning cases need the SPDX license-expression grammar (recursive PCRE), not yet ported: spdx_licenses todo!()"]
#[test]
fn test_load_warnings() {
for (cfg, mut expected_warnings, _must_check, _expected_array) in warning_provider() {
@@ -999,7 +997,7 @@ fn test_load_warnings() {
}
/// ref: ValidatingArrayLoaderTest::testLoadSkipsWarningDataWhenIgnoringErrors
-#[ignore]
+#[ignore = "must_check license cases need the SPDX license-expression grammar (recursive PCRE), not yet ported: spdx_licenses todo!()"]
#[test]
fn test_load_skips_warning_data_when_ignoring_errors() {
for (mut cfg, _expected_warnings, must_check, expected_array) in warning_provider() {
diff --git a/crates/shirabe/tests/package/root_alias_package_test.rs b/crates/shirabe/tests/package/root_alias_package_test.rs
index c275da3..41b1c40 100644
--- a/crates/shirabe/tests/package/root_alias_package_test.rs
+++ b/crates/shirabe/tests/package/root_alias_package_test.rs
@@ -37,7 +37,6 @@ fn test_update_requires() {
}
#[test]
-#[ignore]
fn test_update_dev_requires() {
let alias = alias();
assert!(alias.get_dev_requires().is_empty());
@@ -46,7 +45,6 @@ fn test_update_dev_requires() {
}
#[test]
-#[ignore]
fn test_update_conflicts() {
let alias = alias();
assert!(alias.get_conflicts().is_empty());
@@ -55,7 +53,6 @@ fn test_update_conflicts() {
}
#[test]
-#[ignore]
fn test_update_provides() {
let alias = alias();
assert!(alias.get_provides().is_empty());
@@ -64,7 +61,6 @@ fn test_update_provides() {
}
#[test]
-#[ignore]
fn test_update_replaces() {
let alias = alias();
assert!(alias.get_replaces().is_empty());