Commit Graph

6077 Commits (0549b1e7c5f9db5abb1ecda7a1ebeb43f4aad19c)

Author SHA1 Message Date
Brian Daniels 6dbc9601f8 Reflecting build failures in the status code of the process 2016-05-26 09:20:24 -05:00
Brian Daniels 7a627b3fdd Allowing test builds to continue if one test build fails
This ensures that a build report is produced, even if a build fails. This
allows you to see what went wrong later.
2016-05-26 09:10:17 -05:00
Anna Bridge d230a6255e Updated Unity lib file in mbed-os to pick up the latest Unity library
(v3.0.0)
2016-05-26 13:59:07 +01:00
Martin Kojtal c71e81b371 Merge pull request #122 from bridadan/test-script-macros
Adding macro option to test.py script
2016-05-26 13:12:01 +01:00
Martin Kojtal 17e577011e Circle - add building tests for k64f 2016-05-26 11:43:01 +01:00
Martin Kojtal 12deb259c7 Merge pull request #142 from 0xc0170/fix_config_tests
Config store - revert to working sha
2016-05-26 11:28:12 +01:00
Devaraj Ranganna 506d63e8b7 Incrase netif_up semaphore timeout from 1500ms to 2500ms 2016-05-26 11:18:45 +01:00
Martin Kojtal f91b40ed43 Config store - revert to working sha
The commit 14e235ae46 broke tests (config store does not compile anymore).
2016-05-26 10:57:40 +01:00
Christopher Haster 753720af56 Fixed ambigous function declarations in serial class
Caused by default argument and overly generalized templated types.

SerialBase::attach(T *obj, M method, IrqType type=RxIrq)
->
SerialBase::attach(T *obj, void (T::*method)(), IrqType type=RxIrq)
SerialBase::attach(T *obj, void (*method)(T*), IrqType type=RxIrq)
2016-05-25 15:24:54 -05:00
Christopher Haster 7c7d514000 Added callback null check for each template class
per @c1728p9 #131
2016-05-25 14:48:12 -05:00
Anna Bridge 706e5a0473 Fix ARMCC compiler warning: Missing arg type. 2016-05-25 15:48:29 +01:00
Martin Kojtal 9615763490 Merge pull request #134 from c1728p9/master
Fix atmel-rf-driver to use mirror repo SHA
2016-05-25 15:12:54 +01:00
Russ Butler a4355ce81a Fix atmel-rf-driver to use mirror repo SHA
The atmel-rf-driver-mirror repo is pointing to a SHA in the
atmel-rf-driver repo.  This prevents mbed-os from building.
This patch updates atmel-rf-driver.lib to point to the correct
SHA.
2016-05-25 09:01:48 -05:00
Martin Kojtal bfe4c20e4b Merge pull request #130 from bridadan/default-parallel-test-build
Defaulting to parallel builds for tests
2016-05-25 13:53:30 +01:00
Martin Kojtal a386819bf7 Merge pull request #131 from c1728p9/fix_serial_callbacks
Update Callback to fix fault in serial interrupts
2016-05-25 07:56:19 +01:00
Martin Kojtal 7ed00a0e62 Merge pull request #123 from c1728p9/iar_support
Add IAR support
2016-05-25 07:43:16 +01:00
Russ Butler e37e1da7b9 Update Callback to fix fault in serial interrupts
Update the Callback class to handle a NULL thunk by returning 0
rather than trying to call the thunk.  This fixes a crash that occurs
on some targets when the TX uart handler is not attached.

Background:
The K64F HAL uart implementation calls the TX interrupt handler
every time a uart interrupt occurs while the TX register is empty.
It does not check to see if the TX interrupt has been enabled.
This means that the TX interrupt can and typically does get
run on RX events.  This causes a crash with the newer callback
code which did not (prior to this patch) support a NULL thunk.
2016-05-24 17:18:11 -05:00
Brian Daniels c29f66e851 Defaulting to parallel builds for tests 2016-05-24 16:44:42 -05:00
Russ Butler 14e235ae46 Update libraries for IAR support
Pull up on libraries so they support IAR.
2016-05-24 14:38:34 -05:00
Russ Butler 960941cb0a Add IAR support
Make the following changes for IAR support:
-define __deprecated_message for IAR
-fix python error in iar.py
-move variable length array in buffered serial from cpp file to c file.
    IAR only supports variable length arrays in c.
2016-05-24 14:37:14 -05:00
Brian Daniels d676b19105 Adding macro option to test.py script 2016-05-24 09:10:37 -05:00
Bogdan Marinescu 8a6e9c3a26 Merge pull request #98 from ARMmbed/json_targets
Moved target definitions to JSON format
2016-05-24 12:58:59 +03:00
Martin Kojtal 839fa5a70e Merge pull request #124 from stephenkyle-ARM/master
Add missing pyelftools to requirements.
2016-05-24 10:26:03 +01:00
Stephen Kyle 8ace7a4283 Added missing pyelftools to setup.py 2016-05-24 10:16:26 +01:00
Stephen Kyle 36624a5ecc Add missing pyelftools to requirements. 2016-05-24 09:39:17 +01:00
Sam Grove 42624d06af Merge pull request #89 from bridadan/test-build-reporting
Test build reporting
2016-05-24 08:18:25 +08:00
Sam Grove 61fb65b7fd Merge pull request #90 from bridadan/split-uploads
Upload test result script update
2016-05-24 08:18:10 +08:00
Brian Daniels 40cc3eef9e Splitting the upload of tests.
Added a parameter '-l' to control how many project runs are uploaded at a
time. The default is 1000. The prevents HTTP errors when the POST request
is too large.
2016-05-23 10:51:52 -05:00
Brian Daniels bc86aa92a0 Adding JUnit build reporting option to test.py 2016-05-23 10:50:22 -05:00
Brian Daniels ec2e4a1d6a Adding default id for the build report if no id is provided 2016-05-23 10:50:21 -05:00
Sam Grove 6c3ce1ea64 Merge pull request #112 from SeppoTakalo/master
Implement the .mbedignore functionality.
2016-05-23 23:30:44 +08:00
Bogdan Marinescu 5e5e1568be Fixed description on 'default_toolchain' in the documentation 2016-05-23 17:37:09 +03:00
Sam Grove 20a80cd0da Merge pull request #109 from adbridge/utest_tests
Port utest unit tests from Yotta / Minar based environment to Morpheus /
2016-05-23 17:01:29 +08:00
Sam Grove 59f5751b6d Merge pull request #113 from theotherjimmy/error-bad-source
added a check for existance of sources
2016-05-20 16:40:52 -05:00
Sam Grove 23d77e4423 Merge pull request #97 from geky/compiler-polyfill
Add useful attributes supported by supported compilers
2016-05-20 16:16:23 -05:00
Sam Grove 02a23c22ad Merge pull request #103 from geky/esp8266-non-blocking
Add non-blocking support to ESP8266Interface
2016-05-20 16:03:40 -05:00
Sam Grove c4ed177930 Merge pull request #68 from 0xc0170/dev_gcc_sizes
gcc - print section sizes
2016-05-20 15:49:28 -05:00
Sam Grove 373fb55441 Merge pull request #114 from c1728p9/iar_vla
Turn on variable length arrays in C for IAR
2016-05-20 15:36:21 -05:00
Sam Grove 3fe60fdf1b Merge pull request #118 from c1728p9/map_file
Create map file when building
2016-05-20 15:35:33 -05:00
Bogdan Marinescu cdfa46c790 Fixes to the new targets code
It is now possible to remove a macro using "_remove" for both macros
without vale (MACRO) and macros with value (MACRO=VALUE) simply by
specifying the macro name.
2016-05-20 17:27:43 +03:00
Bogdan Marinescu 1467a7c6a2 Merge pull request #116 from simonqhughes/master
Resubmission of https://github.com/ARMmbed/mbed-os/pull/92 but with SHA's in .lib files
2016-05-20 14:18:08 +03:00
Simon Hughes d4bd394330 Updating SHA's in configuration-store.lib and flash-abstraction.lib 2016-05-20 10:54:09 +01:00
Russ Butler c4986eed9f Create map file when building
Add compiler flags to ARM, GCC and IAR so map files get created.
2016-05-19 15:52:02 -05:00
Anna Bridge 15e372f6ef Review comment:
Removed superfluous debug prints from harness.cpp.
2016-05-19 16:56:01 +01:00
Anna Bridge 710421d3e8 Code review rework:
Updated include files within tests to use subdirectory/header.h
Updated global variables within tests to be static
Fixed indentation issue.
Renamed Timeout class variables to be more meaningful
Moved definition of utest_trace into stack_trace.cpp
Removed unecessary call to .clear() method in utest_add_to_trace()
Changed UTEST_LOG_FUNCTION macro to UTEST_LOG_FUNCTION();
2016-05-19 16:56:00 +01:00
Anna Bridge 4cd34b1235 Port utest unit tests from Yotta / Minar based environment to Morpheus /
us ticker based environment
2016-05-19 16:51:00 +01:00
Marcus Shawcroft 720e8e77d0 Merge pull request #110 from c1728p9/client_update
Update mbed-client repos
2016-05-19 13:38:18 +01:00
Russ Butler 080f9e2371 Turn on variable length arrays in C for IAR
Turn on support for variable length arrays for the IAR C compiler.
This provides greater compatibility with GCC and ARMCC.

Note: The current version of iccarm at the time of this patch
(V7.40.3.8902) does not support variable length arrays in C++.
2016-05-18 19:58:46 -05:00
Jimmy Brisson f44b8fc9bf added a check for existance of sources
I ran into this earlier today and yesterday:
If you spelled something wrong/forgot to tab complete and had build succesfully before it woild silently and incorrectly build successfully
2016-05-18 17:28:33 -05:00
Seppo Takalo 3d3b0a771f Implement the .mbedignore functionality.
Check the content of `.mbedignore` files and try to match the file
patterns against the directories and source files found while travelling
the directory structure.

Every line in `.mbedignore` file is treated as a unix style glob pattern.
Before matching, the pattern is appended with its directory location, so
it will match only folder on same level, or deeper in the directory structure.

For example:
Directory ./source/test contains .mbedignore with content:
`unittest/*`

Then everything under ./source/test/unittest/ is ignored, including the
unittest folder itself.

Another example:
When .mbedignore file contains just `*`, then everything under the folder
it is located, is ignored. It won't even be added to include paths.
2016-05-19 00:23:37 +03:00