Lines Matching +full:openbmc +full:- +full:test +full:- +full:automation
3 # This script generates the unit test coverage report for openbmc project.
22 # https://github.com/openbmc/phosphor-dbus-monitor.git NO
23 # https://github.com/openbmc/phosphor-sel-logger.git;protocol=git NO
40 "openbmc-tools",
42 "openbmc",
43 "openbmc.github.io",
44 "phosphor-ecc",
45 "phosphor-pcie-presence",
46 "phosphor-u-boot-env-mgr",
47 "rrd-ipmi-blob",
49 "openpower-inventory-upload",
50 "openpower-logging",
51 "openpower-power-control",
53 "openbmc-test-automation",
54 "openbmc-build-scripts",
58 "ibm-pldm-oem",
70 usage=text, description="Script generates the unit test coverage report"
75 help="""Name of a non-existing directory in pwd to store all
145 format="%(levelname)s - %(message)s",
176 # Clone OpenBmc build scripts.
179 "git clone https://github.com/openbmc/openbmc-build-scripts.git",
188 logger.error("Unable to clone openbmc-build-scripts")
193 api_url = "https://api.github.com/repos/openbmc/"
196 repo_name = url.strip().split("/")[-1].split(";")[0].split(".")[0]
215 resp = requests.head("https://api.github.com/users/openbmc/repos")
221 num_of_pages = int(resp.links["last"]["url"].split("page=")[-1])
227 "https://api.github.com/users/openbmc/repos?page=" + str(page)
246 # Clone repository and run unit test.
265 # Eg: url = "https://github.com/openbmc/u-boot.git"
266 # sandbox_name = "u-boot"
268 url.strip().split("/")[-1].split(";")[0].split(".")[0]
275 if sandbox_name in skip_list or re.match(r"meta-", sandbox_name):
280 checkout_cmd = "rm -rf " + sandbox_name + ";git clone " + url
299 + "./openbmc-build-scripts/run-unit-test-docker.sh"
320 report_names = ("coveragereport", "test-suite.log", "LastTest.log")
322 "find " + folder_name + " -name " + report + ";"
327 result = result.decode("utf-8")
339 elif "test-suite.log" in result:
340 ut_status = "YES, UNIT TEST"
346 "sed -n '/Start testing/,/End testing/p;' "
348 + "|wc -l"
363 ut_status = "YES, UNIT TEST"
376 "mkdir -p "
378 + ";cp -rf "
403 logger.info("*" * 30 + "UNIT TEST COVERAGE REPORT" + "*" * 30)
406 logger.info("*" * 30 + "UNIT TEST COVERAGE REPORT" + "*" * 30)
416 logger.info("UNIT TEST REPORT : " + str(unit_test_count))