| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #!/bin/bash
- # HOW解构V9测试脚本
- # 测试集:从三个账号各选2个帖子,共6个测试用例
- echo "========================================================================================================"
- echo "HOW解构V9测试 - 共 6 个测试用例"
- echo "========================================================================================================"
- # 测试用例数组
- test_cases=(
- # 阿里多多酱(宠物类账号)
- # "阿里多多酱|examples_new/阿里多多酱/output/685b593800000000120141d3_20251104_111017.json"
- # "阿里多多酱|examples_new/阿里多多酱/output/6865e3ac00000000100251b6_20251104_111021.json"
- # 白流苏(美甲类账号)
- "白流苏|examples_new/白流苏/output/682c53fd000000000303c64f_20251104_112822.json"
- "白流苏|examples_new/白流苏/output/6839827d0000000003039f7e_20251104_112821.json"
- # 摸鱼阿希
- "摸鱼阿希|examples_new/摸鱼阿希/output/61bdc28b0000000001024896_20251104_132959.json"
- "摸鱼阿希|examples_new/摸鱼阿希/output/66619827000000000600486f_20251104_133004.json"
- )
- total=${#test_cases[@]}
- current=1
- success_count=0
- failed_count=0
- for test_case in "${test_cases[@]}"; do
- # 分割账号和文件路径
- IFS='|' read -r account file_path <<< "$test_case"
- echo ""
- echo "========================================================================================================"
- echo "测试用例 $current/$total"
- echo "账号: $account"
- echo "文件: $file_path"
- echo "========================================================================================================"
- # 运行测试
- if python how_decode_v9_point_dependency.py "$file_path"; then
- echo ""
- echo "✅ 测试用例 $current 完成"
- ((success_count++))
- else
- echo ""
- echo "❌ 测试用例 $current 失败"
- ((failed_count++))
- fi
- # 除了最后一个,都等待2秒
- if [ $current -lt $total ]; then
- echo ""
- echo "⏸ 等待2秒后继续下一个测试用例..."
- sleep 2
- fi
- ((current++))
- done
- echo ""
- echo "========================================================================================================"
- echo "测试完成!"
- echo "总计: $total 个用例"
- echo "成功: $success_count 个"
- echo "失败: $failed_count 个"
- echo "========================================================================================================"
|