NAC_Blockchain/test_system.sh

43 lines
1.3 KiB
Bash
Executable File

#!/bin/bash
# NAC公链系统集成测试脚本
echo "========================================="
echo "NAC公链系统集成测试"
echo "========================================="
echo ""
# 测试VISION CLI
echo "[1/3] 测试VISION CLI..."
cd /home/ubuntu/NAC_Clean_Dev/nac-vision-cli
if [ -f "target/release/vision" ]; then
echo "✅ VISION CLI二进制文件存在"
./target/release/vision --help > /dev/null 2>&1 && echo "✅ VISION CLI运行正常" || echo "❌ VISION CLI运行失败"
else
echo "❌ VISION CLI二进制文件不存在"
fi
echo ""
# 统计模块数量
echo "[2/3] 统计系统模块..."
cd /home/ubuntu/NAC_Clean_Dev
module_count=$(find . -maxdepth 1 -type d -name "nac-*" -o -name "charter-*" -o -name "cnnl-*" -o -name "cargo-*" -o -name "xtzh-*" -o -name "nvm_v2" | wc -l)
echo "✅ 系统模块总数: $module_count"
echo ""
# 检查文档
echo "[3/3] 检查文档..."
if [ -f "docs/NAC公链多维度评估报告.md" ]; then
echo "✅ NAC公链多维度评估报告存在"
fi
if [ -f "docs/NAC Lens_核心要点.md" ]; then
echo "✅ NAC Lens核心要点文档存在"
fi
if [ -f "docs/VISION_Wallet_核心要点.md" ]; then
echo "✅ VISION钱包核心要点文档存在"
fi
echo ""
echo "========================================="
echo "测试完成!"
echo "========================================="