summaryrefslogtreecommitdiff
path: root/tests/libutil/Makemodule.am
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-02-09 15:59:37 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2024-02-09 15:59:37 +0100
commitae048f7ac4a9ab6576ca6842aa13e5c9c31e35a7 (patch)
tree79aa627a2689e76f23f856c85b9f86d9e651bfd2 /tests/libutil/Makemodule.am
parent48b3355c7a887530a9bd17a1ad571e402102dd95 (diff)
Add utility function to fixup Windows file paths
The idea is to iterate over a (canonicalized) path with forward slashes by components, i.e. file and directory names. Each name is then looked at by iterating over components, i.e. everything between dots. If a component is an illegal name, like COM1 or AUX, we add an underscore. If it contains illegal characters, like : or \, we re-map that character into unicode private use area. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/libutil/Makemodule.am')
-rw-r--r--tests/libutil/Makemodule.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/libutil/Makemodule.am b/tests/libutil/Makemodule.am
index e039282..c783853 100644
--- a/tests/libutil/Makemodule.am
+++ b/tests/libutil/Makemodule.am
@@ -36,9 +36,12 @@ test_hex_decode_LDADD = libutil.a libcompat.a
test_base64_decode_SOURCES = tests/libutil/base64_decode.c
test_base64_decode_LDADD = libutil.a libcompat.a
+test_fix_win32_filename_SOURCES = tests/libutil/fix_win32_filename.c
+test_fix_win32_filename_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_canonicalize_name test_filename_sane test_fix_win32_filename \
test_sdate_epoch test_hex_decode test_base64_decode
check_PROGRAMS += $(LIBUTIL_TESTS)