share/common/lib/files.yaml
file (?P<embedded_file>\S+)
Create a file on disk from an embedded file in the subplot document. The created file has the same name as the embedded file.
Captures:
embedded_file
: filefile (?P<filename_on_disk>\S+) from (?P<embedded_file>\S+)
Create a file on disk from an embedded file in the subplot document. Set the name of the created file.
Captures:
filename_on_disk
: pathembedded_file
: fileI write "(?P<text>.*)" to file (?P<filename>\S+)
Create a file on disk with the given content.
Captures:
text
: textfilename
: patha directory (?P<path>\S+)
Create a directory on disk.
Captures:
path
: pathI create directory (?P<path>\S+)
Create a directory on disk.
Captures:
path
: pathI remove directory (?P<path>\S+)
Remove a directory on disk.
Captures:
path
: pathdirectory (?P<path>\S+) exists
Check that a directory exists.
Captures:
path
: pathdirectory (?P<path>\S+) does not exist
Check that a directory does not exist.
Captures:
path
: pathdirectory (?P<path>\S+) is empty
Check that a directory exists and does not contain anything.
Captures:
path
: pathdirectory (?P<path>\S+) is not empty
Check that a directory exists and contains something.
Captures:
path
: pathfile (?P<filename>\S+) has modification time (?P<mtime>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2})
Create a file with specific modification time.
Captures:
filename
: pathmtime
: textI remember metadata for file (?P<filename>\S+)
Remember the metadata of a file.
Captures:
filename
: pathI touch file (?P<filename>\S+)
Update the modification time of a file to be current time.
Captures:
filename
: pathfile (?P<filename>\S+) has same metadata as before
Check that a file has the same metadata as remembered from earlier.
Captures:
filename
: pathfile (?P<filename>\S+) has different metadata from before
Check that a file metadata has changed from earlier.
Captures:
filename
: pathfile (?P<filename>\S+) has changed from before
Check that file metadata has changed from before.
Captures:
filename
: pathfile (?P<filename>\S+) has a very recent modification time
Check that file modification time is recent.
Captures:
filename
: pathfile (?P<filename>\S+) has a very old modification time
Check that file modification is far in the past.
Captures:
filename
: pathfile (?P<filename>\S+) exists
Check that a file exist.
Captures:
filename
: pathfile (?P<filename>\S+) does not exist
Check that a file does not exist.
Captures:
filename
: pathonly files (?P<filenames>.+) exist
Check that the test directory only contains specific files.
Captures:
filenames
: textfile (?P<filename>\S+) contains "(?P<data>.*)"
Check that a file contains a string.
Captures:
filename
: pathdata
: textfile (?P<filename>\S+) doesn't contain "(?P<data>.*)"
Check that a file does not contain a string.
Captures:
data
: textfilename
: pathfile (?P<filename>\S+) matches regex /(?P<regex>.*)/
Check that file content matches a regular expression.
Captures:
regex
: textfilename
: pathfile (?P<filename>\S+) matches regex "(?P<regex>.*)"
Check that file content matches a regular expression.
Captures:
regex
: textfilename
: pathfiles (?P<filename1>\S+) and (?P<filename2>\S+) match
Check that two files have the same content.
Captures:
filename2
: pathfilename1
: path