diff options
author | Ted Lawson <big.tedde@gmail.com> | 2023-07-29 16:17:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-30 01:17:56 +0200 |
commit | f29fd803115bc37bc2f6c5153156f8d380409371 (patch) | |
tree | 252fc0fbaa354ec4ffb60c49c511109ed5d3ee82 /src | |
parent | 1e7dec154186b503265a2194bfee8aaca8d57cae (diff) |
`platform_freebsd.py` dummy test file (#7748)
Diffstat (limited to 'src')
-rw-r--r-- | src/borg/testsuite/platform.py | 1 | ||||
-rw-r--r-- | src/borg/testsuite/platform_freebsd.py | 30 |
2 files changed, 31 insertions, 0 deletions
diff --git a/src/borg/testsuite/platform.py b/src/borg/testsuite/platform.py index 74f6e8d75..3dae11b98 100644 --- a/src/borg/testsuite/platform.py +++ b/src/borg/testsuite/platform.py @@ -73,6 +73,7 @@ def are_acls_working(): # define skips available to platform tests skipif_not_linux = pytest.mark.skipif(not is_linux, reason="linux only test") skipif_not_darwin = pytest.mark.skipif(not is_darwin, reason="darwin only test") +skipif_not_freebsd = pytest.mark.skipif(not is_freebsd, reason="freebsd only test") skipif_not_posix = pytest.mark.skipif(not (is_linux or is_freebsd or is_darwin), reason="POSIX only tests") skipif_fakeroot_detected = pytest.mark.skipif(fakeroot_detected(), reason="not compatible with fakeroot") skipif_acls_not_working = pytest.mark.skipif(not are_acls_working(), reason="ACLs do not work") diff --git a/src/borg/testsuite/platform_freebsd.py b/src/borg/testsuite/platform_freebsd.py new file mode 100644 index 000000000..9d898a76b --- /dev/null +++ b/src/borg/testsuite/platform_freebsd.py @@ -0,0 +1,30 @@ +"""Dummy file for now, will eventually contain FreeBSD ACL tests.""" +import pytest + +from .platform import skipif_not_freebsd + +# set module-level skips +pytestmark = [skipif_not_freebsd] + + +def get_acl(): + return + + +def get_set_acl(): + return + + +@pytest.mark.skip(reason="not yet implemented") +def test_access_acl(): + pass + + +@pytest.mark.skip(reason="not yet implemented") +def test_default_acl(): + pass + + +@pytest.mark.skip(reason="not yet implemented") +def test_nfs4_acl(): + pass |