[patch] zip tests

Cristian Ionescu-Idbohrn cristian.ionescu-idbohrn at axis.com
Sun May 4 09:28:52 UTC 2008


Moves common parts of the tests to compressfuncts.sh (new).
Adds a new test: zcat.tests.


Cheers,

-- 
Cristian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ziptests.patch
Type: text/x-diff
Size: 4235 bytes
Desc: 
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080504/c8fb0578/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compressfuncs.sh
Type: application/x-sh
Size: 995 bytes
Desc: 
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080504/c8fb0578/attachment-0002.sh 
-------------- next part --------------
#!/bin/sh -e

app=zcat
bb_app="busybox $app"
ext=gz
wdir=testdir

. compressfuncs.sh

rm -rf $wdir
mkdir -p $wdir
(
cd $wdir || { echo "cannot cd $wdir!"; exit 1; }

expected="HELLO\nok\n"
prep
check "$app: dont delete src" "$bb_app t2.gz; test -f t2.gz && echo ok"
)
rm -rf $wdir


More information about the busybox mailing list