1cd $ANDROID_BUILD_TOP/build/make/tools/fs_config/end_to_end_test 2 3$ANDROID_BUILD_TOP/build/make/tools/fs_config/fs_config_generator.py fsconfig \ 4 --aid-header $ANDROID_BUILD_TOP/system/core/include/private/android_filesystem_config.h \ 5 --capability-header $ANDROID_BUILD_TOP/bionic/libc/kernel/uapi/linux/capability.h \ 6 --partition system \ 7 --all-partitions vendor,product \ 8 --files \ 9 --out_file result_system_fs_config_files \ 10 ./config.fs 11 12diff system_fs_config_files result_system_fs_config_files 1>/dev/null && echo 'Success system_fs_config_files' || 13 echo 'Fail: Mismatch between system_fs_config_files and result_system_fs_config_files' 14 15$ANDROID_BUILD_TOP/build/make/tools/fs_config/fs_config_generator.py fsconfig \ 16 --aid-header $ANDROID_BUILD_TOP/system/core/include/private/android_filesystem_config.h \ 17 --capability-header $ANDROID_BUILD_TOP/bionic/libc/kernel/uapi/linux/capability.h \ 18 --partition system \ 19 --all-partitions vendor,product \ 20 --dirs \ 21 --out_file result_system_fs_config_dirs \ 22 ./config.fs 23 24diff system_fs_config_dirs result_system_fs_config_dirs 1>/dev/null && echo 'Success system_fs_config_dirs' || 25 echo 'Fail: Mismatch between system_fs_config_dirs and result_system_fs_config_dirs' 26 27$ANDROID_BUILD_TOP/build/make/tools/fs_config/fs_config_generator.py fsconfig \ 28 --aid-header $ANDROID_BUILD_TOP/system/core/include/private/android_filesystem_config.h \ 29 --capability-header $ANDROID_BUILD_TOP/bionic/libc/kernel/uapi/linux/capability.h \ 30 --partition vendor \ 31 --files \ 32 --out_file result_vendor_fs_config_files \ 33 ./config.fs 34 35diff vendor_fs_config_files result_vendor_fs_config_files 1>/dev/null && echo 'Success vendor_fs_config_files' || 36 echo 'Fail: Mismatch between vendor_fs_config_files and result_vendor_fs_config_files' 37 38$ANDROID_BUILD_TOP/build/make/tools/fs_config/fs_config_generator.py fsconfig \ 39 --aid-header $ANDROID_BUILD_TOP/system/core/include/private/android_filesystem_config.h \ 40 --capability-header $ANDROID_BUILD_TOP/bionic/libc/kernel/uapi/linux/capability.h \ 41 --partition vendor \ 42 --dirs \ 43 --out_file result_vendor_fs_config_dirs \ 44 ./config.fs 45 46diff vendor_fs_config_dirs result_vendor_fs_config_dirs 1>/dev/null && echo 'Success vendor_fs_config_dirs' || 47 echo 'Fail: Mismatch between vendor_fs_config_dirs and result_vendor_fs_config_dirs' 48 49$ANDROID_BUILD_TOP/build/make/tools/fs_config/fs_config_generator.py fsconfig \ 50 --aid-header $ANDROID_BUILD_TOP/system/core/include/private/android_filesystem_config.h \ 51 --capability-header $ANDROID_BUILD_TOP/bionic/libc/kernel/uapi/linux/capability.h \ 52 --partition product \ 53 --files \ 54 --out_file result_product_fs_config_files \ 55 ./config.fs 56 57diff product_fs_config_files result_product_fs_config_files 1>/dev/null && echo 'Success product_fs_config_files' || 58 echo 'Fail: Mismatch between product_fs_config_files and result_product_fs_config_files' 59 60$ANDROID_BUILD_TOP/build/make/tools/fs_config/fs_config_generator.py fsconfig \ 61 --aid-header $ANDROID_BUILD_TOP/system/core/include/private/android_filesystem_config.h \ 62 --capability-header $ANDROID_BUILD_TOP/bionic/libc/kernel/uapi/linux/capability.h \ 63 --partition product \ 64 --dirs \ 65 --out_file result_product_fs_config_dirs \ 66 ./config.fs 67 68diff product_fs_config_dirs result_product_fs_config_dirs 1>/dev/null && echo 'Success product_fs_config_dirs' || 69 echo 'Fail: Mismatch between product_fs_config_dirs and result_product_fs_config_dirs' 70 71rm result_system_fs_config_files 72rm result_system_fs_config_dirs 73rm result_vendor_fs_config_files 74rm result_vendor_fs_config_dirs 75rm result_product_fs_config_files 76rm result_product_fs_config_dirs 77