return 0;
}
-#ifdef _TEST
+#if (ARCH & ARCH_UNITTEST)
int battfs_testSetup(void)
{
#ifndef CFG_TEST_H
#define CFG_TEST_H
-#ifdef _TEST
+#if (ARCH & ARCH_UNITTEST)
/**
* Macro used to generate a main() for a test to be compiled
#warning TODO:Refactor this test to comply whit BeRTOS test policy.
-#ifdef _TEST
+#if (ARCH & ARCH_UNITTEST)
void lcd_hw_test(void)
{
return 0;
}
-#ifdef _TEST
+#if (ARCH & ARCH_UNITTEST)
int proc_testSetup(void)
{
#warning FIXME:Review and refactor this test..
-#ifdef _TEST
+#if (ARCH & ARCH_UNITTEST)
#include "sprintf.c"
#include "formatwr.c"
#include "hex.c"
CC=gcc
#FIXME: -Ibertos/emul should not be needed
-CFLAGS="-W -Wall -Wextra -Ibertos -Ibertos/emul -std=gnu99 -fno-builtin -D_DEBUG -D_TEST -DARCH=ARCH_EMUL"
+CFLAGS="-W -Wall -Wextra -Ibertos -Ibertos/emul -std=gnu99 -fno-builtin -D_DEBUG -D'ARCH=(ARCH_EMUL|ARCH_UNITTEST)'"
CXX=g++
CXXFLAGS="$CFLAGS"