chore(test) improve prints

This commit is contained in:
Gabor Kiss-Vamosi
2021-06-03 14:07:25 +02:00
parent 7610d38bb0
commit ea8bed34b4
3 changed files with 11 additions and 6 deletions

View File

@@ -42,7 +42,7 @@ OBJS = $(AOBJS) $(COBJS)
all: default all: default
%.o: %.c %.o: %.c
$(CC) $(CFLAGS) -c $< -o $@ @$(CC) $(CFLAGS) -c $< -o $@
default: $(AOBJS) $(COBJS) $(MAINOBJ) default: $(AOBJS) $(COBJS) $(MAINOBJ)

View File

@@ -9,12 +9,12 @@ lvgldirname = '"' + lvgldirname + '"'
base_defines = '"-DLV_CONF_PATH=' + lvgldirname +'/tests/lv_test_conf.h -DLV_BUILD_TEST"' base_defines = '"-DLV_CONF_PATH=' + lvgldirname +'/tests/lv_test_conf.h -DLV_BUILD_TEST"'
optimization = '"-O3 -g0"' optimization = '"-O3 -g0"'
def build(name, defines, test_name): def build(defines, test_name):
global base_defines, optimization global base_defines, optimization
print("==========================================") print("~~~~~~~~~~~~~~~~~~~~~~~~")
print(name) print(test_name)
print("==========================================") print("~~~~~~~~~~~~~~~~~~~~~~~~")
d_all = base_defines[:-1] + " "; d_all = base_defines[:-1] + " ";

View File

@@ -7,9 +7,14 @@ import test
files = test.prepare() files = test.prepare()
print("============================================")
print("Minimal config, 16 bit color depth")
print("============================================")
print("")
for f in files: for f in files:
name = f[:-2] #test_foo.c -> test_foo name = f[:-2] #test_foo.c -> test_foo
build.build("Minimal config, 16 bit color depth", defines.minimal_16bit, name) build.build(defines.minimal_16bit, name)
#build("Minimal config monochrome", minimal_monochrome) #build("Minimal config monochrome", minimal_monochrome)