]> git.droids-corp.org - dpdk.git/blobdiff - test/test/meson.build
test/compress: add initial unit tests
[dpdk.git] / test / test / meson.build
index 3b0ddb0756afe96725b76a984aea377c8d33f208..3c8edf5211254318d19058fc02f5c1862606fb4e 100644 (file)
@@ -234,6 +234,14 @@ if dpdk_conf.has('RTE_LIBRTE_KNI')
 endif
 
 test_dep_objs = []
+compress_test_dep = dependency('zlib', required: false)
+if compress_test_dep.found()
+       test_dep_objs += compress_test_dep
+       test_sources += 'test_compressdev.c'
+       test_deps += 'compressdev'
+       test_names += 'compressdev_autotest'
+endif
+
 foreach d:test_deps
        def_lib = get_option('default_library')
        test_dep_objs += get_variable(def_lib + '_rte_' + d)