Files
MeowOS-For-R3P2/patch_v2/ncm_app/build_ncm_cache_host.sh
T
AskaEth e60642217a test(ncm): M6 缓存命名宿主单测(63 PASS)+ core 全量用例 + REPORT §39
- 新增 test/test_ncm_cache.c + build_ncm_cache_host.sh(纯 libc:真实 ncm_cache.c +
  ncm_tag.c,仅桩 strlcpy/mkdir_p/档位映射,不依赖 vendor/mbedtls)
- 覆盖:实际档映射、降级后写入名、hires 命中已存 exhigh/lossless、低档不命中高档、
  旧命名命中/扫描/删除/双点名迁移、列表去重、LRU/清空/删除兼容、level_from_path 边界
- test_ncm_core.c 新增 test_cache_actual_naming(接入 core 全量测试集,同语义断言)
- REPORT §39:命名/命中/兼容方案、质量取舍与未执行项(vendor/交叉/真机)
2026-11-04 21:11:00 +08:00

13 lines
644 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# build_ncm_cache_host.sh — 宿主单测:core/ncm_cache.c(M6 实际档命名 / 命中下探 / 旧名兼容 / LRU)。
# ncm_cache.c 依赖 ncm_tag.c(纯 libc)+ ncm_common/store/api 的少量符号,后者由测试文件内联桩提供,
# 故不依赖 mbedtls/jsmn/vendor(vendor 缺失时也能跑,$TMPDIR 纪律见 test 文件头)。
cd "$(dirname "$0")"
CC_HOST=${CC_HOST:-gcc}
OUT="test/test_ncm_cache_host"
$CC_HOST -O2 -Wall -Wextra -Icore \
core/ncm_cache.c core/ncm_tag.c test/test_ncm_cache.c -o "$OUT" \
|| { echo "build test_ncm_cache FAILED"; exit 1; }
echo "build OK: $OUT"
echo "run: ./$OUT"