@@ -240,23 +240,37 @@ bool RunGzipTest(sycl::queue& q, GzipDecompressorT decompressor,
240
240
bool RunSnappyTest (sycl::queue& q, SnappyDecompressorT decompressor,
241
241
const std::string test_dir) {
242
242
243
+
244
+ #ifdef FPGA_SIMULATOR
243
245
std::cout << " >>>>> Alice In Wonderland Test <<<<<" << std::endl;
244
- std::string alice_in_file = test_dir + " /alice29 .txt.sz" ;
246
+ std::string alice_in_file = test_dir + " /alice29_small .txt.sz" ;
245
247
auto in_bytes = ReadInputFile (alice_in_file);
246
248
auto result = decompressor.DecompressBytes (q, in_bytes, 1 , false );
247
249
248
- std::string alice_ref_file = test_dir + " /alice29.ref .txt" ;
250
+ std::string alice_ref_file = test_dir + " /alice29_small_ref .txt" ;
249
251
auto ref_bytes = ReadInputFile (alice_ref_file);
250
252
bool alice_test_pass =
251
253
(result != std::nullopt) && (result.value () == ref_bytes);
252
254
253
255
PrintTestResults (" Alice In Wonderland Test" , alice_test_pass);
254
256
std::cout << std::endl;
255
257
256
- #ifdef FPGA_SIMULATOR
257
258
return alice_test_pass;
258
259
#else
259
260
261
+ std::cout << " >>>>> Alice In Wonderland Test <<<<<" << std::endl;
262
+ std::string alice_in_file = test_dir + " /alice29.txt.sz" ;
263
+ auto in_bytes = ReadInputFile (alice_in_file);
264
+ auto result = decompressor.DecompressBytes (q, in_bytes, 1 , false );
265
+
266
+ std::string alice_ref_file = test_dir + " /alice29.ref.txt" ;
267
+ auto ref_bytes = ReadInputFile (alice_ref_file);
268
+ bool alice_test_pass =
269
+ (result != std::nullopt) && (result.value () == ref_bytes);
270
+
271
+ PrintTestResults (" Alice In Wonderland Test" , alice_test_pass);
272
+ std::cout << std::endl;
273
+
260
274
std::cout << " >>>>> Only Literal Strings Test <<<<<" << std::endl;
261
275
auto test1_bytes = GenerateSnappyCompressedData (333 , 3 , 0 , 0 , 3 );
262
276
auto test1_ret = decompressor.DecompressBytes (q, test1_bytes, 1 , false );
0 commit comments