ref: 6f14d3a3a15f85c47b1b146c5b82c21f015a4536
dir: /fs_test.mk/
LWEXT4_CLIENT = @build_generic/lwext4_client LWEXT4_SERVER = @build_generic/lwext4_server TEST_DIR = /test t0: @echo "T0: Device regoster test:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" t1: @echo "T1: Single mount-umount test:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "umount /" t2: @echo "T2: Multiple mount-umount test:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "umount /" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "umount /" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "umount /" t3: @echo "T3: Test dir create/remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 0" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t4: @echo "T4: 10 files create + write + read + remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_fcreate $(TEST_DIR) /f 10" $(LWEXT4_CLIENT) -c "multi_fwrite $(TEST_DIR) /f 10 1024" $(LWEXT4_CLIENT) -c "multi_fread $(TEST_DIR) /f 10 1024" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 10" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "multi_fremove $(TEST_DIR) /f 10" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t5: @echo "T5: 100 files create + write + read + remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_fcreate $(TEST_DIR) /f 100" $(LWEXT4_CLIENT) -c "multi_fwrite $(TEST_DIR) /f 100 1024" $(LWEXT4_CLIENT) -c "multi_fread $(TEST_DIR) /f 100 1024" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 100" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "multi_fremove $(TEST_DIR) /f 100" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t6: @echo "T6: 1000 files create + write + read + remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_fcreate $(TEST_DIR) /f 1000" $(LWEXT4_CLIENT) -c "multi_fwrite $(TEST_DIR) /f 1000 1024" $(LWEXT4_CLIENT) -c "multi_fread $(TEST_DIR) /f 1000 1024" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 1000" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "multi_fremove $(TEST_DIR) /f 1000" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t7: @echo "T7: 10 dirs create + remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_dcreate $(TEST_DIR) /d 10" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 10" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "multi_dremove $(TEST_DIR) /d 10" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t8: @echo "T8: 100 dirs create + remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_dcreate $(TEST_DIR) /d 100" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 100" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "multi_dremove $(TEST_DIR) /d 100" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t9: @echo "T9: 1000 dirs create + remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_dcreate $(TEST_DIR) /d 1000" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 1000" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "multi_dremove $(TEST_DIR) /d 1000" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t10: @echo "T10: 10 entries (dir) dir recursive remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_dcreate $(TEST_DIR) /d 10" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 10" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t11: @echo "T11: 100 entries (dir) dir recursive remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_dcreate $(TEST_DIR) /d 100" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 100" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t12: @echo "T12: 1000 entries (dir) dir recursive remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_dcreate $(TEST_DIR) /d 1000" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 1000" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t13: @echo "T13: 10 entries (files) dir recursive remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_fcreate $(TEST_DIR) /f 10" $(LWEXT4_CLIENT) -c "multi_fwrite $(TEST_DIR) /f 10 1024" $(LWEXT4_CLIENT) -c "multi_fread $(TEST_DIR) /f 10 1024" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 10" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t14: @echo "T14: 100 entries (files) dir recursive remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_fcreate $(TEST_DIR) /f 100" $(LWEXT4_CLIENT) -c "multi_fwrite $(TEST_DIR) /f 100 1024" $(LWEXT4_CLIENT) -c "multi_fread $(TEST_DIR) /f 100 1024" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 100" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t15: @echo "T15: 1000 entries (files) dir recursive remove:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "multi_fcreate $(TEST_DIR) /f 1000" $(LWEXT4_CLIENT) -c "multi_fwrite $(TEST_DIR) /f 1000 1024" $(LWEXT4_CLIENT) -c "multi_fread $(TEST_DIR) /f 1000 1024" $(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)" $(LWEXT4_CLIENT) -c "dir_entry_get 0 1000" $(LWEXT4_CLIENT) -c "dir_close 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t16: @echo "T16: 8kB file write/read:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "fopen 0 $(TEST_DIR)/test.txt wb+" $(LWEXT4_CLIENT) -c "ftell 0 0" $(LWEXT4_CLIENT) -c "fsize 0 0" $(LWEXT4_CLIENT) -c "fwrite 0 0 8192 0" $(LWEXT4_CLIENT) -c "ftell 0 8192" $(LWEXT4_CLIENT) -c "fsize 0 8192" $(LWEXT4_CLIENT) -c "fseek 0 0 0" $(LWEXT4_CLIENT) -c "ftell 0 0" $(LWEXT4_CLIENT) -c "fsize 0 8192" $(LWEXT4_CLIENT) -c "fread 0 0 8192 0" $(LWEXT4_CLIENT) -c "ftell 0 8192" $(LWEXT4_CLIENT) -c "fsize 0 8192" $(LWEXT4_CLIENT) -c "fclose 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t17: @echo "T17: 64kB file write/read:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "fopen 0 $(TEST_DIR)/test.txt wb+" $(LWEXT4_CLIENT) -c "ftell 0 0" $(LWEXT4_CLIENT) -c "fsize 0 0" $(LWEXT4_CLIENT) -c "fwrite 0 0 65536 0" $(LWEXT4_CLIENT) -c "ftell 0 65536" $(LWEXT4_CLIENT) -c "fsize 0 65536" $(LWEXT4_CLIENT) -c "fseek 0 0 0" $(LWEXT4_CLIENT) -c "ftell 0 0" $(LWEXT4_CLIENT) -c "fsize 0 65536" $(LWEXT4_CLIENT) -c "fread 0 0 65536 0" $(LWEXT4_CLIENT) -c "ftell 0 65536" $(LWEXT4_CLIENT) -c "fsize 0 65536" $(LWEXT4_CLIENT) -c "fclose 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t18: @echo "T18: 512kB file write/read:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "fopen 0 $(TEST_DIR)/test.txt wb+" $(LWEXT4_CLIENT) -c "ftell 0 0" $(LWEXT4_CLIENT) -c "fsize 0 0" $(LWEXT4_CLIENT) -c "fwrite 0 0 524288 0" $(LWEXT4_CLIENT) -c "ftell 0 524288" $(LWEXT4_CLIENT) -c "fsize 0 524288" $(LWEXT4_CLIENT) -c "fseek 0 0 0" $(LWEXT4_CLIENT) -c "ftell 0 0" $(LWEXT4_CLIENT) -c "fsize 0 524288" $(LWEXT4_CLIENT) -c "fread 0 0 524288 0" $(LWEXT4_CLIENT) -c "ftell 0 524288" $(LWEXT4_CLIENT) -c "fsize 0 524288" $(LWEXT4_CLIENT) -c "fclose 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t19: @echo "T19: 4MB file write/read:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "fopen 0 $(TEST_DIR)/test.txt wb+" $(LWEXT4_CLIENT) -c "ftell 0 0" $(LWEXT4_CLIENT) -c "fsize 0 0" $(LWEXT4_CLIENT) -c "fwrite 0 0 4194304 0" $(LWEXT4_CLIENT) -c "ftell 0 4194304" $(LWEXT4_CLIENT) -c "fsize 0 4194304" $(LWEXT4_CLIENT) -c "fseek 0 0 0" $(LWEXT4_CLIENT) -c "ftell 0 0" $(LWEXT4_CLIENT) -c "fsize 0 4194304" $(LWEXT4_CLIENT) -c "fread 0 0 4194304 0" $(LWEXT4_CLIENT) -c "ftell 0 4194304" $(LWEXT4_CLIENT) -c "fsize 0 4194304" $(LWEXT4_CLIENT) -c "fclose 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" t20: @echo "T10: 32MB file write/read:" $(LWEXT4_CLIENT) -c "device_register 0 0 bdev" $(LWEXT4_CLIENT) -c "mount bdev /" $(LWEXT4_CLIENT) -c "stats_save /" $(LWEXT4_CLIENT) -c "dir_mk $(TEST_DIR)" $(LWEXT4_CLIENT) -c "fopen 0 $(TEST_DIR)/test.txt wb+" $(LWEXT4_CLIENT) -c "ftell 0 0" $(LWEXT4_CLIENT) -c "fsize 0 0" $(LWEXT4_CLIENT) -c "fwrite 0 0 33554432 0" $(LWEXT4_CLIENT) -c "ftell 0 33554432" $(LWEXT4_CLIENT) -c "fsize 0 33554432" $(LWEXT4_CLIENT) -c "fseek 0 0 0" $(LWEXT4_CLIENT) -c "ftell 0 0" $(LWEXT4_CLIENT) -c "fsize 0 33554432" $(LWEXT4_CLIENT) -c "fread 0 0 33554432 0" $(LWEXT4_CLIENT) -c "ftell 0 33554432" $(LWEXT4_CLIENT) -c "fsize 0 33554432" $(LWEXT4_CLIENT) -c "fclose 0" $(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)" $(LWEXT4_CLIENT) -c "stats_check /" $(LWEXT4_CLIENT) -c "umount /" unpack_images: rm -R -f ext_images 7za x ext_images.7z server_ext2: $(LWEXT4_SERVER) -i ext_images/ext2 server_ext3: $(LWEXT4_SERVER) -i ext_images/ext3 server_ext4: $(LWEXT4_SERVER) -i ext_images/ext4 all_tests: t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20