diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-07 11:07:31 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2015-03-07 11:07:31 +0000 |
commit | 272b51ba236d6636bda3ee961cba35eb489d30af (patch) | |
tree | 2120de0e1054da930c0c54b7a071f5fd73ac3014 /test | |
parent | 57585301af1df353c3dd3a6e389d074bd4de4fcc (diff) | |
download | ChibiOS-272b51ba236d6636bda3ee961cba35eb489d30af.tar.gz ChibiOS-272b51ba236d6636bda3ee961cba35eb489d30af.tar.bz2 ChibiOS-272b51ba236d6636bda3ee961cba35eb489d30af.zip |
MISRAs done for RT.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7727 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test')
-rw-r--r-- | test/rt/testbuild/Makefile | 2 | ||||
-rw-r--r-- | test/rt/testbuild/go.sh | 35 |
2 files changed, 32 insertions, 5 deletions
diff --git a/test/rt/testbuild/Makefile b/test/rt/testbuild/Makefile index 390eda422..a7ba780c2 100644 --- a/test/rt/testbuild/Makefile +++ b/test/rt/testbuild/Makefile @@ -128,7 +128,7 @@ clean: -rm -fR .dep
misra:
- lint-nt -w3 pclint/co-gcc.lnt pclint/au-misra3.lnt pclint/waivers.lnt $(INCDIR) $(KERNSRC) > misra.txt
+ @lint-nt -v -w3 $(DEFS) pclint/co-gcc.lnt pclint/au-misra3.lnt pclint/waivers.lnt $(INCDIR) $(KERNSRC) &> misra.txt
#
# Include the dependency files, should be the last of the makefile
diff --git a/test/rt/testbuild/go.sh b/test/rt/testbuild/go.sh index 0bb8d3ff6..ccb5465fb 100644 --- a/test/rt/testbuild/go.sh +++ b/test/rt/testbuild/go.sh @@ -27,8 +27,8 @@ function execute_test() { clean exit fi - echo "OK" clean + echo "OK" } function misra() { @@ -42,147 +42,174 @@ function misra() { } echo "Default maximum settings" -#compile -#execute_test +compile +execute_test misra -exit echo "CH_CFG_OPTIMIZE_SPEED=FALSE" XDEFS=-DCH_CFG_OPTIMIZE_SPEED=FALSE compile execute_test +misra echo "CH_CFG_TIME_QUANTUM=0" XDEFS=-DCH_CFG_TIME_QUANTUM=0 compile execute_test +misra echo "CH_CFG_USE_REGISTRY=FALSE" XDEFS=-DCH_CFG_USE_REGISTRY=FALSE compile execute_test +misra echo "CH_CFG_USE_SEMAPHORES=FALSE CH_CFG_USE_MAILBOXES=FALSE" XDEFS="-DCH_CFG_USE_SEMAPHORES=FALSE -DCH_CFG_USE_MAILBOXES=FALSE" compile execute_test +misra echo "CH_CFG_USE_SEMAPHORES_PRIORITY=TRUE" XDEFS=-DCH_CFG_USE_SEMAPHORES_PRIORITY=TRUE compile execute_test +misra echo "CH_CFG_USE_MUTEXES=FALSE CH_CFG_USE_CONDVARS=FALSE" XDEFS="-DCH_CFG_USE_MUTEXES=FALSE -DCH_CFG_USE_CONDVARS=FALSE" compile execute_test +misra echo "CH_CFG_USE_MUTEXES_RECURSIVE=TRUE" XDEFS=-DCH_CFG_USE_MUTEXES_RECURSIVE=TRUE compile execute_test +misra echo "CH_CFG_USE_CONDVARS=FALSE" XDEFS=-DCH_CFG_USE_CONDVARS=FALSE compile execute_test +misra echo "CH_CFG_USE_CONDVARS_TIMEOUT=FALSE" XDEFS=-DCH_CFG_USE_CONDVARS_TIMEOUT=FALSE compile execute_test +misra echo "CH_CFG_USE_EVENTS=FALSE" XDEFS=-DCH_CFG_USE_EVENTS=FALSE compile execute_test +misra echo "CH_CFG_USE_EVENTS_TIMEOUT=FALSE" XDEFS=-DCH_CFG_USE_EVENTS_TIMEOUT=FALSE compile execute_test +misra echo "CH_CFG_USE_MESSAGES=FALSE" XDEFS=-DCH_CFG_USE_MESSAGES=FALSE compile execute_test +misra echo "CH_CFG_USE_MESSAGES_PRIORITY=TRUE" XDEFS=-DCH_CFG_USE_MESSAGES_PRIORITY=TRUE compile execute_test +misra echo "CH_CFG_USE_MAILBOXES=FALSE" XDEFS=-DCH_CFG_USE_MAILBOXES=FALSE compile execute_test +misra echo "CH_CFG_USE_MEMCORE=FALSE CH_CFG_USE_MEMPOOLS=FALSE CH_CFG_USE_HEAP=FALSE CH_CFG_USE_DYNAMIC=FALSE" XDEFS="-DCH_CFG_USE_MEMCORE=FALSE -DCH_CFG_USE_MEMPOOLS=FALSE -DCH_CFG_USE_HEAP=FALSE -DCH_CFG_USE_DYNAMIC=FALSE" compile execute_test +misra echo "CH_CFG_USE_MEMPOOLS=FALSE CH_CFG_USE_HEAP=FALSE CH_CFG_USE_DYNAMIC=FALSE" XDEFS="-DCH_CFG_USE_MEMPOOLS=FALSE -DCH_CFG_USE_HEAP=FALSE -DCH_CFG_USE_DYNAMIC=FALSE" compile execute_test +misra echo "CH_CFG_USE_MEMPOOLS=FALSE" XDEFS="-DCH_CFG_USE_MEMPOOLS=FALSE" compile execute_test +misra echo "CH_CFG_USE_HEAP=FALSE" XDEFS="-DCH_CFG_USE_HEAP=FALSE" compile execute_test +misra echo "CH_CFG_USE_DYNAMIC=FALSE" XDEFS=-DCH_CFG_USE_DYNAMIC=FALSE compile execute_test +misra #echo "CH_DBG_STATISTICS=TRUE" #XDEFS=-DCH_DBG_STATISTICS=TRUE #compile #execute_test +#misra echo "CH_DBG_SYSTEM_STATE_CHECK=TRUE" XDEFS=-DCH_DBG_SYSTEM_STATE_CHECK=TRUE compile execute_test +misra echo "CH_DBG_ENABLE_CHECKS=TRUE" XDEFS=-DCH_DBG_ENABLE_CHECKS=TRUE compile execute_test +misra echo "CH_DBG_ENABLE_ASSERTS=TRUE" XDEFS=-DCH_DBG_ENABLE_ASSERTS=TRUE compile execute_test +misra echo "CH_DBG_ENABLE_TRACE=TRUE" XDEFS=-DCH_DBG_ENABLE_TRACE=TRUE compile execute_test +misra #echo "CH_DBG_ENABLE_STACK_CHECK=TRUE" #XDEFS=-DCH_DBG_ENABLE_STACK_CHECK=TRUE #compile #execute_test +#misra echo "CH_DBG_FILL_THREADS=TRUE" XDEFS=-DCH_DBG_FILL_THREADS=TRUE compile execute_test +misra echo "CH_DBG_THREADS_PROFILING=FALSE" XDEFS=-DCH_DBG_THREADS_PROFILING=FALSE compile execute_test +misra echo "CH_DBG_SYSTEM_STATE_CHECK=TRUE CH_DBG_ENABLE_CHECKS=TRUE CH_DBG_ENABLE_ASSERTS=TRUE CH_DBG_ENABLE_TRACE=TRUE CH_DBG_FILL_THREADS=TRUE" XDEFS="-DCH_DBG_SYSTEM_STATE_CHECK=TRUE -DCH_DBG_ENABLE_CHECKS=TRUE -DCH_DBG_ENABLE_ASSERTS=TRUE -DCH_DBG_ENABLE_TRACE=TRUE -DCH_DBG_FILL_THREADS=TRUE" compile execute_test +misra |