Create heartbeat script and directories (Call it only once)
Start heartbeat, setup environment variables (Call it everytime SUT reboots)
Stop heartbeat
Wait for heartbeat
Wait for test to finish
Format the name of a subtest, because we don't want / to be seen like directory (e.g. xfs-005) test - specific test (e.g. xfs/005)
Add one test result to log file file - log file test - specific test (e.g. xfs/008) status - test status time - time consumed
Return all the tests of a specific xfstests category category - xfstests category (e.g. generic) dir - xfstests installation dir (e.g. /opt/xfstests)
Return matched exclude tests from groups in XFSTESTS_GROUPLIST return structure - hash Group name start with ! will exclude in test, and expected to use to update blacklist If TEST_RANGES contain generic tests, then exclude tests from generic folder, else will exclude tests from filesystem type folder
Return matched include tests from groups in XFSTESTS_GROUPLIST return structure - array Group name start without ! will include in test, and expected to use to update test ranges If TEST_RANGES contain generic tests, then include tests from generic folder, else will include tests from filesystem type folder
Return a list of tests to run from given test ranges ranges - test ranges (e.g. xfs/001-100,btrfs/100-159) dir - xfstests installation dir (e.g. /opt/xfstests)
# Run a single test and write log to file # test - test to run (e.g. xfs/001)
Save kdump data for further uploading test - corresponding test(e.g. xfs/009) dir - Save kdump data to this dir vmcore - include vmcore file kernel - include kernel
mess up the order of test queue
Log & Must included: Copy log to ready to save
Log: Copy junk.fsxops for fails fsx tests included in subtests
Log: Only run in test Btrfs, collect image dump for inconsistent error
Log: Raw dump from SCRATCH_DEV via dd
Log: Collect fs runtime status for XFS, Btrfs and Ext4
Add all above logs
Reload loop device for xfstests
Umount TEST_DEV and SCRATCH_DEV
Enable softlockup panic collection and could manually enable other setting by XFSTESTS_DEBUG
Run a single test and write log to file but without heartbeat, return log_add output
A function use in white list, to check bugzilla status and write messages in output