From ceb9e5e6e8901f7ba4b31116a7d3da2f4d270b15 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 9 Nov 2014 11:43:40 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@7496 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/rt/testbuild/chconf.h | 68 ++++++++++++++++++++++++++++++++++++++++++++++ test/rt/testbuild/go.sh | 56 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+) (limited to 'test/rt/testbuild') diff --git a/test/rt/testbuild/chconf.h b/test/rt/testbuild/chconf.h index f38839909..445e4bdfe 100644 --- a/test/rt/testbuild/chconf.h +++ b/test/rt/testbuild/chconf.h @@ -39,14 +39,18 @@ * @brief System time counter resolution. * @note Allowed values are 16 or 32 bits. */ +#if !defined(CH_CFG_ST_RESOLUTION) || defined(__DOXIGEN__) #define CH_CFG_ST_RESOLUTION 32 +#endif /** * @brief System tick frequency. * @details Frequency of the system timer that drives the system ticks. This * setting also defines the system tick time unit. */ +#if !defined(CH_CFG_ST_FREQUENCY) || defined(__DOXIGEN__) #define CH_CFG_ST_FREQUENCY 1000 +#endif /** * @brief Time delta constant for the tick-less mode. @@ -56,7 +60,9 @@ * The value one is not valid, timeouts are rounded up to * this value. */ +#if !defined(CH_CFG_ST_TIMEDELTA) || defined(__DOXIGEN__) #define CH_CFG_ST_TIMEDELTA 0 +#endif /** @} */ @@ -79,7 +85,9 @@ * @note The round robin preemption is not supported in tickless mode and * must be set to zero in that case. */ +#if !defined(CH_CFG_TIME_QUANTUM) || defined(__DOXIGEN__) #define CH_CFG_TIME_QUANTUM 20 +#endif /** * @brief Managed RAM size. @@ -92,7 +100,9 @@ * provide the @p __heap_base__ and @p __heap_end__ symbols. * @note Requires @p CH_CFG_USE_MEMCORE. */ +#if !defined(CH_CFG_MEMCORE_SIZE) || defined(__DOXIGEN__) #define CH_CFG_MEMCORE_SIZE 0x20000 +#endif /** * @brief Idle thread automatic spawn suppression. @@ -100,7 +110,9 @@ * does not spawn the idle thread. The application @p main() * function becomes the idle thread and must implement an * infinite loop. */ +#if !defined(CH_CFG_NO_IDLE_THREAD) || defined(__DOXIGEN__) #define CH_CFG_NO_IDLE_THREAD FALSE +#endif /** @} */ @@ -119,7 +131,9 @@ * @note This is not related to the compiler optimization options. * @note The default is @p TRUE. */ +#if !defined(CH_CFG_OPTIMIZE_SPEED) || defined(__DOXIGEN__) #define CH_CFG_OPTIMIZE_SPEED TRUE +#endif /** @} */ @@ -137,7 +151,9 @@ * * @note The default is @p TRUE. */ +#if !defined(CH_CFG_USE_TM) || defined(__DOXIGEN__) #define CH_CFG_USE_TM FALSE +#endif /** * @brief Threads registry APIs. @@ -145,7 +161,9 @@ * * @note The default is @p TRUE. */ +#if !defined(CH_CFG_USE_REGISTRY) || defined(__DOXIGEN__) #define CH_CFG_USE_REGISTRY TRUE +#endif /** * @brief Threads synchronization APIs. @@ -154,7 +172,9 @@ * * @note The default is @p TRUE. */ +#if !defined(CH_CFG_USE_WAITEXIT) || defined(__DOXIGEN__) #define CH_CFG_USE_WAITEXIT TRUE +#endif /** * @brief Semaphores APIs. @@ -162,7 +182,9 @@ * * @note The default is @p TRUE. */ +#if !defined(CH_CFG_USE_SEMAPHORES) || defined(__DOXIGEN__) #define CH_CFG_USE_SEMAPHORES TRUE +#endif /** * @brief Semaphores queuing mode. @@ -173,7 +195,9 @@ * requirements. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ +#if !defined(CH_CFG_USE_SEMAPHORES_PRIORITY) || defined(__DOXIGEN__) #define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE +#endif /** * @brief Mutexes APIs. @@ -181,7 +205,9 @@ * * @note The default is @p TRUE. */ +#if !defined(CH_CFG_USE_MUTEXES) || defined(__DOXIGEN__) #define CH_CFG_USE_MUTEXES TRUE +#endif /** * @brief Enables recursive behavior on mutexes. @@ -191,7 +217,9 @@ * @note The default is @p FALSE. * @note Requires @p CH_CFG_USE_MUTEXES. */ +#if !defined(CH_CFG_USE_MUTEXES_RECURSIVE) || defined(__DOXIGEN__) #define CH_CFG_USE_MUTEXES_RECURSIVE FALSE +#endif /** * @brief Conditional Variables APIs. @@ -201,7 +229,9 @@ * @note The default is @p TRUE. * @note Requires @p CH_CFG_USE_MUTEXES. */ +#if !defined(CH_CFG_USE_CONDVARS) || defined(__DOXIGEN__) #define CH_CFG_USE_CONDVARS TRUE +#endif /** * @brief Conditional Variables APIs with timeout. @@ -211,7 +241,9 @@ * @note The default is @p TRUE. * @note Requires @p CH_CFG_USE_CONDVARS. */ +#if !defined(CH_CFG_USE_CONDVARS_TIMEOUT) || defined(__DOXIGEN__) #define CH_CFG_USE_CONDVARS_TIMEOUT TRUE +#endif /** * @brief Events Flags APIs. @@ -219,7 +251,9 @@ * * @note The default is @p TRUE. */ +#if !defined(CH_CFG_USE_EVENTS) || defined(__DOXIGEN__) #define CH_CFG_USE_EVENTS TRUE +#endif /** * @brief Events Flags APIs with timeout. @@ -229,7 +263,9 @@ * @note The default is @p TRUE. * @note Requires @p CH_CFG_USE_EVENTS. */ +#if !defined(CH_CFG_USE_EVENTS_TIMEOUT) || defined(__DOXIGEN__) #define CH_CFG_USE_EVENTS_TIMEOUT TRUE +#endif /** * @brief Synchronous Messages APIs. @@ -238,7 +274,9 @@ * * @note The default is @p TRUE. */ +#if !defined(CH_CFG_USE_MESSAGES) || defined(__DOXIGEN__) #define CH_CFG_USE_MESSAGES TRUE +#endif /** * @brief Synchronous Messages queuing mode. @@ -249,7 +287,9 @@ * requirements. * @note Requires @p CH_CFG_USE_MESSAGES. */ +#if !defined(CH_CFG_USE_MESSAGES_PRIORITY) || defined(__DOXIGEN__) #define CH_CFG_USE_MESSAGES_PRIORITY FALSE +#endif /** * @brief Mailboxes APIs. @@ -259,7 +299,9 @@ * @note The default is @p TRUE. * @note Requires @p CH_CFG_USE_SEMAPHORES. */ +#if !defined(CH_CFG_USE_MAILBOXES) || defined(__DOXIGEN__) #define CH_CFG_USE_MAILBOXES TRUE +#endif /** * @brief I/O Queues APIs. @@ -267,7 +309,9 @@ * * @note The default is @p TRUE. */ +#if !defined(CH_CFG_USE_QUEUES) || defined(__DOXIGEN__) #define CH_CFG_USE_QUEUES TRUE +#endif /** * @brief Core Memory Manager APIs. @@ -276,7 +320,9 @@ * * @note The default is @p TRUE. */ +#if !defined(CH_CFG_USE_MEMCORE) || defined(__DOXIGEN__) #define CH_CFG_USE_MEMCORE TRUE +#endif /** * @brief Heap Allocator APIs. @@ -288,7 +334,9 @@ * @p CH_CFG_USE_SEMAPHORES. * @note Mutexes are recommended. */ +#if !defined(CH_CFG_USE_HEAP) || defined(__DOXIGEN__) #define CH_CFG_USE_HEAP TRUE +#endif /** * @brief Memory Pools Allocator APIs. @@ -297,7 +345,9 @@ * * @note The default is @p TRUE. */ +#if !defined(CH_CFG_USE_MEMPOOLS) || defined(__DOXIGEN__) #define CH_CFG_USE_MEMPOOLS TRUE +#endif /** * @brief Dynamic Threads APIs. @@ -308,7 +358,9 @@ * @note Requires @p CH_CFG_USE_WAITEXIT. * @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS. */ +#if !defined(CH_CFG_USE_DYNAMIC) || defined(__DOXIGEN__) #define CH_CFG_USE_DYNAMIC TRUE +#endif /** @} */ @@ -324,7 +376,9 @@ * * @note The default is @p FALSE. */ +#if !defined(CH_DBG_STATISTICS) || defined(__DOXIGEN__) #define CH_DBG_STATISTICS FALSE +#endif /** * @brief Debug option, system state check. @@ -333,7 +387,9 @@ * * @note The default is @p FALSE. */ +#if !defined(CH_DBG_SYSTEM_STATE_CHECK) || defined(__DOXIGEN__) #define CH_DBG_SYSTEM_STATE_CHECK FALSE +#endif /** * @brief Debug option, parameters checks. @@ -342,7 +398,9 @@ * * @note The default is @p FALSE. */ +#if !defined(CH_DBG_ENABLE_CHECKS) || defined(__DOXIGEN__) #define CH_DBG_ENABLE_CHECKS FALSE +#endif /** * @brief Debug option, consistency checks. @@ -352,7 +410,9 @@ * * @note The default is @p FALSE. */ +#if !defined(CH_DBG_ENABLE_ASSERTS) || defined(__DOXIGEN__) #define CH_DBG_ENABLE_ASSERTS FALSE +#endif /** * @brief Debug option, trace buffer. @@ -361,7 +421,9 @@ * * @note The default is @p FALSE. */ +#if !defined(CH_DBG_ENABLE_TRACE) || defined(__DOXIGEN__) #define CH_DBG_ENABLE_TRACE FALSE +#endif /** * @brief Debug option, stack checks. @@ -373,7 +435,9 @@ * @note The default failure mode is to halt the system with the global * @p panic_msg variable set to @p NULL. */ +#if !defined(CH_DBG_ENABLE_STACK_CHECK) || defined(__DOXIGEN__) #define CH_DBG_ENABLE_STACK_CHECK FALSE +#endif /** * @brief Debug option, stacks initialization. @@ -383,7 +447,9 @@ * * @note The default is @p FALSE. */ +#if !defined(CH_DBG_FILL_THREADS) || defined(__DOXIGEN__) #define CH_DBG_FILL_THREADS FALSE +#endif /** * @brief Debug option, threads profiling. @@ -394,7 +460,9 @@ * @note This debug option is not currently compatible with the * tickless mode. */ +#if !defined(CH_DBG_THREADS_PROFILING) || defined(__DOXIGEN__) #define CH_DBG_THREADS_PROFILING TRUE +#endif /** @} */ diff --git a/test/rt/testbuild/go.sh b/test/rt/testbuild/go.sh index 440237375..b844fbbc8 100644 --- a/test/rt/testbuild/go.sh +++ b/test/rt/testbuild/go.sh @@ -34,3 +34,59 @@ function execute_test() { echo "Default maximum settings" compile execute_test + +echo "CH_CFG_OPTIMIZE_SPEED=FALSE" +XDEFS=-DCH_CFG_OPTIMIZE_SPEED=FALSE +compile +execute_test + +echo "CH_CFG_TIME_QUANTUM=0" +XDEFS=-DCH_CFG_TIME_QUANTUM=0 +compile +execute_test + +echo "CH_CFG_USE_REGISTRY=FALSE" +XDEFS=-DCH_CFG_USE_REGISTRY=FALSE +compile +execute_test + +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 + +echo "CH_CFG_USE_SEMAPHORES_PRIORITY=TRUE" +XDEFS=-DCH_CFG_USE_SEMAPHORES_PRIORITY=TRUE +compile +execute_test + +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 + +echo "CH_CFG_USE_MUTEXES_RECURSIVE=TRUE" +XDEFS=-DCH_CFG_USE_MUTEXES_RECURSIVE=TRUE +compile +execute_test + +echo "CH_CFG_USE_CONDVARS=FALSE" +XDEFS=-DCH_CFG_USE_CONDVARS=FALSE +compile +execute_test + +echo "CH_CFG_USE_CONDVARS_TIMEOUT=FALSE" +XDEFS=-DCH_CFG_USE_CONDVARS_TIMEOUT=FALSE +compile +execute_test + +echo "CH_CFG_USE_EVENTS=FALSE" +XDEFS=-DCH_CFG_USE_EVENTS=FALSE +compile +execute_test + +echo "CH_CFG_USE_EVENTS_TIMEOUT=FALSE" +XDEFS=-DCH_CFG_USE_EVENTS_TIMEOUT=FALSE +compile +execute_test + -- cgit v1.2.3