Skip to content

Commit 7abe4ec

Browse files
committed
Simplifying precommit console output
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss [email protected]
1 parent 981dc75 commit 7abe4ec

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Makefile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ ifdef NINJA
173173
BUILD_COMMAND := ninja -v
174174
else
175175
BUILD_GENERATOR := "Unix Makefiles"
176-
BUILD_COMMAND := $(MAKE) VERBOSE=1
176+
BUILD_COMMAND := $(MAKE) -w VERBOSE=1
177177
endif
178178

179179
# Targets to prepare the build directories
@@ -363,15 +363,14 @@ test-js: $(foreach __TARGET,$(JERRY_TEST_TARGETS),test-js.$(__TARGET))
363363

364364
.PHONY: precommit
365365
precommit:
366-
$(Q) $(MAKE) clean
367-
$(Q) echo -e "\nBuilding...\n\n"
368-
$(Q)+$(MAKE) check-signed-off check-vera check-cpp build unittests
369-
$(Q) echo -e "\n================ Build completed successfully. Running precommit tests ================\n"
370-
$(Q) echo -e "All targets were built successfully. Starting unit tests' run.\n"
371-
$(Q)+$(MAKE) test-unit
372-
$(Q) echo -e "\nUnit tests completed successfully. Starting full testing.\n"
373-
$(Q)+$(MAKE) test-js
374-
$(Q) echo -e "Full testing completed successfully\n\n================\n\n"
366+
$(Q) $(MAKE) --no-print-directory clean
367+
$(Q) echo "Running checks, building engine & unit tests..."
368+
$(Q)+$(MAKE) --no-print-directory check-signed-off check-vera check-cpp build unittests
369+
$(Q) echo "...running unit tests..."
370+
$(Q)+$(MAKE) --no-print-directory test-unit
371+
$(Q) echo "...running JS tests..."
372+
$(Q)+$(MAKE) --no-print-directory test-js
373+
$(Q) echo "...SUCCESS"
375374

376375
# Targets to install and clean prerequisites
377376

0 commit comments

Comments
 (0)