buildtest.cli.cdash

Module Contents

Functions

cdash_cmd(args, default_configuration=None, open_browser=True)

This method is entry point for buildtest cdash command which implements uploading

upload_test_cdash(build_name, configuration, site=None, report_file=None)

This method is responsible for reading report file and pushing results to CDASH

buildtest.cli.cdash.cdash_cmd(args, default_configuration=None, open_browser=True)[source]

This method is entry point for buildtest cdash command which implements uploading results to CDASH server and command line interface to open CDASH project.

Parameters
  • args (dict) – Parsed arguments from ArgumentParser.parse_args

  • default_configuration (buildtest.config.SiteConfiguration, optional) – The loaded default configuration which is an instance of SiteConfiguration class

  • open_browser (bool, optional) – boolean to control if we open page in web browser using webbrowser.open(). This is enabled by default, but can be turned off especially when running regression test where we don’t want to see the page

buildtest.cli.cdash.upload_test_cdash(build_name, configuration, site=None, report_file=None)[source]

This method is responsible for reading report file and pushing results to CDASH server. User can specify cdash settings in configuration file or pass them in command line. The command buildtest cdash upload will upload results to CDASH.

Shown below is an example output. In this example demo is the build name that shows up in CDASH result.

bash-3.2$ buildtest cdash upload demo
Reading configuration file:  /Users/siddiq90/Documents/GitHubDesktop/buildtest/buildtest/settings/config.yml
Reading report file:  /Users/siddiq90/Documents/GitHubDesktop/buildtest/var/report.json
build name:  demo
site:  generic
stamp:  20210908-1445-Experimental
MD5SUM: 078202fdea13860d50eff19a9ea737db
PUT STATUS: 200
You can view the results at: https://my.cdash.org//viewTest.php?buildid=2063736
Parameters
  • build_name (str) – build name that shows up in CDASH

  • configuration (buildtest.config.SiteConfiguration) – Instance of SiteConfiguration class that contains the configuration file

  • site (str) – Site name that shows up in CDASH

  • report (str) – Path to report file when uploading results. This is specified via buildtest cdash upload -r command