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: Paul Lawrence <paullawrence@google.com>
This commit is contained in:
Paul Lawrence 2020-01-27 14:48:38 -08:00
parent 040942fc50
commit d6a968fb5a
4 changed files with 7 additions and 1 deletions
fs/incfs
tools/testing/selftests/filesystems/incfs

View file

@ -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

View file

@ -0,0 +1 @@
incfs_test

View file

@ -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

View file

@ -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)