Add C implementations of filesystem tests that can be called via the 'ut fs' command. These tests use UTF_MANUAL flag since they require external setup, i.e. creation of filesystem images. This covers the existing TestFsBasic tests. The tests use typed arguments (fs_type, fs_image, md5 values) passed via the command line. Add a few helpers to make the code easier to read. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
30 lines
657 B
Makefile
30 lines
657 B
Makefile
# SPDX-License-Identifier: GPL-2.0+
|
|
#
|
|
# (C) Copyright 2012 The Chromium Authors
|
|
|
|
obj-y += test-main.o
|
|
|
|
obj-$(CONFIG_$(PHASE_)CMDLINE) += cmd/
|
|
obj-$(CONFIG_$(PHASE_)CMDLINE) += cmd_ut.o
|
|
obj-y += dm/
|
|
obj-$(CONFIG_FUZZ) += fuzz/
|
|
ifndef CONFIG_SANDBOX_VPL
|
|
obj-$(CONFIG_UNIT_TEST) += lib/
|
|
endif
|
|
ifneq ($(CONFIG_HUSH_PARSER),)
|
|
obj-$(CONFIG_$(PHASE_)CMDLINE) += hush/
|
|
endif
|
|
obj-$(CONFIG_UT_OPTEE) += optee/
|
|
obj-y += ut.o
|
|
|
|
ifeq ($(CONFIG_XPL_BUILD),)
|
|
obj-y += boot/
|
|
obj-$(CONFIG_UNIT_TEST) += common/
|
|
obj-$(CONFIG_UT_ENV) += env/
|
|
obj-$(CONFIG_UT_FDT_OVERLAY) += fdt_overlay/
|
|
obj-$(CONFIG_SANDBOX) += fs/
|
|
obj-y += log/
|
|
else
|
|
obj-$(CONFIG_SPL_UT_LOAD) += image/
|
|
endif
|