|
|
|
|
|
|
|
ifeq ($(OS),Windows_NT)
|
|
|
|
LWEXT4_CLIENT = @build_generic\\fs_test\\lwext4_client
|
|
|
|
LWEXT4_SERVER = @build_generic\\fs_test\\lwext4_server
|
|
|
|
else
|
|
|
|
LWEXT4_CLIENT = @build_generic/fs_test/lwext4_client
|
|
|
|
LWEXT4_SERVER = @build_generic/fs_test/lwext4_server
|
|
|
|
endif
|
|
|
|
|
|
|
|
TEST_DIR = /test
|
|
|
|
|
|
|
|
t0:
|
|
|
|
@echo "T0: Device register 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 "fremove $(TEST_DIR)/test.txt"
|
|
|
|
|
|
|
|
$(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 "fremove $(TEST_DIR)/test.txt"
|
|
|
|
|
|
|
|
$(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 "fremove $(TEST_DIR)/test.txt"
|
|
|
|
|
|
|
|
$(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 "fremove $(TEST_DIR)/test.txt"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "stats_check /"
|
|
|
|
$(LWEXT4_CLIENT) -c "umount /"
|
|
|
|
|
|
|
|
t20:
|
|
|
|
@echo "T20: 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 "fremove $(TEST_DIR)/test.txt"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "stats_check /"
|
|
|
|
$(LWEXT4_CLIENT) -c "umount /"
|
|
|
|
|
|
|
|
t21:
|
|
|
|
@echo "T21: 128MB 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 134217728 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "ftell 0 134217728"
|
|
|
|
$(LWEXT4_CLIENT) -c "fsize 0 134217728"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "fseek 0 0 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "ftell 0 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fsize 0 134217728"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "fread 0 0 134217728 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "ftell 0 134217728"
|
|
|
|
$(LWEXT4_CLIENT) -c "fsize 0 134217728"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "fclose 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "fremove $(TEST_DIR)/test.txt"
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "stats_check /"
|
|
|
|
$(LWEXT4_CLIENT) -c "umount /"
|
|
|
|
|
|
|
|
t22:
|
|
|
|
@echo "T22: 1GB 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 1073741824 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "ftell 0 1073741824"
|
|
|
|
$(LWEXT4_CLIENT) -c "fsize 0 1073741824"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "fseek 0 0 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "ftell 0 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fsize 0 1073741824"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "fread 0 0 1073741824 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "ftell 0 1073741824"
|
|
|
|
$(LWEXT4_CLIENT) -c "fsize 0 1073741824"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "fclose 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "fremove $(TEST_DIR)/test.txt"
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "stats_check /"
|
|
|
|
$(LWEXT4_CLIENT) -c "umount /"
|
|
|
|
|
|
|
|
t23:
|
|
|
|
@echo "T23: 8*1GB 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)/test0.txt wb+"
|
|
|
|
$(LWEXT4_CLIENT) -c "fopen 1 $(TEST_DIR)/test1.txt wb+"
|
|
|
|
$(LWEXT4_CLIENT) -c "fopen 2 $(TEST_DIR)/test2.txt wb+"
|
|
|
|
$(LWEXT4_CLIENT) -c "fopen 3 $(TEST_DIR)/test3.txt wb+"
|
|
|
|
$(LWEXT4_CLIENT) -c "fopen 4 $(TEST_DIR)/test4.txt wb+"
|
|
|
|
$(LWEXT4_CLIENT) -c "fopen 5 $(TEST_DIR)/test5.txt wb+"
|
|
|
|
$(LWEXT4_CLIENT) -c "fopen 6 $(TEST_DIR)/test6.txt wb+"
|
|
|
|
$(LWEXT4_CLIENT) -c "fopen 7 $(TEST_DIR)/test7.txt wb+"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "fwrite 0 0 1000000000 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fclose 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fwrite 1 0 1000000000 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fclose 1"
|
|
|
|
$(LWEXT4_CLIENT) -c "fwrite 2 0 1000000000 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fclose 2"
|
|
|
|
$(LWEXT4_CLIENT) -c "fwrite 3 0 1000000000 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fclose 3"
|
|
|
|
$(LWEXT4_CLIENT) -c "fwrite 4 0 1000000000 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fclose 4"
|
|
|
|
$(LWEXT4_CLIENT) -c "fwrite 5 0 1000000000 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fclose 5"
|
|
|
|
$(LWEXT4_CLIENT) -c "fwrite 6 0 1000000000 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fclose 6"
|
|
|
|
$(LWEXT4_CLIENT) -c "fwrite 7 0 1000000000 0"
|
|
|
|
$(LWEXT4_CLIENT) -c "fclose 7"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "stats_check /"
|
|
|
|
$(LWEXT4_CLIENT) -c "umount /"
|
|
|
|
|
|
|
|
t24:
|
|
|
|
@echo "T24: 10000 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 10000"
|
|
|
|
$(LWEXT4_CLIENT) -c "multi_fwrite $(TEST_DIR) /f 10000 1024"
|
|
|
|
$(LWEXT4_CLIENT) -c "multi_fread $(TEST_DIR) /f 10000 1024"
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_close 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "stats_check /"
|
|
|
|
$(LWEXT4_CLIENT) -c "umount /"
|
|
|
|
|
|
|
|
t25:
|
|
|
|
@echo "T25: 50000 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 50000"
|
|
|
|
$(LWEXT4_CLIENT) -c "multi_fwrite $(TEST_DIR) /f 50000 1024"
|
|
|
|
$(LWEXT4_CLIENT) -c "multi_fread $(TEST_DIR) /f 50000 1024"
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_close 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "stats_check /"
|
|
|
|
$(LWEXT4_CLIENT) -c "umount /"
|
|
|
|
|
|
|
|
t26:
|
|
|
|
@echo "T26: 250000 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 250000"
|
|
|
|
$(LWEXT4_CLIENT) -c "multi_fwrite $(TEST_DIR) /f 250000 1024"
|
|
|
|
$(LWEXT4_CLIENT) -c "multi_fread $(TEST_DIR) /f 250000 1024"
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_open 0 $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_close 0"
|
|
|
|
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "stats_check /"
|
|
|
|
$(LWEXT4_CLIENT) -c "umount /"
|
|
|
|
|
|
|
|
ct:
|
|
|
|
@echo "Clean test directory"
|
|
|
|
$(LWEXT4_CLIENT) -c "device_register 0 0 bdev"
|
|
|
|
$(LWEXT4_CLIENT) -c "mount bdev /"
|
|
|
|
$(LWEXT4_CLIENT) -c "dir_rm $(TEST_DIR)"
|
|
|
|
$(LWEXT4_CLIENT) -c "umount /"
|
|
|
|
|
|
|
|
server_ext2:
|
|
|
|
$(LWEXT4_SERVER) -i ext_images/ext2
|
|
|
|
|
|
|
|
server_ext3:
|
|
|
|
$(LWEXT4_SERVER) -i ext_images/ext3
|
|
|
|
|
|
|
|
server_ext4:
|
|
|
|
$(LWEXT4_SERVER) -i ext_images/ext4
|
|
|
|
|
|
|
|
fsck_images:
|
|
|
|
fsck.ext2 ext_images/ext2 -v -f
|
|
|
|
fsck.ext3 ext_images/ext3 -v -f
|
|
|
|
fsck.ext4 ext_images/ext4 -v -f
|
|
|
|
|
|
|
|
test: t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17 t18 t19 t20
|
|
|
|
|
|
|
|
test_more: t21 t22 t23 t24 t25 t26
|