Skip to content

Commit

Permalink
fix(test) silence make
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Jun 18, 2021
1 parent c12a22e commit 7610d38
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions tests/Makefile
Expand Up @@ -42,8 +42,8 @@ OBJS = $(AOBJS) $(COBJS)
all: default

%.o: %.c
@$(CC) $(CFLAGS) -c $< -o $@
@echo "CC $<"
$(CC) $(CFLAGS) -c $< -o $@


default: $(AOBJS) $(COBJS) $(MAINOBJ)
$(CC) -o $(BIN) $(MAINOBJ) $(AOBJS) $(COBJS) $(LDFLAGS)
Expand Down
22 changes: 11 additions & 11 deletions tests/build.py
Expand Up @@ -12,9 +12,9 @@
def build(name, defines, test_name):
global base_defines, optimization

print("=============================")
print("==========================================")
print(name)
print("=============================")
print("==========================================")

d_all = base_defines[:-1] + " ";

Expand All @@ -24,31 +24,31 @@ def build(name, defines, test_name):
d_all += '"'
test_file_name = test_name + ".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("---------------------------")
print("-----------------------")
ret = os.system(cmd)
if(ret != 0):
print("BUILD ERROR! (error code " + str(ret) + ")")
exit(1)

print("---------------------------")
print("")
print("Run")
print("---------------------------")
print("-----------------------")
ret = os.system("./test.bin")
if(ret != 0):
print("RUN ERROR! (error code " + str(ret) + ")")
exit(1)

print("---------------------------")
print("")
print("Finished")
print("---------------------------")
print("-----------------------")

def clean():
print("---------------------------")
print("")
print("Clean")
print("---------------------------")
print("-----------------------")
os.system("make clean LVGL_DIR_NAME=" + lvgldirname)
os.system("rm -f ./test.bin")

0 comments on commit 7610d38

Please sign in to comment.