Standard¶
- Status:
● Tested
- Functions:
11
- Category:
File System Operations
The Standard testset provides fundamental file system testing capabilities for ADARE experiments. This testset focuses on file and directory operations, content validation, permissions, and metadata verification.
Overview¶
The Standard testset is the core foundation for ADARE testing, providing essential functions for validating file system state and content. It includes functions to check for the existence of files and directories, validate file contents using various matching strategies, verify file metadata such as timestamps and permissions, and ensure file integrity through hashing.
Test Functions¶
Function Name |
S |
Description |
Parameters |
|---|---|---|---|
● |
Tests if a file exists at the specified path |
dst (str) |
|
● |
Tests if a file does NOT exist at the specified path |
dst (str) |
|
● |
Tests if a directory exists at the specified path |
dst (str) |
|
● |
Tests if a directory does NOT exist at the specified path |
dst (str) |
|
● |
Tests if a directory contains the expected files/folders |
dst (str), files (list) |
|
● |
Tests if file content matches a regular expression |
dst (str), regex (str) |
|
● |
Tests if file content exactly equals the given content |
dst (str), content (str) |
|
● |
Tests if file hash matches expected value |
dst (str), expected_hash (str), hash_type* (str) |
|
● |
Tests file timestamps with various comparison types |
dst (str), timestamp_type* (str), comparison_type* (str), expected_time* (str/num) |
|
● |
Tests file permissions owner and group |
dst (str), expected_permissions (str), check_owner* (str), check_group* (str) |
|
● |
Tests if file content contains specified string or byte pattern |
dst (str), content (str), content_type* (str) |