From da6eadc840716eb29b0175f39b2790bba166db4a Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 16 Nov 2022 15:41:57 +0100 Subject: Add a single, central hex blob decoder Since we need it twice (once for tar, once for the filemap xattr parser), add a single, central implementation to libutil, add a unit test for that implementation and then use it in both libtar and gensquashfs. Signed-off-by: David Oberhollenzer --- tests/libutil/Makemodule.am | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/libutil/Makemodule.am') diff --git a/tests/libutil/Makemodule.am b/tests/libutil/Makemodule.am index 2ea2d43..5a69de4 100644 --- a/tests/libutil/Makemodule.am +++ b/tests/libutil/Makemodule.am @@ -30,10 +30,13 @@ test_filename_sane_w32_LDADD = libcompat.a test_sdate_epoch_SOURCES = tests/libutil/epoch.c test_sdate_epoch_LDADD = libutil.a libcompat.a +test_hex_decode_SOURCES = tests/libutil/hex_decode.c +test_hex_decode_LDADD = libutil.a libcompat.a + LIBUTIL_TESTS = \ test_str_table test_rbtree test_xxhash test_threadpool test_ismemzero \ test_canonicalize_name test_filename_sane test_filename_sane_w32 \ - test_sdate_epoch + test_sdate_epoch test_hex_decode check_PROGRAMS += $(LIBUTIL_TESTS) TESTS += $(LIBUTIL_TESTS) -- cgit v1.2.3