fix(test) silence make
This commit is contained in:
@@ -42,8 +42,8 @@ OBJS = $(AOBJS) $(COBJS)
|
|||||||
all: default
|
all: default
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@$(CC) $(CFLAGS) -c $< -o $@
|
$(CC) $(CFLAGS) -c $< -o $@
|
||||||
@echo "CC $<"
|
|
||||||
|
|
||||||
default: $(AOBJS) $(COBJS) $(MAINOBJ)
|
default: $(AOBJS) $(COBJS) $(MAINOBJ)
|
||||||
$(CC) -o $(BIN) $(MAINOBJ) $(AOBJS) $(COBJS) $(LDFLAGS)
|
$(CC) -o $(BIN) $(MAINOBJ) $(AOBJS) $(COBJS) $(LDFLAGS)
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ optimization = '"-O3 -g0"'
|
|||||||
def build(name, defines, test_name):
|
def build(name, defines, test_name):
|
||||||
global base_defines, optimization
|
global base_defines, optimization
|
||||||
|
|
||||||
print("=============================")
|
print("==========================================")
|
||||||
print(name)
|
print(name)
|
||||||
print("=============================")
|
print("==========================================")
|
||||||
|
|
||||||
d_all = base_defines[:-1] + " ";
|
d_all = base_defines[:-1] + " ";
|
||||||
|
|
||||||
@@ -24,31 +24,31 @@ def build(name, defines, test_name):
|
|||||||
d_all += '"'
|
d_all += '"'
|
||||||
test_file_name = test_name + ".c"
|
test_file_name = test_name + ".c"
|
||||||
test_file_runner_name = test_name + "_Runner.c"
|
test_file_runner_name = test_name + "_Runner.c"
|
||||||
cmd = "make -j8 BIN=test.bin MAINSRC=" + test_file_name + " TEST_SRC=" + test_file_runner_name + " LVGL_DIR_NAME=" + lvgldirname + " DEFINES=" + d_all + " OPTIMIZATION=" + optimization
|
cmd = "make -s -j BIN=test.bin MAINSRC=" + test_file_name + " TEST_SRC=" + test_file_runner_name + " LVGL_DIR_NAME=" + lvgldirname + " DEFINES=" + d_all + " OPTIMIZATION=" + optimization
|
||||||
|
|
||||||
print("---------------------------")
|
print("")
|
||||||
print("Build")
|
print("Build")
|
||||||
print("---------------------------")
|
print("-----------------------")
|
||||||
ret = os.system(cmd)
|
ret = os.system(cmd)
|
||||||
if(ret != 0):
|
if(ret != 0):
|
||||||
print("BUILD ERROR! (error code " + str(ret) + ")")
|
print("BUILD ERROR! (error code " + str(ret) + ")")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
print("---------------------------")
|
print("")
|
||||||
print("Run")
|
print("Run")
|
||||||
print("---------------------------")
|
print("-----------------------")
|
||||||
ret = os.system("./test.bin")
|
ret = os.system("./test.bin")
|
||||||
if(ret != 0):
|
if(ret != 0):
|
||||||
print("RUN ERROR! (error code " + str(ret) + ")")
|
print("RUN ERROR! (error code " + str(ret) + ")")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
print("---------------------------")
|
print("")
|
||||||
print("Finished")
|
print("Finished")
|
||||||
print("---------------------------")
|
print("-----------------------")
|
||||||
|
|
||||||
def clean():
|
def clean():
|
||||||
print("---------------------------")
|
print("")
|
||||||
print("Clean")
|
print("Clean")
|
||||||
print("---------------------------")
|
print("-----------------------")
|
||||||
os.system("make clean LVGL_DIR_NAME=" + lvgldirname)
|
os.system("make clean LVGL_DIR_NAME=" + lvgldirname)
|
||||||
os.system("rm -f ./test.bin")
|
os.system("rm -f ./test.bin")
|
||||||
|
|||||||
Reference in New Issue
Block a user