20260147 迭代优化全量测试和覆盖率测试,时间从325秒降低到90+秒,覆盖率维持在90%
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
use std::process::Command;
|
||||
|
||||
fn skip_heavy_blackbox_test() -> bool {
|
||||
std::env::var_os("RPKI_SKIP_HEAVY_BLACKBOX_TESTS").is_some()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cli_run_offline_mode_executes_and_writes_json_and_ccr() {
|
||||
let db_dir = tempfile::tempdir().expect("db tempdir");
|
||||
@@ -134,6 +138,9 @@ fn cli_run_offline_mode_writes_cir_and_static_pool() {
|
||||
|
||||
#[test]
|
||||
fn cli_run_blackbox_rsync_wrapper_mode_matches_reference_ccr_without_ta_path() {
|
||||
if skip_heavy_blackbox_test() {
|
||||
return;
|
||||
}
|
||||
let real_rsync = std::path::Path::new("/usr/bin/rsync");
|
||||
if !real_rsync.exists() {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user