Commit graph

138 commits

Author SHA1 Message Date
Paul Bartell
8dafa9fe4a Run kernel unit tests against FreeRTOS-Kernel repository main branch and the current submodule version. 2021-04-06 13:01:33 -07:00
Tim Newsome
3fee3ac61f
Add RISC-V demo for the spike simulator. (#532)
* Add RISC-V demo for the spike simulator.

* Figuring out what the header checker wants.

* Fix more headers.

* Ignore htif.c and htif.h for header checks.

These files are already stamped with BSD-3-Clause, which I'm not allowed
to remove. There are numerous other files with the same license in
FreeRTOS, so I assume this is fine.

* Use proxy syscalls for RV32.

Looks like spike won't be changed to make htif character writes work
propery for RV32.

This is now an even closer copy of the version in opensbi, which is
arguably strictly better.

* Support RV64 builds to use with spike.

OpenOCD does not currently support debugging 64-bit FreeRTOS, but now
that I have a target to test hopefully that will be remedied shortly.

* Tweak rv32 instructions.

This way you can have separate cross-tools installations that can
coexist side by side.

Co-authored-by: Joseph Julicher <jjulicher@mac.com>
2021-04-02 14:17:53 -07:00
Paul Bartell
ada298638c Run kernel unit tests on pull requests and pushes.
Remove path filter (doesn't appear to work with multiple targets)
2021-03-22 15:09:05 -07:00
Paul Bartell
f1da2515c2
Run kernel CMock unit tests when they are changed. (#531)
* Run kernel unit tests in a github action only when Unit Test files change
2021-03-19 10:06:07 -07:00
Paul Bartell
d7e5f40885
Clean up CMock makefiles and add coverage filtering (#523)
* Cleanup Makefiles

* Add lcovrc configuration file

* Add CMock test build directory to .gitignore

* Add callgraph.py and filtercov.py scripts

* Cleanup list Makefile and update list_utest.c with coverage tags

* Add information about coverage filtering and running single test cases

* Remove -fprofile-exclude-files for compatibility with older versions of gcc.
Fix line endings (change to unix style)

* Lint callgraph.py and filtercov.py. Print and error when no target functions are defined.

* Indent with spaces when possible

* Replace tabs with spaces and enable .RECIPEPREFIX

* Add fake_port.h and related portmacro.h changes

* Fix list makefile when bin directory is not available

* Clean up grouped rules

* Update makesfile.. Add "two_tests" example dir

* Fix memory checker error

* Move common makefile items to subdir.mk and testdir.mk includes

* Update core_checker.py exclusions

* Remove line from portmacro.h that doesn't match core_checker.py
2021-03-15 17:01:29 -07:00
xuelix
e61730c9b1
Changed git-secrets check to check all PR branches. (#521)
* Change to check all PR branches.
2021-03-05 13:59:28 -08:00
xuelix
7de2a488b8
Added git-secrets check to Github Action (#520) 2021-03-04 11:40:24 -08:00
Carl Lundin
006c6dd5fd
Update python version to 3.7.10 (#512) 2021-02-18 18:55:29 -08:00
Paul Bartell
570ae6bb52
Add unity memory extension, fake_assert, and enable -fsanitize=address (#506)
* Enable libunitymemory extension to track dynamic memory usage during unit tests
* Use UnityMemory in timers_utest.c
* Add fake_assert.h to allow mocking of configASSERT calls
* Add .editorconfig to make github show indentation correctly
* Add unity memory and fake_assert to queue_utest.c
* Add -fsanitize=address CFLAG when running unit tests
* Define mtCOVERAGE_TEST_MARKER macro to include mtCOVERAGE_TEST_MARKER lines in coverage figures
* Add additional memory check / protection CFLAGS for CMock tests
* Fix out of bounds array access in list_utest.c
* Move the fake_assert.h include to the top of FreeRTOSConfig.h
2021-02-18 10:15:01 -08:00
Carl Lundin
f6dff3fea3
Add Litani to run CBMC proofs (#501)
Update to out of source makefile build and add run-cbmc-proofs.py

CBMC proofs can now be run with Litani with the command
"./run-cbmc-proofs.py"

Based on commits:
* 1646301 - Ignore CBMC proof failures, fail the build later (4 months ago) <Kareem Khazem>
* 7e8c91a - Fix Makefile prerequisite symbol for CBMC proofs (4 months ago) <Kareem Khazem>
* bee04be - Enable CBMC proofs to run in CI (4 months ago) <Kareem Khazem>

Found in https://github.com/FreeRTOS/FreeRTOS-Plus-TCP
2021-02-12 10:21:07 -08:00
Cobus van Eeden
1ef9daf721 Add feature request template 2021-02-10 15:46:28 -08:00
alfred gedeon
9b9011917a
Add Kernel Unit Tests Environment (#494)
* Implement Kernel Unit Test Framework with CMock

* Add Readme.md to unit tests

* Add Posix build checker to git actions

* Add Ruby requirement

* Fix file header checks

* Fix header checks

* Add color output to test runs
2021-02-08 15:26:01 -08:00
David Chalco
7bbf951c71
Color printing + New checker message and emphasis (#492)
* Color printing + new message and emphasis

* omit requirements.txt from checks
2021-01-29 16:37:43 -08:00
alfred gedeon
47d37354bc
Add Posix build checker to git actions (#489)
* Add Posix build checker to git actions

* fix checker path

* Fix script, checkout recursively

* fix build check script return value

* clone submodules as well with posix checker

* Add quotes to true for submodules

* Fix Submodules

* Remove pcap dependency from Makefile

* install libpcap for build check

* Add networking build to posix

* Separate network build from normal build

* add libpcap after building normal posix
2021-01-12 20:13:29 -08:00
David Chalco
0527a2a02a
AutoRelease + Header Checker Upgrades (#482)
* Initial version where all deps are pylibs
* mechanism for undoing an autorelease
* misc refactor touchups
* +mechanism to baseline older commit into detached HEAD tag
* decouple kernel check configs + misc refactor improvements
* improved compatibility with git action
* Get pushes working in git action with release
* Fix header-check issue when same deletion occurs in parallel
* Add help message in case check fails
* Address PR feedback
2020-12-20 17:03:37 -08:00
alfred gedeon
208b260f98
Add Full Demo to Qemu mps2 (#481)
* Add Full Demo to Qemu with MPS2

* Increase full demo heap memory

* Add Full Demo to Qemu MPS2

* Fix headers

* Fix header FreeRTOS version

* Remove commented line

* Remove commented line

* Fix header checker version, and corresponding files

* Fix checker version number requirements
2020-12-17 13:05:36 -08:00
alfred gedeon
41237e01d0
Split networking from posix and qemu mps2 demos (#455)
Split networking from posix and qemu mps2 demos
2020-12-12 16:29:23 -08:00
David Chalco
cc922e03a8
Autorelease/manifest (#469)
new release flow
2020-12-11 21:15:16 -08:00
yngki
46acf2863a
Update readme.txt (#446)
* Update readme.txt

* Update readme.txt

* Update readme.txt

* Update check-header.py

Co-authored-by: Joseph Julicher <jjulicher@mac.com>
2020-12-04 14:16:57 -08:00
alfred gedeon
b7b9ccb099
Qemu mps2 networking (#439)
* Demo: Add Support for netwroking in Qemu for MPS2 AN385
* Add tcp echo client
* Add steps to Readme
2020-12-03 23:44:57 -08:00
Carl Lundin
934020a5a2
Move WolfSSL to ThirdParty and Submodule code (#433)
* Submodule wolfSSL and move wolfSSL and WolfSSL-FIPS-Ready to ThirdParty folder.

* Update VS studio project.

* Update FIPS project settings.

* Update FIPS demo readme.

* Add md to ignored file extensions.
2020-12-03 17:42:50 -08:00
David Chalco
1db51e9996
Header Checker: Misc Enhancements (#437)
* +regex ignores, tentative complete lists for configs

* Use header checks from user repo
2020-12-02 09:52:19 -08:00
Carl Lundin
a9fd30af94
Add code of conduct. (#430)
* Add code of conduct.
* Move into .github folder.
2020-12-01 13:12:48 -08:00
Archit Aggarwal
aad429ba09
Fix issues in CI check for header files with directories and .gitmodules (#420) 2020-11-23 13:08:15 -08:00
David Chalco
0d0a88883a
FR Header Checks: Update expected file header. Support ignores. (#410)
* Remove '1 tab == 4 spaces remarks' from check

* Add initial ignore mechanism. Ignore selfcheck
2020-11-18 15:30:28 -08:00
David Chalco
fdc9d736b3
File Header Check/Diff Reporter + Companion Git Action (#408)
* Add checker for file headers

* file header check + git action
2020-11-17 15:37:58 -08:00
David Chalco
be0818ff70
Automate entire release upload flow (#383)
Fully automated flow up to zip upload

add option to toggle https git endpoints

Remove mergetool buged prefix chars

appropriate rename root of zip dir. it persists in zip

Aesthetics - commit message indicate autocreation

packaging improvements

new '--git-org' option + minor refactor improvements
2020-11-06 10:41:01 -08:00
David Chalco
691ed9b529
prepare for datecodes, don't update versions for submodules (#373) 2020-11-02 20:22:09 -08:00
Cobus van Eeden
52cabc0684
Added CODEOWNERS to require PRBR code review (#364) 2020-10-26 13:37:09 -07:00
alfred gedeon
1ea2f045df
Move SECURITY.md and CONTRIBUTING into .github (#355)
* Move SECURITY.md and CONTRIBUTING into .github folder
2020-10-21 17:59:34 -07:00
David Chalco
d47a28aff7
GitAction - Release Packager (#342)
* Rev0 - Release packaging action
* freertos_zipper += commit id param
+force checkout+clean required for older commits
* require commit id
2020-10-16 10:19:02 -07:00
Cobus van Eeden
6cc5310f38 Update issue templates 2020-09-30 17:56:09 -07:00
Cobus van Eeden
4b4f2013ae Update issue templates 2020-09-30 17:55:16 -07:00
Cobus van Eeden
e733ad858f
Create config.yml 2020-09-30 17:53:44 -07:00
Yuhui Zheng
6d35a38bdd
Removed issue tempate for general inquiries, and hinted that users could use forum for such purpose. (#105) 2020-08-27 00:51:41 -07:00
Yuhui Zheng
47bb466aa1 Update issue templates
Template maintenance. 

- adding title prefix.
- adding examples to "additional context" section.
2020-03-17 13:07:44 -07:00
Yuhui Zheng
0acffef047
GitHub PR template. (#29) 2020-03-10 10:20:48 -07:00
Yuhui Zheng
12d580e93d Update issue templates
Initial issue template. Created following https://help.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository#configuring-the-template-chooser. 

If change is needed, we could go another round.
2020-03-06 18:16:51 -08:00