Bug#1021174: unrar-free: non-source file in Debian tests

2022-10-17 Thread Ying-Chun Liu (PaulLiu)

Hi all,

I plan to use this smoke test to replace the original smoke test since 
the original one contains non-free blobs.


The test as attachment.


Yours,
Paul

#!/bin/sh
#
# Simple smoketest of unrar extraction

setUp() {
dd if=/dev/urandom of=clam.exe bs=1 count=544
./misc/tarar.pike archive.rar clam.exe
rm -f clam.exe
}

tearDown() {
rm -f archive.tar clam.exe
}

testList() {
unrar-free --list archive.rar
assertEquals "Status code" $? 0
}

testExtract() {
unrar-free --extract archive.rar
assertEquals "Status code" $? 0
assertTrue "File exists" "[ -e clam.exe ]"
}

. /usr/bin/shunit2


OpenPGP_0x44173FA13D05.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Bug#1021174: unrar-free: non-source file in Debian tests

2022-10-03 Thread Bastian Germann

Source: unrar-free
Version: 1:0.0.2-0.1
Severity: important

unrar-free contains debian/tests/0001-smoketest which has a base64-encoded rar
file with a clam.exe in it that is not built from source.
Please replace that smoke test with a rar file that is more appropriate or drop 
it.