mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Setting non-zero error exit code to cppcheck and jerry_test.sh.
This commit is contained in:
parent
b71daa172c
commit
c531c78b10
24
Makefile
24
Makefile
@ -163,25 +163,25 @@ clean:
|
||||
rm -f js.files
|
||||
|
||||
check: tests
|
||||
@mkdir -p $(OUT_DIR)
|
||||
@cd $(OUT_DIR)
|
||||
@ mkdir -p $(OUT_DIR)
|
||||
@ cd $(OUT_DIR)
|
||||
|
||||
@echo "=== Running cppcheck ==="
|
||||
@cppcheck $(HEADERS) $(SOURCES) --enable=all --std=c99
|
||||
@echo Done
|
||||
@echo
|
||||
@ echo "=== Running cppcheck ==="
|
||||
@ cppcheck $(HEADERS) $(SOURCES) --error-exitcode=1 --enable=all --std=c99
|
||||
@ echo Done
|
||||
@ echo
|
||||
|
||||
@echo "=== Running unit tests ==="
|
||||
./tools/jerry_unittest.sh $(OUT_DIR)/tests.host $(UNITTESTS)
|
||||
@echo Done
|
||||
@echo
|
||||
@ echo "=== Running unit tests ==="
|
||||
@ ./tools/jerry_unittest.sh $(OUT_DIR)/tests.host $(UNITTESTS)
|
||||
@ echo Done
|
||||
@ echo
|
||||
|
||||
@echo "=== Running js tests ==="
|
||||
@ echo "=== Running js tests ==="
|
||||
@ if [ -f $(OUT_DIR)/release.host/$(TARGET) ]; then \
|
||||
./tools/jerry_test.sh $(OUT_DIR)/release.host/$(TARGET);\
|
||||
fi
|
||||
|
||||
@if [ -f $(OUT_DIR)/debug.host/$(TARGET) ]; then \
|
||||
@ if [ -f $(OUT_DIR)/debug.host/$(TARGET) ]; then \
|
||||
./tools/jerry_test.sh $(OUT_DIR)/debug.host/$(TARGET); \
|
||||
fi
|
||||
@echo Done
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user