Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

正确性测试脚本 #2

Closed
Yorkking opened this issue Nov 10, 2022 · 0 comments
Closed

正确性测试脚本 #2

Yorkking opened this issue Nov 10, 2022 · 0 comments

Comments

@Yorkking
Copy link
Collaborator

测试

完成一个正确性测试的脚本:correct.sh。
输入 ./correct.sh evenodd
然后执行下面功能:

  • 在该目录进行 N 次文件编码、解码;错误恢复等测试:
    • 比如:
      1. 创建一个大小为 file_size 的文件 test_file,然后选择一个质数 p 对它执行 ./evenodd write test_file 编码
      1. 对 test_file 恢复读,即执行 ./evenodd read test_file test_file.read,然后比较 test_file 和 test_file.read 是否相同
      1. 故障读测试:随机删除 disk_{0,p+1} 下的 test_file(不超过2个),然后恢复读,读出 test_file.read 和 test_file 比较。
  • 注意:
    • 测试的时候,文件大小范围要全,比如 1KiB - GiB
    • 质数 p 的选择根据文件大小相应增大减少 @wangyaning45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant