Commit Graph

367 Commits (752101d041f827b62fd5ad5ee80653f4690f9f99)

Author SHA1 Message Date
Cruz Monrreal 78401ed751
Merge pull request #8896 from deepikabhavnani/stats_example
Update Statistics examples in example test json
2018-11-28 18:51:36 -06:00
Cruz Monrreal II 5ecf9a27d6 Added crypto example to examples.json 2018-11-28 15:22:19 -06:00
Deepika 66863e23ee Switch between K64F/K66F for statistics example 2018-11-28 14:02:43 -06:00
Deepika 5ff118dfce Add socket stats example 2018-11-28 13:55:34 -06:00
Senthil Ramakrishnan b1a7b45135 Add crash-reporting example to examples.json 2018-11-28 12:56:48 -06:00
Martin Kojtal c0108b1b48
Merge pull request #8863 from offirko/offir-examples-kvstore
Adding KVStore Examples for Global API
2018-11-28 13:53:51 +01:00
offirko b34de42c9b removed kvstore-class-api example 2018-11-27 14:24:56 +02:00
Oren Cohen 773ac8dd95 CR fixes 2018-11-27 09:16:45 +02:00
Jimmy Brisson c7d3523a4e Include `deliver_into` in Config mock 2018-11-27 09:16:36 +02:00
Oren Cohen dd73fa689c PSA SPM
* Intorduce PSA-SPM to mbed-os
* Add SPM tests (for PSA targets)
* Add PSA PRoT internal storage Secure implementation
* Integrate SPM into the boot proccess
* PSA manifest data generator
* Introduce PSA targets skeleton to mbed-os
* Add artifact delivery to the tools
2018-11-27 09:16:35 +02:00
Offir Kochalsky 7972092867 Added KVStore Examples for Global and Class APIs 2018-11-25 08:51:51 +02:00
Olli-Pekka Puolitaival dcafca7705 Moving some examples testing from K64F to K66F 2018-11-22 10:13:43 +02:00
Martin Kojtal 13b60c2991
Merge pull request #8673 from kegilbert/config-range-limits-dev
Add Mbed Configuration Option Range Limits
2018-11-19 13:14:02 +00:00
kegilbert c26c258c66 Update expected error message 2018-11-15 12:24:06 -06:00
kegilbert 9d9cd84942 Refactor logic to improve readability
Move JSON accepted value ranges back to JSON array
2018-11-14 18:31:59 -06:00
kegilbert 7a436660e9 Handle None and hex values in string format 2018-11-13 16:12:35 -06:00
kegilbert b53738750f Add guard against accepted and range definitions.
Minor reformat of error text on accepted value messages
2018-11-08 19:00:39 -06:00
Brian Daniels 172abc8dcb Correcting name of config test 2018-11-08 16:56:00 -06:00
Brian Daniels 06cce95b55 Fixing the recursive feature conflict config test 2018-11-08 16:56:00 -06:00
Brian Daniels 332a67a112 Moving LWIP feature to BOOTLOADER in config testing 2018-11-08 16:56:00 -06:00
Brian Daniels f9b236a0e1 Fixing tool config tests 2018-11-08 16:55:59 -06:00
Brian Daniels 74586ec2ab Re-add "fetaure_recursive_conflict" config test 2018-11-08 16:55:59 -06:00
kegilbert a834794b53 Add range specifers for config values 2018-11-08 10:18:30 -06:00
jeromecoutant 1ea28973b2 TOOLS : Add missing M33 and M33F in python scripts 2018-11-05 17:44:15 +01:00
adbridge b28d0811df Fix up subprocess calls
subprocess.call() does not by default return a status value.

Update the commands to add shell=True which forces a return value.
Also convert the commands to a single string rather than a list as
this plays more nicely with both linux and windows.

Also fix a spurious :
2018-11-01 13:07:16 +00:00
adbridge a7c777d5c1 Make examples commands return a failure
Currently the following commands in examples.py,
do_import()
do_deploy()
do_versionning()
do_clone()

all return a success status (ie 0) irrespective of any errors
originating from their sub-functions.

This PR fixes this. Now these commands will return one of:
0 - success
1 - general failure
x - failure returned by a subprocess.call function
2018-10-31 17:40:15 +00:00
Cruz Monrreal 085b5a6ca9
Merge pull request #8363 from adbridge/master
Remove mbed-os-example-client
2018-10-11 10:13:23 -05:00
Cruz Monrreal 161ca2b0ee
Merge pull request #8261 from cmonr/dont-fail-on-trailing-slash
Enabled the removal of a trailing slash
2018-10-10 14:22:27 -05:00
adbridge 322473099d Remove mbed-os-example-client
This example is now deprecated and as such needs to be removed from
ci test compilation.
2018-10-10 14:38:00 +01:00
Yossi Levy 4bb8ebf41f Adding back blockdevice example after removing it for PR #7774. Target should be K64F 2018-10-04 13:02:18 +03:00
Cruz Monrreal 786f10be68
Removed mbed-os-example-nfc-EEPROM from examples.json
Last thing blocking 5.10.1 release. Example will need to be fixed before it can be brought in.
2018-09-28 11:02:40 -05:00
Cruz Monrreal e3343a6df1
Remove block device example in the short term 2018-09-27 23:38:47 -05:00
Cruz Monrreal cbb4f852e1
Replace storage example targets from K64F to K82F
Suggested here: https://github.com/ARMmbed/mbed-os/pull/8246#issuecomment-425199620
2018-09-27 18:07:22 -05:00
Cruz Monrreal II f5e6f16307 Enabled the removal of a trailing slash when sourcing examples from examples.json 2018-09-26 14:21:10 -05:00
Cruz Monrreal d522880581
Removed trailing slashes in NFC examples URL
This apparently breaks the examples.py script.
2018-09-26 14:07:43 -05:00
Cruz Monrreal 2c870e737a
Restricted nfc example to two targets 2018-09-26 10:19:11 -05:00
adbridge 8ce2e5ac1d Add back examples updated for mbed-os-5.10
While feature changes were being added to mbed-os a number of
examples were removed from this list due to incompatibility issues.
This PR adds those examples back in:
Filesystem,
Blockdevice,
Mesh-minimal,
Bootloader.

This PR also adds in the new NFC example.
2018-09-25 15:24:30 +01:00
Olli-Pekka Puolitaival ed18665807 Fix icetea run in case that user has different boards connected same time 2018-09-14 16:29:09 +03:00
Olli-Pekka Puolitaival 1981728be9 Fix tests 2018-09-14 13:57:08 +03:00
Olli-Pekka Puolitaival cd628a77a2 Include run_icetea unittests also in pytest run 2018-09-14 13:49:41 +03:00
Martin Kojtal 1eab0723ba
Merge pull request #7745 from OPpuolitaival/icetea
Icetea support
2018-09-02 07:19:22 +02:00
Seppo Takalo 56dda01368 TEMPORARY Skip building of examples that rely on drivers. 2018-09-01 12:37:31 -05:00
Olli-Pekka Puolitaival b4822c8631 Fix typo 2018-08-31 11:55:43 +03:00
Olli-Pekka Puolitaival 449ef92b4d Update licenses 2018-08-31 11:55:43 +03:00
Olli-Pekka Puolitaival ccf4416c70 Move test_suite.json ignore in project level 2018-08-31 11:54:40 +03:00
Olli-Pekka Puolitaival e27a26eb9d Icetea support 2018-08-31 11:51:57 +03:00
Yossi Levy ff82bb8a0b Remove of mbed-os-example-mesh-minimal and mbed-os-example-bootloader from the compilation list. Those should be fixed and then set back in the example list 2018-08-29 15:09:36 +03:00
Yossi Levy ed8e170d15 Moving SD, SPIF and FLASHIAP into mbedos and refactoring features storage directory structure. 2018-08-29 12:01:11 +03:00
Oren Cohen 787317b7eb Remove uVisor from mbed-os 2018-08-22 16:36:59 +03:00
Cruz Monrreal dcd358f3e7
Merge pull request #7558 from theotherjimmy/tc-arm-v8m
Tools: Select compiler based on arch version
2018-07-26 10:27:21 -05:00
Jimmy Brisson 24df8f89bf Correct MockNotifier construction in test 2018-07-20 11:43:56 -05:00
Cruz Monrreal 4bcca894ae
Merge pull request #7061 from TTornblom/master
Tools: Include configuration in ASM
2018-07-20 08:02:44 -05:00
Jimmy Brisson 28800fbdde Fix broken tests 2018-07-16 14:12:00 -05:00
Jimmy Brisson f143019e9a Correct resources API usage in dupe test 2018-07-16 14:11:08 -05:00
Jimmy Brisson 6ca218544d Correct resources usage in tests 2018-07-16 14:11:08 -05:00
Jimmy Brisson a57942a813 Remove test about unused parameter in find_tests 2018-07-16 14:11:08 -05:00
Jimmy Brisson 9326386daf Switch to Resources in build_api and tests 2018-07-16 14:11:08 -05:00
Jimmy Brisson a9abcf1b15 Add aliases to example exporter options 2018-07-09 09:49:55 -05:00
Jimmy Brisson ed04c1b413 Add a test for MDK pro version detection 2018-06-28 10:58:52 -05:00
Jimmy Brisson c273de6545 Test and correct GCC version check 2018-06-26 09:25:33 -05:00
Jimmy Brisson 8c17a31c42 Test IAR version check 2018-06-26 09:25:21 -05:00
Jimmy Brisson c174ca3f85 Test and correct ARMCC version check 2018-06-26 09:15:01 -05:00
Jimmy Brisson 675ca1a698 Add empty configuration for asm profile test 2018-06-26 08:44:37 -05:00
Cruz Monrreal II 27d0255cb3 Sets module no longer needed to use set() 2018-06-04 09:21:43 -05:00
Cruz Monrreal II 2abae9e1d1 Modified memap path separator parsing to support Py3.
Had to remove part of test that was incompatible with Py3 on Windows.
2018-06-04 09:21:43 -05:00
Cruz Monrreal II 0e85dd821a Updated local variable in memap/parse_test.py to be lower case. 2018-05-31 16:54:58 -05:00
Cruz Monrreal II d2538bfb92 Added windows path separator to list of alphabet characters to ignore.
Corrected instance of hard-coded unix path separator.
2018-05-31 16:32:43 -05:00
Cruz Monrreal II 5cfcf86872 Modified memap tests to perform file path comparisons agnostic of the path separator. 2018-05-31 16:31:17 -05:00
Cruz Monrreal II eb49274a27 Removed test that needs to be rearchitected due to subprocess limitations 2018-05-31 16:28:43 -05:00
Cruz Monrreal d597a8b3f3
Updated blockdevice example to target only K64F 2018-05-25 15:23:26 -05:00
adbridge d5941e022c Add 2 more examples and remove deprecated one.
Removed:
mbed-os-example-fat-filesystem
Added:
mbed-os-example-error-handling
mbed-os-example-blockdevice
2018-05-25 18:35:31 +01:00
adbridge aa7f0692bd Add new examples to example list for CI.
The following examples have been added:

https://github.com/ARMmbed/mbed-os-example-thread-statistics
https://github.com/ARMmbed/mbed-os-example-sys-info
https://github.com/ARMmbed/mbed-os-example-cpu-usage
https://github.com/ARMmbed/mbed-os-example-cpu-stats
2018-05-25 17:34:02 +01:00
Martin Kojtal 54ac90fb5a
Merge pull request #7003 from adbridge/master
Add devicekey example to examples list
2018-05-25 14:01:26 +02:00
Cruz Monrreal 322c95c3a7
Limit devicekey example to only K64F
Lines up devicekey example with nvstore example
2018-05-24 17:38:02 -05:00
adbridge 5c3539c8ca Add devicekey example to examples list 2018-05-24 11:13:45 +01:00
Kevin Bracey ff32b28d1e Refill example lists - all current Ethernet boards
Remove check for LWIP - check target flagging for EMAC drivers.
Should still be DEVICE_EMAC, but tooling doesn't support that.
2018-05-23 18:40:12 +03:00
Mika Leppänen ef68eb8b4d Enabled greentea and mbed-os-example-tls/client/sockets test for STM 2018-05-23 12:24:02 +03:00
Kevin Bracey 1683ff18ba Disable Nanostack border router test
Pending Nanostack EMAC work, disable the border router.
2018-05-23 12:23:59 +03:00
Kevin Bracey 2548f1894d Restrict client and socket example tests to K64F+K66F
I would like to restrict these to devices with "device_has": "EMAC", but
the framework doesn't currently permit that.  Revisit as more drivers
are EMAC-enabled or if the framework changes.
2018-05-23 12:23:59 +03:00
Cruz Monrreal II 4ea96d982d Added explicit target for NVStore, per example readme 2018-05-15 12:48:48 -05:00
Kimmo Vaisanen b61912cbbe Build mbed-os-example-lora only for lora targets
mbed-os-example-lora should be only compiled for targets which support lora.
2018-05-11 14:45:21 +03:00
Cruz Monrreal 53d3c4344f
Merge pull request #6781 from theotherjimmy/refactor-notify
tools: Refactor notification API
2018-05-07 10:48:48 -05:00
Cruz Monrreal c52a8d6044
Merge pull request #6793 from theotherjimmy/fix-test-config-passing
tools: Pass app-config to get_config
2018-05-07 10:28:03 -05:00
adbridge cfe2676b30 Remove example update scripting from tools
The examples updating functionality has now been moved to the
mbed-release script and thus can be removed from here.
2018-05-04 13:57:18 +01:00
Jimmy Brisson 0579c7e572 Check call to get_config in test_api tests 2018-05-02 09:55:36 -05:00
Jimmy Brisson 111f086796 Create Mock notifier for use in tests 2018-05-01 09:10:59 -05:00
Cruz Monrreal b33ab748a7
Merge pull request #6540 from theotherjimmy/compile-check
Prevent compiling with unsupported compilers
2018-04-24 12:12:38 -05:00
Cruz Monrreal II 85ce95d0ff Modified error formatting to remove unicode character.
jsonschema's error.message returns either u' or ' in strings depending on the python version.
2018-04-10 15:19:34 -05:00
Jimmy Brisson c0410d7bec Add GCC_ARM support to all fake test targets 2018-04-05 10:11:51 -05:00
Cruz Monrreal cb99c280a6
Actually disabled exporters for lorawan example 2018-03-13 12:15:35 -05:00
Cruz Monrreal 1dfe716b56
Disabled exporters for lorawan example 2018-03-13 12:13:55 -05:00
Cruz Monrreal II 0ab2216803 Add lorawan and nvstore examples for testing. 2018-03-12 18:45:16 -05:00
Christopher Haster 24bb556127 tools: Removed outdated (and broken) toolchain initialization test
Also moved the access of build_dir into condition on secure in ARMC6

per theotherjimmy
2018-02-27 09:39:00 -06:00
Christopher Haster 5a108166f0 tools: Fixed small unicode issue in config tests 2018-02-26 17:08:02 -06:00
Cruz Monrreal e9fddb6eee
Merge pull request #6017 from theotherjimmy/bl-nonzero-rom
Correct auto-sizing last region of bl
2018-02-07 15:56:43 -06:00
Jimmy Brisson c52d1edd3e Test for region list sanity (sizes all >= 0) 2018-02-05 13:58:37 -06:00
Jimmy Brisson 95c7d4d47c Compare to unicode in example builder 2018-02-05 11:07:37 -06:00
Jimmy Brisson 4322bee175 Python2+3: tests passing 2018-02-05 11:04:36 -06:00
Jimmy Brisson cca4425af6 Python2+3: iteritems -> items 2018-02-05 11:04:36 -06:00
Steven Cartmell b1ea3881be Fix test errors produced by JSON schema after rebase
- Modified the expected error code in some of the test cases. The error
  message is now issued by the JSON validator.

- Stop validation code being called if no application configuration is
  given to validate.

- Change test mock code to check for specific calls, instead of number of
  calls.

- Derive absolute paths for JSON schema files before loading them, which
  seems to work better with the URI path resolution of the schema parser.
2018-02-01 17:18:41 +00:00
Jimmy Brisson c9add5c489 Check that boot loader config works in libs 2018-01-31 10:04:34 -06:00
Jimmy Brisson d94776f909 Assert that reduce depth works and parameterize over path sep 2018-01-02 14:36:10 -06:00
Jimmy Brisson 3db03a77d5 Test gcc memap parser with compiler provided .o's 2018-01-02 14:35:17 -06:00
Jimmy Brisson bfd39bdccb Test memap IAR for multiple arguments per line 2018-01-02 14:34:10 -06:00
Jimmy Brisson 527c0a2554 Rework parsing dispatch
Parsing dispatch now uses a metaclass as a Trait and a series of classes
that implement the trait for dispatching parsing. This structure gives
each parser it's own namespace, avoiding tacking on suffixes to each
attribute indicating which parser uses it.
2018-01-02 13:11:38 -06:00
adbridge 533657fa9c Add mbed-os-example-filesystem to examples list 2017-12-21 17:09:49 +00:00
David Walters faec0c3ce5 Fixed call to deprecated get_details_txt 2017-12-15 15:31:36 +00:00
Martin Kojtal d6d9afc7f2
Merge pull request #5499 from adbridge/master
Remove mbed-cloud-client-example-internal.
2017-11-16 16:11:39 +00:00
adbridge c0164d6c75 Remove mbed-cloud-client-example-internal. 2017-11-14 11:56:00 +00:00
Shrikant Tudavekar ccd82c24c8 Collect build artifacts disable cleanup
In preparation to exporter tests
2017-10-31 17:34:06 -05:00
Jimmy Brisson acb384c88a
Merge pull request #5332 from adbridge/master
Improve domain handling and status checking of updated examples.
2017-10-30 10:08:42 -05:00
Anna Bridge c7e51daf41 Combine string constants passed to 'join' function 2017-10-24 15:08:41 +01:00
Jimmy Brisson 3a2f58ebc8 Test the supported check in the ARM toolchains
They fail right now, Cores are not checked
2017-10-20 10:05:17 -05:00
adbridge bb579dcfaf Improve domain handling and status checking of updated examples.
All the examples cloned from Mercurial should use the new
os.mbed.com domain. Thus update corrects that.

A new option has been added to the update.py script , -s which shows
the status of any PRs raised against the examples that are tagged with
the current release label.
2017-10-17 18:18:21 +01:00
Jimmy Brisson 299af9742d Merge pull request #5247 from kegilbert/example-build-profile-arg
Add profile argument to mbed-os example build tools
2017-10-13 09:24:04 -05:00
Jimmy Brisson 5c8ef54e2f Merge pull request #5224 from adbridge/master
Fix branch updates and make Linux compatible
2017-10-13 09:22:59 -05:00
Jimmy Brisson 0fd13b5288 Merge pull request #5240 from studavekar/retry-on-clone-failure
Add retry to handle git clone failure
2017-10-05 11:15:41 -05:00
Jimmy Brisson 23d201cb21 Merge pull request #5237 from 0xc0170/fix_examples_eddy
examples: remove eddystone ble examples
2017-10-05 11:15:14 -05:00
Jimmy Brisson da78647c1d Merge pull request #5077 from dhwalters423/dhwalters423-add-detect-info
Added interface version information to mbed detect command.
2017-10-05 11:11:33 -05:00
Kevin Gilbert f8fa90209e Remove -p as an argument flag for profile 2017-10-03 16:14:07 -05:00
Kevin Gilbert 310f833f52 Add profile argument to mbed-os example build tools to allow non-default build profiles to be passed in 2017-10-03 15:24:29 -05:00
Shrikant Tudavekar cdd29b87a5 Add retry to handle git clone failure
more info on https://github.com/ARMmbed/mbed-os/issues/5239
2017-10-02 14:39:24 -05:00
Martin Kojtal e6b1ef508e examples: remove eddystone ble examples
They are not part of the releases
2017-10-02 15:37:52 +01:00
adbridge 31407a17ca Move to using command strings rather than command lists.
Previously the script used
cmd =['git','checkout', branch]
syntax. This does not work well cross platform. The solution it to
actually use strings. E.g.
cmd = "git checkout " + branch
2017-09-29 16:17:33 +01:00
David Walters 61f46b809d Changed type => test_type 2017-09-29 15:34:32 +01:00
David Walters bb79f6991b Minor copy edits, added comment 2017-09-29 10:12:02 +01:00
David Walters a047f6276d Increased test coverage / mocking of external modules 2017-09-29 10:05:05 +01:00
adbridge d2d2b68fc5 Fix the prepare_branch function
Currently when checking if the destination branch already exists the
command 'git branch' is used. This only returns local branches. What is
actually required is the list of remote branches. This can be obtained
by the command 'git branch -r' and filtering the result.
2017-09-27 17:59:19 +01:00
Jimmy Brisson ef6de7eb3b Check for flag passing in toolchain constructor 2017-09-26 08:58:59 -05:00
David Walters 4c2d17eee0 Removing unused imports/update copywright` 2017-09-25 16:58:52 +01:00
David Walters b887bb7de6 Added safety check, added test converage for new function 2017-09-25 16:53:41 +01:00
Jimmy Brisson 4de448142b Merge pull request #5125 from theotherjimmy/improve-memap-performance
Refactor memap for speed
2017-09-21 11:40:41 -05:00
Jimmy Brisson 3d5bea337f Test the module_add function 2017-09-20 10:49:12 -05:00
Jimmy Brisson 06203c4fcc Test GCC memap parser 2017-09-20 10:39:42 -05:00
Jimmy Brisson bcd89dae18 Test memap parsing for ARMC6 and IAR 2017-09-19 15:14:43 -05:00
Jimmy Brisson faa3375397 Mock supported_toolchains values in tests 2017-09-15 17:59:46 -05:00
Shrikant Tudavekar fec2346627 add ARMC6 in supported compiler 2017-09-12 15:31:50 -05:00
Jimmy Brisson 9d0e8abb11 Rename and simplify config test target names 2017-09-05 15:21:08 -05:00
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