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

file_exists

●

Tests if a file exists at the specified path

dst (str)

file_does_not_exist

●

Tests if a file does NOT exist at the specified path

dst (str)

dir_exists

●

Tests if a directory exists at the specified path

dst (str)

dir_does_not_exist

●

Tests if a directory does NOT exist at the specified path

dst (str)

dir_content

●

Tests if a directory contains the expected files/folders

dst (str), files (list)

file_content_matches_regex

●

Tests if file content matches a regular expression

dst (str), regex (str)

file_content_equals

●

Tests if file content exactly equals the given content

dst (str), content (str)

file_hash_matches

●

Tests if file hash matches expected value

dst (str), expected_hash (str), hash_type* (str)

file_timestamps

●

Tests file timestamps with various comparison types

dst (str), timestamp_type* (str), comparison_type* (str), expected_time* (str/num)

file_permissions

●

Tests file permissions owner and group

dst (str), expected_permissions (str), check_owner* (str), check_group* (str)

file_content_contains

●

Tests if file content contains specified string or byte pattern

dst (str), content (str), content_type* (str)