From f4acb49ea148cdd899f7f29f1591c7bc853c2135 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 03:03:18 +0200 Subject: Adding upstream version 1:2.12.0. Signed-off-by: Daniel Baumann --- test/t/test_pkgconf.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 test/t/test_pkgconf.py (limited to 'test/t/test_pkgconf.py') diff --git a/test/t/test_pkgconf.py b/test/t/test_pkgconf.py new file mode 100644 index 0000000..1466a89 --- /dev/null +++ b/test/t/test_pkgconf.py @@ -0,0 +1,22 @@ +import os + +import pytest + + +@pytest.mark.bashcomp(cmd="pkgconf") +class TestPkgconf: + @pytest.mark.complete("pkgconf ") + def test_1(self, completion): + assert completion + + @pytest.mark.complete("pkgconf -", require_cmd=True) + def test_2(self, completion): + assert completion + + @pytest.mark.complete( + "pkgconf %s/bash-completion.pc --variable=" + % os.getenv("ABS_TOP_BUILDDIR", "../.."), + require_cmd=True, + ) + def test_variable(self, completion): + assert "completionsdir" in completion -- cgit v1.2.3