Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6a968fb authored by Paul Lawrence's avatar Paul Lawrence
Browse files

ANDROID: Make incfs selftests pass



Fixed incfs_test build errors
Fixed Kconfig errors
Readded .gitignore

Test: With just enabling CONFIG_INCREMENTAL_FS, both defconfig and
cuttlefish_defconfig build and incfs_test runs and passes

Bug: 133435829
Change-Id: Id3247ffcc63a095f66dcedf554017a06c5a9ce4a
Signed-off-by: default avatarPaul Lawrence <paullawrence@google.com>
parent 040942fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ config INCREMENTAL_FS
	select DECOMPRESS_LZ4
	select CRC32
	select CRYPTO
	select CRYPTO_RSA
	select CRYPTO_SHA256
	select X509_CERTIFICATE_PARSER
	select ASYMMETRIC_KEY_TYPE
+1 −0
Original line number Diff line number Diff line
incfs_test
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@ CFLAGS += -I../../../../include/uapi/
CFLAGS += -I../../../../lib

EXTRA_SOURCES := utils.c
CFLAGS += $(EXTRA_SOURCES)

TEST_GEN_PROGS := incfs_test

include ../../lib.mk
+3 −1
Original line number Diff line number Diff line
@@ -2398,7 +2398,9 @@ int main(int argc, char *argv[])
	};
#undef MAKE_TEST

	ksft_set_plan(ARRAY_SIZE(cases));
	/* Bring back for kernel 5.x */
	/* ksft_set_plan(ARRAY_SIZE(cases)); */

	for (i = 0; i < ARRAY_SIZE(cases); ++i) {
		ksft_print_msg("Running %s\n", cases[i].name);
		if (cases[i].pfunc(mount_dir) == TEST_SUCCESS)