-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStoneblock.toml
66 lines (62 loc) · 1.92 KB
/
Stoneblock.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
block_size = 4096
corpus = "../searchlight/test_data/corpus"
[scenarios.nonfragmented]
path = "../searchlight/test_data/stoneblock_nonfragmented.dat"
files = [
{ path = "3.png", fragments = 1 },
{ path = "7.zip", fragments = 1 },
{ path = "9.png", fragments = 1 },
{ path = "files.jpg", fragments = 1 },
{ path = "g6-1.jpg", fragments = 1 }
]
filler = "R"
layout = "Z, 1.1, 2.1, 2.1, 3.1, Z, Z, 1.1, 4.1, R, 5.1"
# Expect:
# 2 complete "3.png"
# 2 complete "7.zip"
# 1 complete "9.png"
# 1 complete "files.jpg"
# 1 complete "g6-1.jpg"
[scenarios.png_fragmented]
path = "../searchlight/test_data/stoneblock_fragmented.dat"
files = [
{ path = "3.png", fragments = 3 },
{ path = "9.png", fragments = 2 },
{ path = "mars.png", fragments = 4 }
]
filler = "Z"
layout = "1.1, R, 1.2, R, 2.1, 1.3, 2.2, 3.1, R, Z, 3.2, 3.1, 3.3, R, 3.4"
# Expect:
# 1 complete "3.png"
# 1 complete "9.png"
# 1 complete "mars.png"
# 1 corrupt "mars.png" (3/4 end missing)
[scenarios.jpeg_fragmented]
path = "../searchlight/test_data/stoneblock_fragmented.dat"
files = [
{ path = "files.jpg", fragments = 3 },
{ path = "g6-1.jpg", fragments = 5 },
{ path = "turtle.jpg", fragments = 2 }
]
filler = "Z"
layout = "1.1, Z, 1.2, Z, 1.3, R, 1.1, 1.3, 2.1, R, 2.2, Z, 1.2, Z, 2.3, 2.4, R, 2.5, 3.1, Z, 3.2"
# Expect:
# 1 complete "files.jpg"
# 1 corrupt "files.jpg" (missing middle)
# 1 corrupt "g6-1.jpg" (part of "files.jpg" in middle)
# 1 complete "turtle.jpg"
[scenarios.zip_fragmented]
path = "../searchlight/test_data/stoneblock_fragmented.dat"
files = [
{ path = "7.zip", fragments = 2 },
{ path = "rm.zip", fragments = 2 },
{ path = "multi.zip", fragments = 3 }
]
filler = "Z"
layout = "1.1, Z, 2.1, 1.2, 2.2, 3.1, R, 3.2, R, 3.3, 3.1, 3.3"
# Expect:
# 1 complete "7.zip"
# 1 complete "rm.zip"
# 1 complete "multi.zip"
# 1 corrupt "multi.zip" (missing middle)
# Note: We actually get 2 corrupt "multi.zip"s cause they interfere with each other through the header matches