4 Commits

Author SHA1 Message Date
Ernesto A. Fernández 09a7616c2f Support case sensitivity
Add support for case sensitivity to unicode.c, and take advantage of
this to simplify the testing procedure.
2018-11-13 00:39:35 -03:00
Ernesto A. Fernández 4755d6f68a Rework unicode functions so they cannot fail
The ->d_compare() dentry operation is not allowed to fail. Before
the APFS module can implement it, apfs_init_unicursor() and
apfs_normalize_next() must be reworked accordingly.
2018-07-26 18:38:04 -03:00
Ernesto A. Fernández 5a0f3e712b Run tests during build
Move the head of unicode.c and unicode.h to separate files, and write
alternative versions for running tests in user space. Since there are
no official unicode tests for case folding, the mktrie script must also
produce another version of the case folding trie, with no values.

Setup the Makefile so that the tests are run with every recompilation,
printing the results to build/test.out.
2018-06-07 19:38:53 -03:00
Ernesto A. Fernández c185595fa7 Add the C unicode functions to the repository
Soon this script will be putting the C code through the normalization
tests provided by Unicode. The most practical way to do this is to keep
the C functions inside the same repository, and later provide two build
options: one for use by the kernel module, and another for testing in
user space.
2018-06-07 17:57:45 -03:00