pjd-fstest The test suite checks POSIX compliance - 測試文件系統posix 接口兼容性


pjd-fstest:

參考網址:https://www.tuxera.com/community/posix-test-suite/ 

fstest是一套簡化版的文件系統POSIX兼容性測試套件,它可以工作在FreeBSD, Solaris, Linux上用於測試UFS, ZFS, ext3, XFS and the NTFS-3G等文件系統。fstest目前有3601個回歸測試用例,測試的系統調用覆蓋chmod, chown, link, mkdir, mkfifo, open, rename, rmdir, symlink, truncate, unlink。

使用方法:

  • 解壓壓縮包 有兩個版本 建議使用 08 穩定版;
  • 參照軟件說明文檔;
  • 具體步驟如下:
    # cd fstest
    # vi tests/conf
    Change 'fs' to file system type you want to test. These can be:
    UFS, ZFS, ext3, ntfs-3g and xfs.
    # vi Makefile
    You may need to manually tweak few things by editing CFLAGS lines
    at the top of the file.
    # make
    It will compile fstest utility which is used by regression tests.
    # cd /path/to/file/system/you/want/to/test/
    The test must be run as root user.
    # prove -r /path/to/fstest/

測試結果:

注:

prove 為測試命令; 位於 perl-Test-Harness 工具包中; fedora/centos 用戶可以使用 yum/dnf 安裝;

保持更新,轉載請注明出處;


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM