def run(): opts = parseArgs() if( opts.buildbot ): devices = read_buildbot_config() for (key, config) in devices: make = config.get(BuildBotConfig.MAKE) model = config.get(BuildBotConfig.MODEL) flavor =config.get(BuildBotConfig.FLAVOR) metadata = Metadata(make, model, flavor) app = NoseTest(metadata, testname=opts.testname) app.report_header() app.run_unit() app.run_integration() app.run_qualification() else: app = NoseTest(Metadata(), testname=opts.testname) if( opts.unit ): app.report_header() app.run_unit() elif( opts.integration ): app.report_header() app.run_integration() elif( opts.qualification ): app.report_header() app.run_qualification() else: app.run()
def run(): opts = parseArgs() app = NoseTest(Metadata()) if( opts.unit ): app.report_header() app.run_unit() elif( opts.integration ): app.report_header() app.run_integration() elif( opts.qualification ): app.report_header() app.run_qualification() else: app.run()
def run(): """ Run tests for one or more drivers. If -b is passed then we read driver list from the build bot configuration, otherwise we use the current IDK driver. @return: If any test fails return false, otherwise true """ opts = parseArgs() failure = False for metadata in get_metadata(opts): app = NoseTest(metadata, testname=opts.testname, suppress_stdout=opts.suppress_stdout, noseargs=opts.noseargs) app.report_header() if( opts.unit ): success = app.run_unit() elif( opts.integration ): success = app.run_integration() elif( opts.qualification ): success = app.run_qualification() elif( opts.publication ): success = app.run_publication() else: success = app.run() if(not success): failure = True return failure
def run(): """ Run tests for one or more drivers. If -b is passed then we read driver list from the build bot configuration, otherwise we use the current IDK driver. @return: If any test fails return false, otherwise true """ opts = parseArgs() failure = False for metadata in get_metadata(opts): app = NoseTest(metadata, testname=opts.testname, suppress_stdout=opts.suppress_stdout, noseargs=opts.noseargs) app.report_header() if (opts.unit): success = app.run_unit() elif (opts.integration): success = app.run_integration() elif (opts.qualification): success = app.run_qualification() elif (opts.publication): success = app.run_publication() else: success = app.run() if (not success): failure = True return failure
def run_qualification_tests(self): """ @brief Run all qualification tests for the driver and store the results for packaging """ log.info("-- Running qualification tests") test = NoseTest(self.metadata, log_file=self.log_path()) test.report_header() result = test.run_qualification() if(test.run_qualification()): log.info(" ++ Qualification tests passed") return True else: log.error("Qualification tests have fail! No package created.") return False
def run(): opts = parseArgs() if opts.buildbot_unit: return not run_buildbot_unit(opts) if opts.buildbot_int: return not run_buildbot_int(opts) if opts.buildbot_qual: return not run_buildbot_qual(opts) if opts.buildbot: devices = read_buildbot_config() ret = True for (key, config) in devices: make = config.get(BuildBotConfig.MAKE) model = config.get(BuildBotConfig.MODEL) flavor = config.get(BuildBotConfig.FLAVOR) metadata = Metadata(make, model, flavor) app = NoseTest(metadata, testname=opts.testname) app.report_header() if False == app.run_unit(): ret = False if False == app.run_integration(): ret = False if False == app.run_qualification(): ret = False return not ret else: app = NoseTest(Metadata(), testname=opts.testname) if opts.unit: app.report_header() app.run_unit() elif opts.integration: app.report_header() app.run_integration() elif opts.qualification: app.report_header() app.run_qualification() else: app.run()
def run_buildbot_qual(opts): devices = read_buildbot_config() ret = True for (key, config) in devices: make = config.get(BuildBotConfig.MAKE) model = config.get(BuildBotConfig.MODEL) flavor = config.get(BuildBotConfig.FLAVOR) metadata = Metadata(make, model, flavor) app = NoseTest(metadata, testname=opts.testname) app.report_header() if False == app.run_qualification(): ret = False return ret
def run_qualification_tests(self): """ @brief Run all qualification tests for the driver and store the results for packaging """ log.info("-- Running qualification tests") test = NoseTest(self.metadata, log_file=self.log_path()) test.report_header() if (test.run_qualification()): log.info(" ++ Qualification tests passed") return True else: log.error("Qualification tests have fail! No package created.") return False