3 AT_SETUP([Basic zip - unzip test])
4 AT_KEYWORDS([compression])
13 # Generate files of differing sizes with random data in them
16 while test $s -le 8192 ; do
18 dd if=/dev/urandom of=$name count=1 bs=$s 2> /dev/null
24 (cd $dir1 && $abs_top_builddir/tests/libpspp/zip-test w foo.zip $names)
28 cp $dir1/foo.zip $dir2
30 $abs_top_builddir/tests/libpspp/zip-test r foo.zip $names
32 # Compare the files to their originals
34 diff $dir1/$f $dir2/$f;
35 if test $? -ne 0 ; then exit 1; fi;