Commit Graph

530 Commits (9e1444f88d7be73c6d8275881dfc014ee9e9f135)

Author SHA1 Message Date
Saheer 91fa6801f8 travis ci migration to github action 2021-08-11 11:02:06 +01:00
Jaeden Amero 45a8826ee2 icetea: Remove icetea TEST_APPS
icetea was intended to be deprecated in Mbed 6. icetea is no longer
maintained. Remove icetea-specific TEST_APPS and run_icetea tests from
Mbed OS.
2021-07-15 16:07:20 +01:00
saheerb bf84452c60 enable google and azure example application tests in ci 2021-07-05 20:30:35 +01:00
saheerb 5d11a1e350 run example-tls on faster K64F board (than K66F) 2021-06-17 09:43:53 +01:00
Chris Swinchatt 053eb24ab0 Fix 'netsocket: several dynamic allocation results not checked' (#14210)
Incorporates PR #14223 + changes required for spellchecker
2021-06-07 14:54:37 +01:00
Saheer Babu 9b1947c332 enable aws example test in CI 2021-05-17 13:07:01 +01:00
Saheer Babu 6776473879 remove cmake specific example list 2021-04-28 13:54:12 +01:00
Saheer Babu 9bd4d24104 create symbolic links for all sub examples which has mbed-os.lib. 2021-04-26 10:07:28 +01:00
Saheer Babu a62cd220dd disable test for example-device-key 2021-04-15 12:58:21 +01:00
Saheer Babu aa2a067c0d update cmake_examples to latest CI passing list 2021-04-15 11:18:28 +01:00
Martin Kojtal a3be10c976
Merge pull request #14541 from LDong-Arm/crash-reporting-baud
Increase baud rate of mbed-os-example-crash-reporting to 115200
2021-04-14 20:16:32 +02:00
Jaeden Amero f02fbaa061 examples: Deprecate mbed-os-example-bootloader
We no longer support the mbed-os-example-bootloader example.
2021-04-14 11:57:14 +01:00
Lingkai Dong b5893bebbb Increase baud rate of mbed-os-example-crash-reporting to 115200
At 9600 baud, a large part of the serial output of the crash reporting
example is missing on CI boards, causing the example test to fail. At
a higher serial speed (115200 baud), the entire output is intact.

This is in alignment with ARMmbed/mbed-os-example-crash-reporting#65.

Fixes #14535
2021-04-13 16:10:39 +01:00
Lingkai Dong e6610bd111 Use only NUCLEO_F401RE for the NFC examples
The repository mbed-os-example-nfc contains two examples: NFC_EEPROM
and NFC_SmartPoster. According to their respective `mbed_app.json`,
only NUCLEO_F401RE supports both examples, so we limit the compilation
test to this target only.

Compilation with an unsupported target fails (as expected) with Mbed
CLI 2 which enforces a check on a target's availability of the
required NFC controller. Mbed CLI 1 lacks such check and always
compiles.

Fixes ARMmbed/mbed-os-example-nfc#106
2021-04-09 10:38:01 +01:00
Saheer Babu d5dcc4da72 Update cmake supported example list.
Create cmake supported cloud example list.
2021-03-25 17:21:32 +00:00
Saheer Babu 51d3afe04a example-psa - add MUSCA_S1 and update baudrate 2021-02-05 14:46:09 +00:00
paul.szczepanek@arm.com 497504dde1 remove deprecated examples 2021-01-07 14:10:03 +00:00
Saheer Babu 34f5efa184 examples:create build_data after example application build 2020-12-17 10:53:05 +00:00
Vikas Katariya 8b70ae1d83 docs: Update to reflect Mbed CLI 2 changes
Due to the recent release of Mbed CLI 2, the command line options
have been renamed to ensure good usability and harmonize with the old
tools.

These are the following changes done:
* Minimum Cmake - 3.19.0 is required
* Minimum Mbed-tools - 4.0.0 is required
* mbed-tools cmd `init` to `new`
* mbed-tools cmd `build` to `compile`
* Removed whitespaces
2020-12-01 14:57:24 +00:00
Martin Kojtal a937a43edb
Merge pull request #13891 from ARMmbed/examples
Remove nanostack border router from examples list
2020-11-12 08:49:58 +00:00
Martin Kojtal afb37068ea
Merge pull request #13847 from harmut01/pbl_scancode_fix
Add workaround for files with permissive binary licenses
2020-11-10 16:38:38 +00:00
adbridge 3cdc0f4b3d Remove nanostack border router from examples list
nanostack border router is now owned by ISG and has been moved
out of ARMmbed and into their organisation. ISG will be
responsible for updating and testing this example going forward.
2020-11-10 11:52:47 +00:00
Qinghao Shi 776ad7aa90 TEST: update cmake example on ble examples 2020-11-09 15:39:29 +00:00
Qinghao Shi bf552af039 TEST: use mbed-tools build wrapper replace cmake build commands 2020-11-06 17:25:23 +00:00
Qinghao Shi 3558a7aa0e restrict BLE example only build BLE_LED 2020-11-06 17:25:23 +00:00
Qinghao Shi c391accc1b TEST: fix a bug on example scripts 2020-11-06 17:25:23 +00:00
Qinghao Shi 411ea55716 TEST: add BLE example to cmake example json 2020-11-06 17:25:23 +00:00
Qinghao Shi 2d67c670b8 TEST: update example scripts for cmake 2020-11-06 17:25:23 +00:00
Harrison Mutai e93a3e2beb Refactor workaround for scancode evaluation of PBL
Add function "has_binary_license" to check if a file has a
non-permissive license contains one. PBL is not recognized by scancode,
causing it to be flagged as a non-permissive license. CI doesn't allow
any non-permissive licenses, although, files flageed as SPDX are
allowed. Workaround causes all files with a valid PBL to be flagged as
missing an SPDX.

Add condition in "has_spdx_text_in_scancode_output" to ignore any spdx
identifier with "unknown" in the name. Scancode erroneously matches PBL
to matched_rule.identifer "spdx-license-identifier: unknown-spdx". This
prevents the workaround from working.
2020-11-06 16:23:57 +00:00
Harrison Mutai d085e9f1ed Add workaround for files with permissive binary licenses
Add function "has_binary_license" to check if a file has a non-permissive license contains one. PBL is not recognized by scancode,
causing it to be flagged as a non-permissive license. CI doesn't allow
any non-permissive licenses, although, files flageed as SPDX are
allowed. Workaround causes all files with a valid PBL to be flagged as
missing an SPDX.

Add condition in "has_spdx_text_in_scancode_output" to ignore any spdx
identifier with "unknown" in the name. Scancode erroneously matches PBL to matched_rule.identifer "spdx-license-identifier: unknown-spdx". This prevents the workaround from working.
2020-11-04 11:26:23 +00:00
Paul Szczeanek 440aea67c5 fix ble exemple names 2020-10-28 16:32:38 +00:00
Paul Szczeanek 6427b2ab84 remove missing examples 2020-10-23 16:17:56 +01:00
Martin Kojtal c6997bcb9d
Merge pull request #13771 from saheerb/split_examples
Separate cloud example configurations to another file
2020-10-19 15:53:48 +01:00
Martin Kojtal 61d88dd617 scancode: fix SPDX check - only warning
SPDX are not yet done in our codebase. We suggest them to be present but 3rd party
drivers have not yet been updated. The check as it was causes problems when updating
3rd party drivers (red flags in the PR).

Proper fix will be to clean up SPDX id in the codebase.
2020-10-19 11:01:11 +01:00
Saheer Babu e3857b2431 update cloud-example config 2020-10-16 11:22:03 +01:00
Saheer Babu ae18f4434a separate cloud examples from examples.json 2020-10-16 11:13:08 +01:00
Hugues Kamba 4ce6c8ac62 Scancode: Fix false positive reported by scancode output analyser script
ScanCode can possibly return many licenses found for a single file scanned.
This commit ensures that the file is not reported as lacking a permissive license
if at least one license found in it is permissive.
Previously the script was reporting an issue if it found at least one license
in a file that was not permissive.

Additionally catch more errors and provide specific details about failures.
Provide unitest.
2020-10-15 17:33:56 +01:00
Harrison Mutai 6fa88f4247 Fix false positive error in script checking license notices
Remove code block from license_check that evalutes whether a files
licenses are permissive and that there is a SPDX notice. Scancode
sometimes incorrectly attributes a single license notice to permissive
and non-permissive licenses. Removed code block results in many false
positives because it labels any file that has a "non-permissive" license
as such even when there is a permissive license.

Add function spdx_check to scancode-evaluate.py to improve analysis of
copyright and license notice tests.
2020-10-15 17:32:56 +01:00
Harrison Mutai e6c31514c6 Add unit test for script that checks copyright and license notice
Add unit test and dependent stubs for testing of scancode-evaluate.py.
license_check takes a JSON as argument and checks for source missing
copyright or license notices.

Each JSON represents a separate test case, and stubs are added for test case
3 and 4 where license_check looks for an spdx notice in the source file.
2020-10-15 17:32:56 +01:00
Lingkai Dong a3c3808c5e Use NUCLEO_F429ZI for Azure IoT Hub and Google IoT Core examples 2020-10-08 16:50:13 +01:00
Anna Bridge 2691b4e700
Merge pull request #13592 from rajkan01/update_examples_azure_google_cloud
Add test examples.json config for Azure and Google Cloud
2020-09-11 12:20:43 +01:00
Rajkumar Kanagaraj 74536e7fb3 Add test examples.json config for Azure and Google Cloud 2020-09-10 14:31:49 +01:00
Qinghao Shi d86a97b21c TEST: update example script update function 2020-09-10 13:06:39 +01:00
Qinghao Shi e9e53e4ba3 TEST: change to overwrite instead of remove 2020-09-09 18:38:05 +01:00
Qinghao Shi f1e885f491 TEST: add a cmake option in example testing script 2020-09-09 18:26:17 +01:00
Qinghao Shi a7b2ad89a3 TEST: remove MUSCA_B1 from attestation example test 2020-09-03 14:35:05 +01:00
Rajkumar Kanagaraj abdee9267c Update test examples.json aws config to refer renamed mbed-os-example-for-aws repo 2020-09-02 15:01:02 +01:00
Anna Bridge 4ba1a5433f
Merge pull request #13433 from LDong-Arm/refactor_device_key
Refactor device_key
2020-08-24 12:56:10 +01:00
Martin Kojtal 08ef04d027
Merge pull request #13468 from urutva/add-ccache-to-travis
Add ccache to travis
2020-08-24 08:47:27 +01:00
Martin Kojtal 7829238c61
Merge pull request #13469 from LDong-Arm/spellignore
Support ignore list for spell checks
2020-08-21 14:29:33 +01:00