Skip to content

Commit 9e3d1e4

Browse files
authored
[k2] add integration tests step to kphp_ci_pipeline_runner.py (#1322)
1 parent 8dbca83 commit 9e3d1e4

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

tests/kphp_ci_pipeline_runner.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,28 @@ def parse_args():
454454
skip=args.steps and "integration-tests" not in args.steps,
455455
)
456456

457+
runner.add_test_group(
458+
name="k2-integration-tests",
459+
description="run k2-kphp integration tests with cxx={}".format(args.cxx_name),
460+
cmd="PYTHONPATH={lib_dir} "
461+
"KPHP_TESTS_KPHP_REPO={kphp_repo_root} "
462+
"KPHP_TESTS_POLYFILLS_REPO={kphp_polyfills_repo} "
463+
"KPHP_TESTS_INTERGRATION_TESTS_ENABLED=1 "
464+
"KPHP_CXX={cxx_name} "
465+
"K2_BIN={k2_bin} "
466+
"python3 -m pytest --tb=native -n{jobs} {tests_dir}".format(
467+
jobs=n_cpu,
468+
lib_dir=os.path.join(runner_dir, "python"),
469+
engine_repo=args.engine_repo,
470+
kphp_repo_root=kphp_repo_root,
471+
kphp_polyfills_repo=kphp_polyfills_repo,
472+
cxx_name=args.cxx_name,
473+
k2_bin=args.k2_bin,
474+
tests_dir=os.path.join(args.kphp_tests_repo, "python/tests/k2_rpc_server/"),
475+
),
476+
skip=not args.k2_bin or (args.steps and "k2-integration-tests" not in args.steps),
477+
)
478+
457479
runner.setup(args)
458480
runner.run_tests()
459481
runner.print_report()

0 commit comments

Comments
 (0)