mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
Add some basic sanity-check tests for the fat_checksum() function and the fat_time_unix2fat() and fat_time_fat2unix() functions. These unit tests verify these functions return correct output for a number of test inputs. These tests were inspired by -- and serve a similar purpose to -- the timestamp parsing KUnit tests in ext4[1]. Note that, unlike fat_time_unix2fat, fat_time_fat2unix wasn't previously exported, so this patch exports it as well. This is required for the case where we're building the fat and fat_test as modules. Fixed minor checkpatch coding style errors and typos in commit log: Shuah Khan <[email protected]> [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/fs/ext4/inode-test.c Signed-off-by: David Gow <[email protected]> Acked-by: OGAWA Hirofumi <[email protected]> Reviewed-by: Brendan Higgins <[email protected]> Tested-by: Daniel Latypov <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
15 lines
338 B
Makefile
15 lines
338 B
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the Linux fat filesystem support.
|
|
#
|
|
|
|
obj-$(CONFIG_FAT_FS) += fat.o
|
|
obj-$(CONFIG_VFAT_FS) += vfat.o
|
|
obj-$(CONFIG_MSDOS_FS) += msdos.o
|
|
|
|
fat-y := cache.o dir.o fatent.o file.o inode.o misc.o nfs.o
|
|
vfat-y := namei_vfat.o
|
|
msdos-y := namei_msdos.o
|
|
|
|
obj-$(CONFIG_FAT_KUNIT_TEST) += fat_test.o
|