Mostly empty unit tests -- added mgos_mock to be able to run unit tests on x86_64

This commit is contained in:
Pim van Pelt
2017-11-26 10:43:44 +01:00
parent efa9b1bf68
commit 705c65c6c9
13 changed files with 1854 additions and 0 deletions

26
unittest/Makefile Normal file
View File

@ -0,0 +1,26 @@
TARGET = test
LIBS =
CC = gcc
CFLAGS = -g -Wall
INCLUDE = ../include
.PHONY: default all clean
default: $(TARGET)
all: default
OBJ_WIDGET = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -I$(INCLUDE) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJ_WIDGET)
$(TARGET): $(OBJ_WIDGET)
$(CC) $(CFLAGS) -I$(INCLUDE) $(OBJ_WIDGET) $(LIBS) -o $@
clean:
-rm -f *.o
-rm -f $(TARGET)