bats-file – Helper library providing filesystem-related assertions for Bats¶
- More information
- External resources
bats-file provides various assertions and helpers to simplify writing Bats tests that deal with files and filesystems.
For example:
assert_file_contains: Check if the file content matches a regex.
assert_file_owner: Check if a specific user owns the file.
assert_symlink_to: Check if the file is a symlink to the target.
temp_make: Create a temp directory for the current test in BATS_TMPDIR.
Distribution |
Base version |
Our version |
Architectures |
---|---|---|---|
Debian GNU/Linux 11.0 (bullseye) |
0.3.0+git20230131-gbba751f-1~nd110+1 |
i386, amd64, sparc, armel, arm64 |
|
Debian GNU/Linux 12.0 (bookworm) |
0.3.0+git20230131-gbba751f-2 |
0.3.0+git20230131-gbba751f-1~nd120+1 |
i386, amd64, sparc, armel, arm64 |
Debian testing (trixie) |
0.4.0-1 |
||
Debian unstable (sid) |
0.4.0-1 |
0.3.0+git20230131-gbba751f-1~nd+1 |
i386, amd64, sparc, armel, arm64 |
Ubuntu 22.04 “Jammy Jellyfish” (jammy) |
0.3.0+git20230131-gbba751f-1~nd22.04+1 |
i386, amd64, sparc, armel, arm64 |
|
Ubuntu 24.04 “Noble Numbat” (noble) |
0.4.0-1 |