@@ -207,9 +207,12 @@ firmware-clear: firmware-clear-$(PLATFORM)
207
207
firmware-clean :
208
208
rm -rf $(TARGET_BUILD_DIR ) /software
209
209
210
+ firmware-test :
211
+ scripts/check-firmware-newlines.sh
212
+
210
213
.PHONY : firmware-load-$(PLATFORM ) firmware-flash-$(PLATFORM ) firmware-flash-py firmware-connect-$(PLATFORM ) firmware-clear-$(PLATFORM )
211
214
.NOTPARALLEL : firmware-load-$(PLATFORM ) firmware-flash-$(PLATFORM ) firmware-flash-py firmware-connect-$(PLATFORM ) firmware-clear-$(PLATFORM )
212
- .PHONY : firmware-cmd $(FIRMWARE_FILEBASE ) .bin firmware firmware-load firmware-flash firmware-connect firmware-clean
215
+ .PHONY : firmware-cmd $(FIRMWARE_FILEBASE ) .bin firmware firmware-load firmware-flash firmware-connect firmware-clean firmware-test
213
216
.NOTPARALLEL : firmware-cmd firmware-load firmware-flash firmware-connect
214
217
215
218
$(BIOS_FILE ) : firmware-cmd
@@ -345,6 +348,7 @@ help:
345
348
@echo " "
346
349
@echo " Firmware make commands avaliable:"
347
350
@echo " make firmware - Build the firmware"
351
+ @echo " make firmware-test - Run firmware tests"
348
352
@echo " make firmware-load - *Temporarily* load the firmware onto a device"
349
353
@echo " make firmware-flash - *Permanently* flash the firmware onto a device"
350
354
@echo " make firmware-connect - *Connect* to the firmware running on a device"
@@ -358,6 +362,7 @@ help:
358
362
@echo " "
359
363
@echo " Other Make commands avaliable:"
360
364
@make -s help-$(PLATFORM )
365
+ @echo " make test - Run all tests"
361
366
@echo " make clean - Clean all build artifacts."
362
367
363
368
reset : reset-$(PLATFORM )
@@ -383,8 +388,8 @@ test-submodules: $(addsuffix /.git,$(addprefix third_party/,$(TEST_MODULES)))
383
388
test-edid : test-submodules
384
389
$(MAKE ) -C test/edid check
385
390
386
- test :
387
- true
391
+ test : firmware-test
392
+ @echo " Tests passed "
388
393
389
394
.PHONY : test test-edid
390
395
.NOTPARALLEL : test test-edid
0 commit comments