Commit Graph

734 Commits (mbed-os-5.2)

Author SHA1 Message Date
ARM 6918c960c2 Prevent process pool inside of process pool when building tests 2016-11-18 12:18:49 +00:00
Brian Daniels bcf83c05dc Test spec baud_rate now set based on mbed config 2016-11-18 12:18:48 +00:00
Brian Daniels 3162e6caae Correctly casting toolchain features to a set.
Before, the get_config function was checking the equality of a set and a
list. However the list's equality depends on order, so this change casts
it to set to prevent an infinite loop.
2016-11-18 12:18:47 +00:00
Jimmy Brisson fdf77e7faa Allow dependency parsing to fail, gracefully continuing 2016-11-18 12:18:36 +00:00
Radhika 09134cd2b0 Configuration of user trim moved to targets.json 2016-11-18 12:18:29 +00:00
Radhika b531cb948c User trim added. Astyle and pylint run on code. 2016-11-18 12:18:28 +00:00
Jimmy Brisson bb9c27821f Append targets to scan list for exporting tests 2016-11-18 12:18:26 +00:00
Jimmy Brisson fc6c450d0b Add message that informs the user which hex to flash 2016-11-18 12:18:08 +00:00
Max Vilimpoc a2729c13e7 Add .hpp to list of Uvision Exporter extensions 2016-11-18 12:18:01 +00:00
Brian Daniels 2cd5403aad Ignoring args parameter for functions that don't use them 2016-11-18 12:18:00 +00:00
Brian Daniels df72f3a1f2 Fixing issue with target_cross_ide 2016-11-18 12:17:59 +00:00
Brian Daniels 9ff4f509fb Fixing use of get_repo_list in update function 2016-11-18 12:17:58 +00:00
Brian Daniels 191e989474 Correcting example, toolchain, and ide filters 2016-11-18 12:17:56 +00:00
Sarah Marsh fd80f40851 update mbed-os in selected examples 2016-11-18 12:17:55 +00:00
Sarah Marsh 6855da6b9a conditional intersection for targets 2016-11-18 12:17:53 +00:00
Sarah Marsh 3f1dce3928 Implement filtering of targets and examples. 2016-11-18 12:17:52 +00:00
Brian Daniels 8d873bf154 Adding MCU and example filter options to example test CLI 2016-11-18 12:17:51 +00:00
Brian Daniels f323545503 Adding a clone and a deploy step to allow optimizations in CI.
This adds an example clone and deploy step that allows you to modify
each top level repository before pulling in the rest of the example's
dependencies. This allows us to not pull in a copy of mbed-os for each
example in CI and instead symbolic link the already cloned copy, saving
valuable time and disk space
2016-11-18 12:17:50 +00:00
Sarah Marsh d55e739c66 Capable of testing export only to IDEs that do not have build functions 2016-11-18 12:17:44 +00:00
Brian Daniels 868dcdc211 Using Popen for uvision and unifying the structure of the build function across exporters 2016-11-08 10:44:53 +00:00
Jimmy Brisson 8a379958e5 Force make exporter to search PATH for compilers 2016-11-08 10:44:52 +00:00
sarahmarshy 93e5e235b1 Directory traversal error
Change indentation level for directory traversal, so that we only move up at the end of exporting one project for all ide/target combinations.
2016-11-08 10:44:50 +00:00
Jimmy Brisson 8f138f6d16 Quote make invocation too 2016-11-08 10:44:49 +00:00
Jimmy Brisson 9ef6986ebe Quote the shell call in mkdir and rmdir
Allows the use of bash in windows
2016-11-08 10:44:48 +00:00
Jimmy Brisson 07cb26874c Use internal class variable for resolving templates in makefiles
This allows other exporters to inherit from make and change the name of
the exporter without breaking.
2016-11-08 10:44:47 +00:00
Sarah Marsh 9cf3c5688a Exporter documentation 2016-11-08 10:44:44 +00:00
Sarah Marsh 96259cdfb6 Add boolean 'export' to examples.json.
This will determine whether the example should be exported. Additionally,
relocated export logic to examples_lib.py.
2016-11-08 10:44:24 +00:00
Sarah Marsh 21ac2431b8 Build method documentation. Removal of unused Exception classes. 2016-11-08 10:44:23 +00:00
Sarah Marsh 718d0c0185 Make ArmPackManager cache a static variable (to avoid reading index.json for each target). 2016-11-08 10:44:22 +00:00
Sarah Marsh 5e4289aef0 changing variable names and respecting requirement kwargs 2016-11-08 10:44:21 +00:00
Sarah Marsh 027f2b23cc New export-build tests.
Allows command line workflow of:
mbed import
mbed export

Also revises exporter supported target checks
2016-11-08 10:44:19 +00:00
Brian Daniels 21307015fc Fixing project.py -S printing problem
Printing too large of a string can fail in Windows, as detailed here:
https://bugs.python.org/issue11395. This works around the problem by
adding a print_large_string function that breaks up the string into
smaller pieces before printing it.
2016-11-08 10:44:17 +00:00
Brian Daniels efa90dedf0 Allowing mbed_app.json files to be discovered for tests.
Before, mbed_app.json files were explicitly ignored when building tests.
This was mostly because you could have multiple mbed_app.json files in the
tree (for instance, in test case folders) and the behavior would be
undefined. Now the tools explicitly ensure that there aren't multiple
mbed_app.json files in your source files. So auto discovery of
mbed_app.json for testing is being reintroduced.
2016-11-08 10:43:56 +00:00
jeromecoutant f6ced8690c i2c_loop tests update for STM32 2016-11-08 10:43:54 +00:00
Anna Bridge 9d7049ed94 Switch off compilation of wifi example while awaiting a fix for issue 3152 is submitted. 2016-11-08 10:43:49 +00:00
Anna Bridge dbe95cf298 Remove superfluous debugging line. 2016-11-08 10:43:48 +00:00
Anna Bridge 7801c50e42 Update ble example meta data to fix unsupported compilation combinations.
Remove URI beacon example as this is no longer required.
Add specific set of supported targets.
2016-11-08 10:43:47 +00:00
Anna Bridge 1a1c41e40d Minor review comments plus add new 'compile' option to examples json file.
Adding the new compile option allows the marking of a set of examples to
indicate whether they should be compiled or not. For the update process
examples that are not compiled will not be auto updated irrespective of
that setting.
Other changes to make return logic from some functions in update.py more
efficient and some typos in the lib file.
2016-11-08 10:43:45 +00:00
Anna Bridge 56c0a4d148 Review: Update example_lib.py to use rmtree rather than rm system call. Update examples.json to limit TLS examples to a couple of boards and only GCC_ARM and ARM compilers. 2016-11-08 10:43:44 +00:00
Anna Bridge 0665a17e91 Make update.py test compile examples prior to updating mbed-os version.
Changes:
Refactor examples.py to add a new command line option to provide an update
tag.
Refactor examples.py to add new functionality to update the version of
mbed-os in the examples to a supplied tag.
Refactor examples.py to make cloning the example repos, updating their
mbed-os version and compiling, into library functions and move to a new
library module.
Refactor the format of the examples.json file to make it compatible with
both examples.py and update.py.
Refactor update.py so that examples are test compiled prior to updating.
Refactor update.py so that only examples tagged as auto-updatable and that
fully compile are automatically updated.
2016-11-08 10:43:43 +00:00
Brian Daniels 25fa65c633 Adding Kinetis devices to mbed 2 tests and updating build_travis script 2016-11-08 10:43:38 +00:00
Mahadevan Mahesh e3561fa358 Add K64F, K22F and KL43Z to travis build
Signed-off-by: Mahadevan Mahesh <Mahesh.Mahadevan@nxp.com>
2016-11-08 10:43:36 +00:00
Brian Daniels af2116981e Updating IAR definition for the NCS36510 for IAR EW v7.8 2016-11-08 10:43:31 +00:00
Bartek Szatkowski bd3f7282c1 Handle [NOT_SUPPORTED] exception in make.py
That let us to ignore build failures for examples on not supported
platforms.
2016-11-08 10:43:09 +00:00
Brian Daniels f5493913fc Making IAR exporter build test parallelized 2016-11-08 10:43:01 +00:00
jeromecoutant ad115672a2 digital_loop tests update for STM32 2016-11-08 10:42:58 +00:00
Brian Daniels beb7ec247a Removing dependency on StringIO, only change return type of table export 2016-11-08 10:42:54 +00:00
Brian Daniels 32b4e60982 Removing need for memap to printed through toolchains 2016-11-08 10:42:53 +00:00
Brian Daniels 09a09f70b7 Handling output of parallelized test building.
This makes use of the reports generated by the building of tests to
prevent output from interleaving when the build is parallelized. This
required some changes to memap to return a generated string from
the 'generate_output' function. I also had an option to stop the prints
from memap to prevent text from interleaving
2016-11-08 10:42:52 +00:00
Brian Daniels d1eaefe688 Modifying behavior of 'silent' option in toolchains
The 'silent' option has always been present in the toolchains API, however
it did not actually stop anything from being printed. Instead, it just
changed what was added to the build log. This make the 'silent' stop all
prints, but ensures that the output for the toolchain is still preserved
and accessible via the 'get_output' function.
2016-11-08 10:42:51 +00:00