Commit Graph

129 Commits (399b6acfb1089d8cc55a399dfa3905b199d03ada)

Author SHA1 Message Date
Jimmy Brisson 399b6acfb1 Clean up json
Wipe out all blank lines in json:
  find tools/test -name 'test_data.json' | xargs sed -i -e '/^$/d'
Move all start braces back a space:
  find tools/test -name 'test_data.json' | xargs sed -i -e "s/^ {/{/"
2017-09-05 14:39:48 -05:00
Jimmy Brisson 4a937fe15e Linting and correcting comments 2017-09-05 13:30:16 -05:00
Jimmy Brisson a2bcae0b7a Rework test_api testing and fix a bug
Bug was found by the new tests
2017-08-28 15:40:35 -05:00
Jimmy Brisson 817eb5ab05 Unify configuration testing and the travis command 2017-08-28 15:10:50 -05:00
Jimmy Brisson de9f9dd3a2 Convert memap tests to pytest style 2017-08-28 13:52:28 -05:00
Jimmy Brisson 177fb7933d Rework config_test to use py.test 2017-08-28 12:27:09 -05:00
Marcelo Salazar 7053ef9412 memap enhancements with depth level configurable
Removed heap/stack from report
Add --stats-depth option to mbed compile
Fix minor issues identified in review
Fix bug when parsing armcc libs
Fix code style
Fix minor issues on existing tests
Fix memap for automated TESTS
Fix stats-depth parameter for tests
2017-08-06 10:30:04 +01:00
Jimmy Brisson ca0c2a8d92 Correct supported check in exporter tests 2017-08-01 09:52:57 -05:00
Jimmy Brisson 18b1cb6c11 Merge pull request #4531 from adbridge/update
Update branching option to branch from another branch.
2017-06-29 11:05:17 -05:00
Andrew Leech 4491d2e3f7 Prevent modifying existing targets.
A warning will be printed if it is attempted.
2017-06-21 22:17:58 +10:00
Andrew Leech 6bd55a16fe Add basic unit tests for custom_targets.json handling 2017-06-21 22:17:57 +10:00
adbridge d1f3eb6ba6 Added template file for PR commit message plus minor review changes 2017-06-21 11:50:14 +01:00
adbridge b4ac0d048d Remove remaining use of args.tag and replace with tag obtained from
config file
2017-06-13 17:31:10 +01:00
adbridge 108250d24a Update branching option to branch from another branch.
Previously if updating a branch in the ARMmbed version of an example
repo, the branch would be created initially from master. This update
allows the new branch to be created by any pre-existing branch.
This update also moves the branch / fork / tag configuration data to the
json config file. It thus simplifies the command line.
-b on its own now indicates use the branch information in the config
-f on its own now indicates use the fork information in the config
2017-06-12 17:57:01 +01:00
Brian Daniels fd4cd43043 Enable verbose builds when running example build tests 2017-06-12 11:25:01 -05:00
Martin Kojtal 13334105e4 Merge pull request #4448 from sg-/add-cell-example
Add mbed-os-example-cellular to release data
2017-06-10 08:29:18 +01:00
Sam Grove 0013b4afa5 Add mbed-os-eample-cellular to release data 2017-06-09 15:18:04 +01:00
Jimmy Brisson ad5608c9e6 Fix a typo in test code
I goofed on spelling (swapped two letters). Whoops.
2017-06-05 15:46:42 -05:00
Jimmy Brisson d8caee9077 Disallow building of mbed OS 2 + rtos 2017-06-01 13:16:03 -05:00
Sam Grove 704ffd7010 Merge pull request #4331 from theotherjimmy/depend-on-profile
Have objects depend on their respective compiler invocations
2017-05-26 17:06:23 -05:00
Brian Daniels 3966139cd7 Allowing examples to specify which repo source to use for testing.
They can pick from either the mbed developer site or the GitHub
repository.
2017-05-24 11:10:49 -05:00
Jimmy Brisson 7b04a52a46 Mock the function I just added in testing 2017-05-19 16:30:49 -05:00
Jimmy Brisson 2821fd548f Mock config in toolchain tests 2017-05-12 14:04:08 -05:00
Jimmy Brisson 7f0ed3b40b Merge pull request #4136 from theotherjimmy/bootlader-exists
Error when bootloader is specified but does not exist
2017-05-02 11:34:30 -05:00
Jimmy Brisson 0b5b6cba71 Merge pull request #4093 from adbridge/update
Update.py: New feature - update a branch instead of a fork, plus general improvements.
2017-04-24 11:01:20 -05:00
Martin Kojtal ea53150d35 test - add nanostack to examples.json file 2017-04-21 13:10:45 +01:00
adbridge 9ea605bb98 Update.py: Tidy up Fn headers, make logger work globally
The function headers have been updated to follow the standard format
that should be being used for tools in mbed. This is a one line summary
followed by a descriptive block with more detail.
Updated the handling of the main function so that the logger becomes
global and thus works across all the functions. This has been tested
with both the fork and branch options, and for levels INFO and DEBUG.
2017-04-21 11:08:58 +01:00
Jimmy Brisson 8048ec3b66 Add a config test to check for failing bootloader images 2017-04-20 14:32:17 -05:00
Anna Bridge a1d1a6037c Merge pull request #3888 from 0xc0170/fix_add_examples
tools: add new examples
2017-04-20 15:38:02 +01:00
Jimmy Brisson 6a646eb4b2 Allow configuration of artifact name in app config 2017-04-04 14:36:01 -05:00
0xc0170 137e47f5e8 tools: add new examples
Bootloader, bootloader blinky and fat filesystem examples added.
2017-03-29 17:27:11 +01:00
Anna Bridge 6850ff06b9 Updated script to add an extra feature and general improvements.
Added the ability to specify a branch to update rather than a fork
Replaced print commands with the use of a logger
Updated the run_cmd functions in line with previous improvements
2017-03-16 16:59:11 +00:00
Anna Bridge ae10ca8787 Merge pull request #3895 from theotherjimmy/find-exec-in-path
Use PATH env variable when gcc found in PATH
2017-03-14 14:41:32 +00:00
Jimmy Brisson 4408c01522 Add unit test for gcc path specifications 2017-03-07 11:41:56 -06:00
Jimmy Brisson fbb6f71be8 Ignore build directory from scan resources
This is a bug fix for the following bug (Github issue #437):

If two builds were run specifying a non-default build folder, the second
build would fail to link with duplicate symbols and may not fit on the
device. The root of this problem is that these non-default build folders
are not ignored by scan-resources, and therefore included in the build.

We fix this bug by ignoring the build directory passed into the tools.
2017-03-06 17:10:57 -06:00
Jimmy Brisson 9a63bfb1fb Enable boot-loader builds
To enable a boot-loader style application, override
"targets.bootloader_exec" or "targets.restrict_size" on a particular
target. These parameters are a bin or hex file, and an integer, in bytes,
respectively. If either override is present, then an application region
is created after the boot-loader region, when "targets.bootloader_exec"
is present, and before post-application, when "targets.restric_size" is
present. The size of the boot-loader region is read from the file
provided in the configuration.
2017-02-22 18:20:26 -06:00
Sam Grove 942cf8cbf0 Merge pull request #3702 from bridadan/remove_old_directories
Remove old tool directories
2017-02-09 09:39:25 -06:00
Russ Butler 32b9ada3ec Enforce device_name is valid in targets.json
Add a CI test ensure that device_name exists inside the pack index.
2017-02-08 14:54:26 -06:00
Brian Daniels 17cbbe3748 Remove old exporter tests 2017-02-06 10:53:46 -06:00
Anna Bridge b8e80d8867 Merge pull request #3528 from adbridge/master
Modify update command to directly edit the mbed-os.lib files for each example
2017-01-12 16:00:29 +00:00
Anna Bridge fb27b649c5 Review comments: Use os.rename rather that system mv command.
In prepare_fork(), change nested IF to neat command loop.
2017-01-09 17:56:20 +00:00
Jimmy Brisson dacdbdcfe4 Remove deprecated clean argument 2017-01-05 17:16:00 -06:00
Anna Bridge 01c39629fe Modify update command to directly edit the mbed-os.lib files for each
example specified in the supplied .json file, in a user specified fork.
A pull request is then made from each fork to the ARMmbed master repo.

New usage:
python update.py <args>
Where <args> are:
  [-c <file.json>] optional argument for example list, default
                   example.json
  -U <github user with forked repos>
  -T <github authorisation token>
  tag
2017-01-05 12:11:55 +00:00
Brian Daniels 134d7743c3 Correctly filtering examples in test script.
If an example's GitHub repository contains multiple child examples, the
script was incorrectly filtering out all the child examples when
compiling and exporting. This patch now handles this case correctly.
2016-12-15 14:16:12 -06:00
Jimmy Brisson 569808578a Enabled example exporting Filter ides by toolchains 2016-12-05 13:43:55 -06:00
Mohammad Azim Khan 2ad2c309bc Removing target EFM32GG_STK3700 from uvisor examples 2016-11-23 15:22:31 +00:00
Mohammad Azim Khan 0b0db77a6e Removing target EFM32GG_STK3700 from uvisor examples 2016-11-23 14:00:03 +00:00
Mohammad Azim Khan e8048baa40 Added examples uvisor-thread and uvisor-number-store 2016-11-21 17:12:52 +00:00
Brian Daniels 119857ac77 Ignoring args parameter for functions that don't use them 2016-11-08 13:41:40 -06:00
Brian Daniels f1bb3f5930 Fixing issue with target_cross_ide 2016-11-08 12:51:38 -06:00