openctest icon indicating copy to clipboard operation
openctest copied to clipboard

Adding support for Eclipse Jetty

Open Moonlor opened this issue 3 years ago • 0 comments

What's the purpose of this PR

Adding submodule jetty-servlet of Eclipse Jetty into the openctest framework

Brief changelog

  • Modified the submodule jetty-servletof and forked own ctest-jetty repository. Created two clean branches, ctest-logging and ctest-injection, in this repo, which can be used for values logging and injection.

  • Modified core/add_project.sh and core/identify_param/add_project.sh so that the project can be automatically added by running the script.

  • Added core/default_configs/jetty-servlet-default.tsv for default values to facilitate generating ctests.

  • Modified core/identify_param submodule to support identifying jetty-servlet parmas exercised in tests.

  • Modified core/generate_ctests submodule to support generating parameter sets for Ctests of jetty-servlet.

  • Modified core/generate_value: support generating valid values for jetty-servlet conf params.

  • Modified core/run_ctest submodule to support running generated ctests of jetty-servlet against configuration files.

A demo program_input could be:

p_input = {
    "run_mode": "run_ctest",
    "project": "jetty-servlet",
    "mapping_path": "../../data/ctest_mapping/opensource-jetty-servlet.json",
    "conf_file_dir": "sample-jetty-servlet",
    "display_mode": False,
    "use_surefire": True,
    "maven_args": [],
    "cmd_timeout": None,
}

Checklist:

  • [x] Read the README of original repo.
  • [x] Rebase all the commits to make the commits history clear.
  • [x] Remove unnecessary files and code.
  • [x] Run identify_param, generate_ctests and run_ctest to make sure the code is correct.

Moonlor avatar Dec 01 '22 16:12 Moonlor