/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil -*- */ // vim: expandtab:ts=8:sw=4:softtabstop=4: // Test quicklz. // Compare to compress-test which tests the toku compression (which is a composite of quicklz and zlib). #ident "Copyright (c) 2010 Tokutek Inc. All rights reserved." #ident "$Id$" #include "test.h" #include "quicklz.h" static void test_qlz_random_i (int i) { if (verbose) printf("i=%d\n", i); qlz_state_compress *MALLOC(compress_state); qlz_state_decompress *MALLOC(decompress_state); char *MALLOC_N(i, m); char *MALLOC_N(i, m2); for (int j=0; j