tools/test/export/build_test.py
def generate_and_build(self, clean=False):
        """
        Generate the project file and build the project
        Args:
            clean: a boolean value determining whether to remove the
                   created project files

        Returns:
            successes: a list of strings that contain the mcu, ide, test
                       properties of a successful build test
            skips: a list of strings that contain the mcu, ide, test properties
                   of a skipped test (if the ide does not support mcu)
            failures: a list of strings that contain the mcu, ide, test
                       properties of a failed build test

        """
        successes = []
        failures = []
        skips = []
        for mcu, ide in self.mcu_ide_pairs:
            for test in self.tests:
                export_location, name, src, lib = setup_project(ide, mcu,
                                                                program=test)
                test_name = Test(test).id
                try:
                    exporter = export_project(src, export_location, mcu, ide,
                                              clean=clean, name=name,
                                              libraries_paths=lib)
                    exporter.progen_build()
                    successes.append("%s::%s\t%s" % (mcu, ide, test_name))
                except FailedBuildException:
                    failures.append("%s::%s\t%s" % (mcu, ide, test_name))
                except TargetNotSupportedException:
                    skips.append("%s::%s\t%s" % (mcu, ide, test_name))

                ProgenBuildTest.handle_log_files(export_location, ide, name)
                if clean:
                    shutil.rmtree(export_location, ignore_errors=True)
        return successes, failures, skips

        Generate the project file and build the project
        Args:
            clean: a boolean value determining whether to remove the
                   created project files

        Returns:
            successes: a list of strings that contain the mcu, ide, test
                       properties of a successful build test
            skips: a list of strings that contain the mcu, ide, test properties
                   of a skipped test (if the ide does not support mcu)
            failures: a list of strings that contain the mcu, ide, test
                       properties of a failed build test

        
Generate the project file and build the project
Generate the project file and build the project
def generate_and_build(self, clean=False):
        successes = []
        failures = []
        skips = []
        for mcu, ide in self.mcu_ide_pairs:
            for test in self.tests:
                export_location, name, src, lib = setup_project(ide, mcu,
                                                                program=test)
                test_name = Test(test).id
                try:
                    exporter = export_project(src, export_location, mcu, ide,
                                              clean=clean, name=name,
                                              libraries_paths=lib)
                    exporter.progen_build()
                    successes.append("%s::%s\t%s" % (mcu, ide, test_name))
                except FailedBuildException:
                    failures.append("%s::%s\t%s" % (mcu, ide, test_name))
                except TargetNotSupportedException:
                    skips.append("%s::%s\t%s" % (mcu, ide, test_name))
                ProgenBuildTest.handle_log_files(export_location, ide, name)
                if clean:
                    shutil.rmtree(export_location, ignore_errors=True)
        return successes, failures, skips
def generate_and_build ( self , clean = False ) : successes = [ ] failures = [ ] skips = [ ] for mcu , ide in self . mcu_ide_pairs : for test in self . tests : export_location , name , src , lib = setup_project ( ide , mcu , program = test ) test_name = Test ( test ) . id try : exporter = export_project ( src , export_location , mcu , ide , clean = clean , name = name , libraries_paths = lib ) exporter . progen_build ( ) successes . append ( "%s::%s\t%s" % ( mcu , ide , test_name ) ) except FailedBuildException : failures . append ( "%s::%s\t%s" % ( mcu , ide , test_name ) ) except TargetNotSupportedException : skips . append ( "%s::%s\t%s" % ( mcu , ide , test_name ) ) ProgenBuildTest . handle_log_files ( export_location , ide , name ) if clean : shutil . rmtree ( export_location , ignore_errors = True ) return successes , failures , skips
Generate the project file and build the project
Generate the project file and build the project
"""
        Generate the project file and build the project
        Args:
            clean: a boolean value determining whether to remove the
                   created project files

        Returns:
            successes: a list of strings that contain the mcu, ide, test
                       properties of a successful build test
            skips: a list of strings that contain the mcu, ide, test properties
                   of a skipped test (if the ide does not support mcu)
            failures: a list of strings that contain the mcu, ide, test
                       properties of a failed build test

        """
a list of strings that contain the mcu, ide, test
properties of a successful build test
skips: a list of strings that contain the mcu, ide, test properties
of a skipped test (if the ide does not support mcu)
failures: a list of strings that contain the mcu, ide, test
properties of a failed build test
a list of strings that contain the mcu ide test properties of a successful build test skips : a list of strings that contain the mcu ide test properties of a skipped test ( if the ide does not support mcu ) failures : a list of strings that contain the mcu ide test properties of a failed build test
successes
self
clean
a boolean value determining whether to remove the
created project files
a boolean value determining whether to remove the created project files