Files
sics/site_ansto/TESTS/check_zlib/README
Ferdi Franceschini 9c43b6a3b9 Ran test on 16M ints 1000 times.
r1491 | ffr | 2007-02-15 10:26:41 +1100 (Thu, 15 Feb 2007) | 2 lines
2012-11-15 12:59:11 +11:00

26 lines
817 B
Plaintext

PURPOSE:
This code is used to check the suitability of zlib for writing and reading compressed histogram data.
NOTE: zlib will transparently read uncompressed files.
2007-02-15
Test reading and writing sequences of 1 to 16M ints. (PASSED)
Test reading and writing a sequence of 16M ints 1000 times. (PASSED)
mkdata.c: Makes a zipped file containing a sequence of ints starting from 0.
rdata.c: Reads a zipped/unzipped file expecting a sequence of ints starting from 0, max=16M ints.
USAGE:
make
./mkdata
To make data.gz
./rdata data.gz
To reada data.gz
Then gunzip data.gz and run
./rdata data
To test reading uncompressed files.
To change the number of ints written, edit mkdata.c and change the DATALENGTH.
To change the maximum number of ints that rdata.c can read, changed the DATALENGTH in rdata.c