def test_compile_with_defines(self, defines): extra_hwdef_filepath = "/tmp/extra.hwdef" self.write_defines_to_file(defines, extra_hwdef_filepath) util.waf_configure( self.board(), extra_hwdef=extra_hwdef_filepath, ) for t in self.build_targets(): try: util.run_cmd([util.relwaf(), t]) except Exception: print("Failed to build (%s) with things disabled" % (t, )) raise
def test_compile_with_defines(defines): extra_hwdef_filepath = "/tmp/extra.hwdef" write_defines_to_file(defines, extra_hwdef_filepath) util.waf_configure( "CubeOrange", extra_hwdef=extra_hwdef_filepath, ) for t in 'copter', 'plane', 'rover', 'antennatracker', 'sub', 'blimp': try: util.waf_build(t) except Exception: print("Failed to build (%s) with everything disabled" % (t, )) raise
def test_feature(feature, options): defines = get_defines(feature, options) extra_hwdef_filepath = "/tmp/extra.hwdef" write_defines_to_file(defines, extra_hwdef_filepath) util.waf_configure( "CubeOrange", extra_hwdef=extra_hwdef_filepath, ) for t in 'copter', 'plane', 'rover', 'antennatracker', 'sub', 'blimp': try: util.waf_build(t) except Exception: print("Failed to build (%s) with (%s) disabled" % (t, feature.label)) raise
def test_compile_with_defines(self, defines): extra_hwdef_filepath = "/tmp/extra.hwdef" self.write_defines_to_file(defines, extra_hwdef_filepath) if self.extra_hwdef is not None: content = open(self.extra_hwdef, "r").read() with open(extra_hwdef_filepath, "a") as f: f.write(content) util.waf_configure( self.board(), extra_hwdef=extra_hwdef_filepath, ) for t in self.build_targets: try: util.run_cmd([util.relwaf(), t]) except Exception: print("Failed to build (%s) with things disabled" % (t, )) raise