The test/example quickstop requires the deflate codec. However, the deflate codec is an optional codec, and not a requirement for Avro-C. So the tests should pass even when the deflate codec is unavailable.
Not sure of the best way to test features dependent on optional libraries, and (a) pass the tests when the optional libraries are not available, but (b) fail the tests when the libraries are available, but the code doesn't work properly.
When I make Avro-C using the following commands from the avro-trunk/lang/c directory:
mkdir -p build
cmake .. -DCMAKE_INSTALL_PREFIX=avrolib -DCMAKE_BUILD_TYPE=Debug
I get the following messages (as expected, since I don't have the libs):
– Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
Disabled deflate codec. zlib not found.
– checking for module 'liblzma'
– package 'liblzma' not found
Disabled lzma codec. liblzma not found.
But then, during the tests, I get the error:
1/10 Test #1: quickstop ........................***Failed 0.00 sec
And, when I run quickstop manually:
There was an error creating quickstop.db
error message: Unknown codec deflate