[PATCH v7 4/4] test: add unit test for ptr compression
David Marchand
david.marchand at redhat.com
Thu Mar 7 12:30:47 CET 2024
On Fri, Mar 1, 2024 at 11:21 AM Paul Szczepanek <paul.szczepanek at arm.com> wrote:
>
> Test compresses and decompresses pointers with various combinations
> of memory regions and alignments and verifies the pointers are
> recovered correctly.
>
> Signed-off-by: Paul Szczepanek <paul.szczepanek at arm.com>
> ---
> app/test/meson.build | 1 +
> app/test/test_eal_ptr_compress.c | 108 +++++++++++++++++++++++++++++++
> 2 files changed, 109 insertions(+)
> create mode 100644 app/test/test_eal_ptr_compress.c
>
> diff --git a/app/test/meson.build b/app/test/meson.build
> index 7d909039ae..0d1b777199 100644
> --- a/app/test/meson.build
> +++ b/app/test/meson.build
> @@ -68,6 +68,7 @@ source_file_deps = {
> 'test_dmadev_api.c': ['dmadev'],
> 'test_eal_flags.c': [],
> 'test_eal_fs.c': [],
> + 'test_eal_ptr_compress.c': [],
> 'test_efd.c': ['efd', 'net'],
> 'test_efd_perf.c': ['efd', 'hash'],
> 'test_errno.c': [],
> diff --git a/app/test/test_eal_ptr_compress.c b/app/test/test_eal_ptr_compress.c
> new file mode 100644
> index 0000000000..c1c9a98be7
> --- /dev/null
> +++ b/app/test/test_eal_ptr_compress.c
> @@ -0,0 +1,108 @@
> +/* SPDX-License-Identifier: BSD-3-Clause
> + * Copyright(c) 2010-2014 Intel Corporation
Copyright ARM 2024.
--
David Marchand
More information about the dev
mailing list