@@ -13,6 +13,8 @@ def setUp(self):
13
13
os .makedirs ('testdata/rsync_tmp_store' , exist_ok = True )
14
14
os .makedirs ('testdata/sync/fuzz000/crashes' , exist_ok = True )
15
15
os .makedirs ('testdata/sync/fuzz000/hangs' , exist_ok = True )
16
+ os .makedirs ('testdata/sync/fuzz000/.cur_input' , exist_ok = True )
17
+ os .makedirs ('testdata/sync/fuzz001/.cur_input' , exist_ok = True )
16
18
os .makedirs ('testdata/sync/fuzz002.sync' , exist_ok = True )
17
19
os .makedirs ('testdata/sync/invalid_fuzz000' , exist_ok = True )
18
20
os .makedirs ('testdata/sync/invalid_fuzz001' , exist_ok = True )
@@ -22,7 +24,10 @@ def setUp(self):
22
24
os .makedirs ('testdata/rsync_output_pull/fuzz000.sync' , exist_ok = True )
23
25
os .makedirs ('testdata/rsync_output_pull/fuzz001.sync' , exist_ok = True )
24
26
os .makedirs ('testdata/rsync_output_pull/other_fuzz000.sync' , exist_ok = True )
27
+ os .makedirs ('testdata/rsync_output_pull/other_fuzz000.sync/.cur_input' , exist_ok = True )
28
+ os .makedirs ('testdata/rsync_output_pull/other_fuzz000.sync/crashes' , exist_ok = True )
25
29
os .makedirs ('testdata/rsync_output_pull/other_fuzz001.sync' , exist_ok = True )
30
+ os .makedirs ('testdata/rsync_output_pull/other_fuzz001.sync/.cur_input' , exist_ok = True )
26
31
os .makedirs ('testdata/rsync_output_pull/other_invalid_fuzz000.sync' , exist_ok = True )
27
32
# sync
28
33
os .makedirs ('testdata/rsync_output_sync/other_fuzz000.sync' , exist_ok = True )
@@ -34,6 +39,8 @@ def tearDown(self):
34
39
self .clean_remove_dir ('testdata/rsync_tmp_store' )
35
40
self .clean_remove_dir ('testdata/sync/fuzz000/crashes' )
36
41
self .clean_remove_dir ('testdata/sync/fuzz000/hangs' )
42
+ self .clean_remove_dir ('testdata/sync/fuzz000/.cur_input' )
43
+ self .clean_remove_dir ('testdata/sync/fuzz001/.cur_input' )
37
44
self .clean_remove_dir ('testdata/sync/fuzz002.sync' )
38
45
self .clean_remove_dir ('testdata/sync/invalid_fuzz000' )
39
46
self .clean_remove_dir ('testdata/sync/invalid_fuzz001' )
@@ -134,6 +141,7 @@ def test_afl_rsync_put(self):
134
141
afl_rsync = AflRsync (None , None )
135
142
self .assertTrue (afl_rsync .rsync_put (local_path , remote_path , rsync_excludes = excludes ))
136
143
self .assertTrue (os .path .exists (remote_path + '.sync/fuzzer_stats' ))
144
+ self .assertTrue (os .path .exists (remote_path + '.sync/.cur_input' ))
137
145
self .assertFalse (os .path .exists (remote_path + '.sync/crashes' ))
138
146
self .assertFalse (os .path .exists (remote_path + '.sync/hangs' ))
139
147
@@ -163,7 +171,9 @@ def test_afl_rsync_push(self):
163
171
afl_rsync = AflRsync (server_config , fuzzer_config )
164
172
self .assertIsNone (afl_rsync .push ())
165
173
self .assertTrue (os .path .exists ('testdata/rsync_output_push/fuzz000.sync' ))
174
+ self .assertFalse (os .path .exists ('testdata/rsync_output_push/fuzz000.sync/.cur_input' ))
166
175
self .assertTrue (os .path .exists ('testdata/rsync_output_push/fuzz001.sync' ))
176
+ self .assertFalse (os .path .exists ('testdata/rsync_output_push/fuzz000.sync/.cur_input' ))
167
177
self .assertFalse (os .path .exists ('testdata/rsync_output_push/fuzz002.sync' ))
168
178
self .assertFalse (os .path .exists ('testdata/rsync_output_push/fuzz002.sync.sync' ))
169
179
self .assertFalse (os .path .exists ('testdata/rsync_output_push/invalid_fuzz000.sync' ))
@@ -184,7 +194,10 @@ def test_afl_rsync_pull_session(self):
184
194
afl_rsync = AflRsync (server_config , fuzzer_config )
185
195
self .assertIsNone (afl_rsync .pull ())
186
196
self .assertTrue (os .path .exists ('testdata/sync/other_fuzz000.sync' ))
197
+ self .assertTrue (os .path .exists ('testdata/sync/other_fuzz000.sync/crashes' ))
198
+ self .assertFalse (os .path .exists ('testdata/sync/other_fuzz000.sync/.cur_input' ))
187
199
self .assertTrue (os .path .exists ('testdata/sync/other_fuzz001.sync' ))
200
+ self .assertFalse (os .path .exists ('testdata/sync/other_fuzz001.sync/.cur_input' ))
188
201
self .assertFalse (os .path .exists ('testdata/sync/other_invalid_fuzz000.sync' ))
189
202
self .assertFalse (os .path .exists ('testdata/sync/fuzz000.sync' ))
190
203
self .assertFalse (os .path .exists ('testdata/sync/fuzz001.sync' ))
@@ -205,6 +218,8 @@ def test_afl_rsync_pull_all(self):
205
218
self .assertIsNone (afl_rsync .pull ())
206
219
self .assertTrue (os .path .exists ('testdata/sync/other_fuzz000.sync' ))
207
220
self .assertTrue (os .path .exists ('testdata/sync/other_fuzz001.sync' ))
221
+ self .assertFalse (os .path .exists ('testdata/sync/other_fuzz000.sync/.cur_input' ))
222
+ self .assertFalse (os .path .exists ('testdata/sync/other_fuzz001.sync/.cur_input' ))
208
223
self .assertTrue (os .path .exists ('testdata/sync/other_invalid_fuzz000.sync' ))
209
224
self .assertFalse (os .path .exists ('testdata/sync/fuzz000.sync' ))
210
225
self .assertFalse (os .path .exists ('testdata/sync/fuzz001.sync' ))
0 commit comments