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
@@ -198,7 +198,7 @@ bool Analog_Value_Write_Property(BACNET_WRITE_PROPERTY_DATA *wp_data,
|
||||
return status;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
@@ -246,4 +246,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_ANALOG_VALUE */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -64,7 +64,7 @@ extern "C" {
|
||||
|
||||
void Analog_Value_Init(void);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
void testAnalog_Value(Test * pTest);
|
||||
#endif
|
||||
|
||||
@@ -245,7 +245,7 @@ bool Binary_Value_Write_Property(BACNET_WRITE_PROPERTY_DATA *wp_data,
|
||||
return status;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
@@ -293,4 +293,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_BINARY_VALUE */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -61,7 +61,7 @@ extern "C" {
|
||||
BACNET_ERROR_CLASS * error_class,
|
||||
BACNET_ERROR_CODE * error_code);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
void testBinary_Value(Test * pTest);
|
||||
#endif
|
||||
|
||||
@@ -82,7 +82,7 @@ extern "C" {
|
||||
void Analog_Input_Init(
|
||||
void);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
void testAnalogInput(
|
||||
Test * pTest);
|
||||
|
||||
@@ -217,7 +217,7 @@ bool Analog_Value_Write_Property(BACNET_WRITE_PROPERTY_DATA *wp_data)
|
||||
return status;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
@@ -265,4 +265,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_ANALOG_VALUE */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -74,7 +74,7 @@ extern "C" {
|
||||
void Analog_Value_Init(
|
||||
void);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
void testAnalog_Value(
|
||||
Test * pTest);
|
||||
|
||||
@@ -261,7 +261,7 @@ bool Binary_Value_Write_Property(BACNET_WRITE_PROPERTY_DATA *wp_data)
|
||||
return status;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
@@ -309,4 +309,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_BINARY_VALUE */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -69,7 +69,7 @@ extern "C" {
|
||||
BACNET_ERROR_CLASS * error_class,
|
||||
BACNET_ERROR_CODE * error_code);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
void testBinary_Value(
|
||||
Test * pTest);
|
||||
|
||||
@@ -1325,7 +1325,7 @@ int Analog_Input_Alarm_Summary(
|
||||
}
|
||||
#endif /* defined(INTRINSIC_REPORTING) */
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
@@ -1398,4 +1398,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_ANALOG_INPUT */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -162,7 +162,7 @@ extern "C" {
|
||||
void Analog_Input_Init(
|
||||
void);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
void testAnalogInput(
|
||||
Test * pTest);
|
||||
|
||||
@@ -449,7 +449,7 @@ bool Binary_Output_Write_Property(BACNET_WRITE_PROPERTY_DATA *wp_data)
|
||||
return status;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
@@ -514,4 +514,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_BINARY_INPUT */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -129,7 +129,7 @@ extern "C" {
|
||||
void Binary_Output_Cleanup(
|
||||
void);
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include "ctest.h"
|
||||
void testBinaryOutput(
|
||||
Test * pTest);
|
||||
|
||||
@@ -1782,7 +1782,7 @@ void Routing_Device_Init(uint32_t first_object_instance)
|
||||
|
||||
#endif /* BAC_ROUTING */
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include "ctest.h"
|
||||
@@ -1873,4 +1873,4 @@ int main(void)
|
||||
return 0;
|
||||
}
|
||||
#endif /* TEST_DEVICE */
|
||||
#endif /* TEST */
|
||||
#endif /* BAC_TEST */
|
||||
|
||||
@@ -322,7 +322,7 @@ void automac_init(void)
|
||||
PFM_Cycle_Complete = false;
|
||||
}
|
||||
|
||||
#ifdef TEST
|
||||
#ifdef BAC_TEST
|
||||
#include <assert.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
Reference in New Issue
Block a user