Beispiel #1
0
 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
Beispiel #2
0
 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