コード例 #1
0
def test_cpp(qipy_action, qibuild_action):
    qipy_action.add_test_project("c_swig")
    qibuild_action("configure", "swig_eggs")
    qibuild_action("make", "swig_eggs")
    # ipython 5 is the last version compatible with Python 2.7
    qipy_action("bootstrap", "pip", "virtualenv", "ipython<=5")
    qipy_action("run", "--no-exec", "--", "python", "-c", "import eggs")
コード例 #2
0
ファイル: test_qitest_run.py プロジェクト: aldebaran/qibuild
def test_action_coverage(qibuild_action, qitest_action):
    """ Test Action Coverage """
    gcovr = qisys.command.find_program("gcovr", raises=False)
    if not gcovr:
        return
    qibuild_action.add_test_project("cov")
    qibuild_action("configure", "cov", "--coverage")
    qibuild_action("make", "cov")
    qitest_action("run", "cov", "--coverage")
コード例 #3
0
def test_action_coverage(qibuild_action, qitest_action):
    """ Test Action Coverage """
    gcovr = qisys.command.find_program("gcovr", raises=False)
    if not gcovr:
        return
    qibuild_action.add_test_project("cov")
    qibuild_action("configure", "cov", "--coverage")
    qibuild_action("make", "cov")
    qitest_action("run", "cov", "--coverage")
コード例 #4
0
def test_bad_qibuild_config_with_qitest_json(args, qibuild_action, monkeypatch):
    """ Test Bad QiBuild Config With QiTest JSON """
    qibuild_action.add_test_project("testme")
    qibuild_action("add-config", "foo")
    qibuild_action("configure", "--config", "foo", "testme")
    build_worktree = TestBuildWorkTree()
    build_worktree.set_active_config("foo")
    testme_proj = build_worktree.get_build_project("testme")
    testme_sdk = testme_proj.sdk_directory
    qitest_json = os.path.join(testme_sdk, "qitest.json")
    monkeypatch.chdir(testme_proj.path)
    args.qitest_jsons = [qitest_json]
    _test_runners = qitest.parsers.get_test_runners(args)
コード例 #5
0
ファイル: test_parsers.py プロジェクト: aldebaran/qibuild
def test_bad_qibuild_config_with_qitest_json(args, qibuild_action, monkeypatch):
    """ Test Bad QiBuild Config With QiTest JSON """
    qibuild_action.add_test_project("testme")
    qibuild_action("add-config", "foo")
    qibuild_action("configure", "--config", "foo", "testme")
    build_worktree = TestBuildWorkTree()
    build_worktree.set_active_config("foo")
    testme_proj = build_worktree.get_build_project("testme")
    testme_sdk = testme_proj.sdk_directory
    qitest_json = os.path.join(testme_sdk, "qitest.json")
    monkeypatch.chdir(testme_proj.path)
    args.qitest_jsons = [qitest_json]
    _test_runners = qitest.parsers.get_test_runners(args)
コード例 #6
0
ファイル: test_qipy_bootstrap.py プロジェクト: alkino/qibuild
def test_cpp(qipy_action, qibuild_action):
    qipy_action.add_test_project("c_swig")
    qibuild_action("configure", "swig_eggs")
    qibuild_action("make", "swig_eggs")
    qipy_action("bootstrap")
    qipy_action("run", "--no-exec", "--", "python", "-c", "import eggs")
コード例 #7
0
def test_cpp(qipy_action, qibuild_action):
    qipy_action.add_test_project("c_swig")
    qibuild_action("configure", "swig_eggs")
    qibuild_action("make", "swig_eggs")
    qipy_action("bootstrap")
    qipy_action("run", "--no-exec", "--", "python", "-c", "import eggs")