summaryrefslogtreecommitdiffstats
path: root/test/t/test_getconf.py
blob: c80c803ecd305a1d3e73926016d29b0b31ccb8e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import pytest


class TestGetconf:
    @pytest.mark.complete("getconf P")
    def test_1(self, completion):
        assert completion

    @pytest.mark.complete("getconf -")
    def test_2(self, completion):
        assert completion

    @pytest.mark.complete("getconf -a ")
    def test_3(self, completion):
        assert completion

    @pytest.mark.complete(
        "getconf -v ", xfail="! getconf -a 2>&1 | command grep -q ^POSIX_V"
    )
    def test_4(self, completion):
        assert completion

    @pytest.mark.complete("getconf PATH_MAX ")
    def test_5(self, completion):
        assert completion