diff --git a/src/unity.h b/src/unity.h index 902edd6..28d11fd 100644 --- a/src/unity.h +++ b/src/unity.h @@ -32,6 +32,9 @@ // - by default, line numbers are stored in unsigned shorts. Define UNITY_LINE_TYPE with a different type if your files are huge // - by default, test and failure counters are unsigned shorts. Define UNITY_COUNTER_TYPE with a different type if you want to save space or have more than 65535 Tests. +// Test Cases +// - define UNITY_SUPPORT_TEST_CASES to include the TEST_CASE macro, though really it's mostly about the runner generator script + //------------------------------------------------------- // Test Running Macros //------------------------------------------------------- @@ -47,7 +50,9 @@ #define TEST_LINE_NUM (Unity.CurrentTestLineNumber) #define TEST_IS_IGNORED (Unity.CurrentTestIgnored) +#ifdef UNITY_SUPPORT_TEST_CASES #define TEST_CASE(...) +#endif //------------------------------------------------------- // Basic Fail and Ignore diff --git a/targets/gcc.yml b/targets/gcc.yml index 89b3b04..2a8036f 100644 --- a/targets/gcc.yml +++ b/targets/gcc.yml @@ -19,6 +19,7 @@ compiler: prefix: '-D' items: - UNITY_SUPPORT_64 + - UNITY_SUPPORT_TEST_CASES object_files: prefix: '-o' extension: '.o' diff --git a/targets/gcc_64.yml b/targets/gcc_64.yml index 896562c..afb2ad2 100644 --- a/targets/gcc_64.yml +++ b/targets/gcc_64.yml @@ -19,6 +19,7 @@ compiler: prefix: '-D' items: - UNITY_SUPPORT_64 + - UNITY_SUPPORT_TEST_CASES - 'UNITY_POINTER_WIDTH=64' object_files: prefix: '-o' diff --git a/targets/hitech_picc18.yml b/targets/hitech_picc18.yml index d8db435..eb08235 100644 --- a/targets/hitech_picc18.yml +++ b/targets/hitech_picc18.yml @@ -40,7 +40,8 @@ compiler: - UNITY_INT_WIDTH=16 - UNITY_POINTER_WIDTH=16 - CMOCK_MEM_STATIC - - CMOCK_MEM_SIZE=3000 + - CMOCK_MEM_SIZE=3000 + - UNITY_SUPPORT_TEST_CASES - _PICC18 object_files: # prefix: '-O' # Hi-Tech doesn't want a prefix. They key off of filename .extensions, instead diff --git a/targets/iar_arm_v4.yml b/targets/iar_arm_v4.yml index 74f2899..529290c 100644 --- a/targets/iar_arm_v4.yml +++ b/targets/iar_arm_v4.yml @@ -38,6 +38,7 @@ compiler: prefix: '-D' items: - UNITY_SUPPORT_64 + - 'UNITY_SUPPORT_TEST_CASES' object_files: prefix: '-o' extension: '.r79' diff --git a/targets/iar_arm_v5.yml b/targets/iar_arm_v5.yml index bc45153..915330a 100644 --- a/targets/iar_arm_v5.yml +++ b/targets/iar_arm_v5.yml @@ -38,6 +38,7 @@ compiler: prefix: '-D' items: - UNITY_SUPPORT_64 + - 'UNITY_SUPPORT_TEST_CASES' object_files: prefix: '-o' extension: '.r79' diff --git a/targets/iar_cortexm3_v5.yml b/targets/iar_cortexm3_v5.yml index dab8401..480b255 100644 --- a/targets/iar_cortexm3_v5.yml +++ b/targets/iar_cortexm3_v5.yml @@ -41,6 +41,7 @@ compiler: items: - 'IAR' - 'UNITY_SUPPORT_64' + - 'UNITY_SUPPORT_TEST_CASES' object_files: prefix: '-o' extension: '.r79' diff --git a/targets/iar_msp430.yml b/targets/iar_msp430.yml index 705c235..177e08b 100644 --- a/targets/iar_msp430.yml +++ b/targets/iar_msp430.yml @@ -42,6 +42,7 @@ compiler: - '__MSP430F149__' - 'INT_WIDTH=16' - 'UNITY_EXCLUDE_FLOAT' + - 'UNITY_SUPPORT_TEST_CASES' object_files: prefix: '-o' extension: '.r43'