mirror of
https://github.com/sabnzbd/sabnzbd.git
synced 2025-12-24 00:00:12 -05:00
* Deobfuscate ON by default * Correct data test set: filename that is not obfuscated. Except test_par2file * Correct data test set: filename that is not obfuscated. Except test_par2file * Commented out test in test_par2file.py * Commented out test in test_par2file.py * assert for unicode_rar 我喜欢编程 now working too --------- Co-authored-by: sander <san.d.erjonkers+github@gmail.com>
40 lines
849 B
Bash
Executable File
40 lines
849 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# Generate data sets for test_functional_downloads
|
|
|
|
FILENAME="My_Test_Download.bin" # a non-obfuscated filename: capitals and spaces
|
|
|
|
fallocate -l100k $FILENAME
|
|
rar a basic_rar5/testfile $FILENAME
|
|
|
|
rm test_zip/*
|
|
zip test_zip/testfile.zip $FILENAME
|
|
|
|
rm test_7zip/*
|
|
7z a test_7zip/testfile.7z $FILENAME
|
|
rar a -psecret test_passworded\{\{secret\}\}/passworded-file $FILENAME
|
|
rm $FILENAME
|
|
|
|
FILENAME100k="My_Test_Download.bin"
|
|
cd obfuscated_single_rar_set
|
|
rm *
|
|
fallocate -l100k $FILENAME100k
|
|
rar a postfile -v15k -m0 $FILENAME100k
|
|
for FILE in *rar ; do mv $FILE `uuidgen` ; done
|
|
rm $FILENAME100k
|
|
cd ..
|
|
|
|
|
|
UNICODE_FILENAME="我喜欢编程_My_Test_Download.bin"
|
|
cd unicode_rar
|
|
rm *
|
|
fallocate -l100k $UNICODE_FILENAME
|
|
rar a 我喜欢编程 -v20k -m0 $UNICODE_FILENAME
|
|
par2 create -r10 -n7 我喜欢编程 *rar
|
|
rm $UNICODE_FILENAME
|
|
cd ..
|
|
|
|
|
|
|
|
|