compliance/test-wsl-debug.sh
2025-08-27 16:55:39 +08:00

48 lines
1.0 KiB
Bash
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
# 测试修复后的WSL脚本带调试信息
echo "=== 测试修复后的WSL脚本带调试信息 ==="
# 清理之前的测试文件
echo "[清理] 删除之前的测试文件..."
rm -rf dms-compliance-*
rm -f *.tar.gz
echo ""
# 自动输入选择双服务架构
{
echo "1" # 选择双服务架构
echo "0" # 自动检测平台
echo "y" # 确认构建
} | bash create-compose-package-wsl.sh
echo ""
echo "=== 测试结果检查 ==="
# 检查生成的目录
echo "[检查] 查找生成的目录..."
for dir in dms-compliance-*; do
if [[ -d "$dir" ]]; then
echo "找到目录: $dir"
echo "目录内容:"
ls -la "$dir"
echo ""
fi
done
# 检查生成的压缩包
echo "[检查] 查找生成的压缩包..."
for file in *.tar.gz; do
if [[ -f "$file" ]]; then
echo "找到压缩包: $file"
echo "文件大小: $(du -h "$file" | cut -f1)"
echo "压缩包内容预览:"
tar -tzf "$file" | head -10
echo ""
fi
done
echo "测试完成!"