Welcome to mirror list, hosted at ThFree Co, Russian Federation.

bbunzip_test2.sh « archival - git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5b7e83e132156bc166024662620ba95fb037ebe4 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Leak test for gunzip. Watch top for growing process size.

# Just using urandom will make gzip use method 0 (store) -
# not good for test coverage!

cat /dev/urandom \
| while true; do read junk; echo "junk $RANDOM $junk"; done \
| ../busybox gzip \
| ../busybox gunzip -c >/dev/null