return 0;
}
-#if (ARCH & ARCH_UNITTEST)
+#if UNIT_TEST
int battfs_testSetup(void)
{
#ifndef CFG_TEST_H
#define CFG_TEST_H
-#if (ARCH & ARCH_UNITTEST)
+#include "cfg/cfg_arch.h"
+
+#if defined(ARCH_UNITTEST) && (ARCH & ARCH_UNITTEST)
+
+ #define UNIT_TEST 1
/**
* Macro used to generate a main() for a test to be compiled
#define TEST_ONLY(file) PP_STRINGIZE(file)
#else /* !_TEST */
+ #define UNIT_TEST 0
#define TEST_MAIN(module) /* nothing */
#define TEST_ONLY(file) <cfg/nothing.h>
#include "lcd_hd44.h"
#include "hw/hw_lcd.h"
+#include <cfg/test.h>
#include <drv/timer.h>
#warning TODO:Refactor this test to comply whit BeRTOS test policy.
-#if (ARCH & ARCH_UNITTEST)
+#if UNIT_TEST
void lcd_hw_test(void)
{
return 0;
}
-#if (ARCH & ARCH_UNITTEST)
+#if UNIT_TEST
int proc_testSetup(void)
{
#warning FIXME:Review and refactor this test..
-#if (ARCH & ARCH_UNITTEST)
+#if UNIT_TEST
#include "sprintf.c"
#include "formatwr.c"
#include "hex.c"