refactor: rename test macro to prevent collisions (#91)
* refactor: rename test macro to prevent collisions * style: align cmake epilog * refactor: rename define in makefiles
This commit is contained in:
committed by
GitHub
parent
cbfa74e48d
commit
981d4036c8
@@ -328,7 +328,7 @@ void FIFO_Init(FIFO_BUFFER *b, volatile uint8_t *buffer, unsigned buffer_len)
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
@@ -108,7 +108,7 @@ extern "C" {
|
||||
volatile uint8_t * buffer,
|
||||
unsigned buffer_len);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
BACNET_STACK_EXPORT
|
||||
void testFIFOBuffer(
|
||||
|
||||
@@ -59,7 +59,7 @@ char *filename_remove_path(const char *filename_in)
|
||||
return filename_out;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -109,4 +109,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_FILENAME */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -31,13 +31,13 @@
|
||||
License.
|
||||
-------------------------------------------
|
||||
####COPYRIGHTEND####*/
|
||||
/*#define TEST */
|
||||
/*#define BAC_TEST */
|
||||
/*#define TEST_KEY */
|
||||
#include "key.h"
|
||||
|
||||
/** @file key.c Tests (only) of key encoding/decoding. */
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -496,7 +496,7 @@ void Keylist_Delete(OS_Keylist list)
|
||||
return;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -803,4 +803,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_KEYLIST */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -121,7 +121,7 @@ extern "C" {
|
||||
int Keylist_Count(
|
||||
OS_Keylist list);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
BACNET_STACK_EXPORT
|
||||
void testKeyList(
|
||||
|
||||
@@ -455,7 +455,7 @@ bool Ringbuf_Init(RING_BUFFER *b,
|
||||
return status;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <limits.h>
|
||||
|
||||
@@ -96,7 +96,7 @@ extern "C" {
|
||||
unsigned element_size,
|
||||
unsigned element_count);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
BACNET_STACK_EXPORT
|
||||
void testRingBufPowerOfTwo(Test * pTest);
|
||||
|
||||
@@ -130,7 +130,7 @@ bool sbuf_truncate(STATIC_BUFFER *b, /* static buffer structure */
|
||||
return status;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -209,4 +209,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_STATIC_BUFFER */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
Reference in New Issue
Block a user