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")
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")
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)
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")