diff options
Diffstat (limited to 'test/t/test_getconf.py')
-rw-r--r-- | test/t/test_getconf.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/t/test_getconf.py b/test/t/test_getconf.py new file mode 100644 index 0000000..c80c803 --- /dev/null +++ b/test/t/test_getconf.py @@ -0,0 +1,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 |