about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-11-11 19:33:12 +0100
committertoonn <toonn@toonn.io>2020-11-13 20:08:12 +0100
commit9c69b4aecb87fc6120cd8ce85e0f0020397199ef (patch)
tree14b4193ea9201def1bd2e5a008a11cca7dc3b9f6 /Makefile
parenta9ba169b902661d67678b3eb68833b971fd1f43a (diff)
downloadranger-9c69b4aecb87fc6120cd8ce85e0f0020397199ef.tar.gz
Add formatting to make output for clarity
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 17 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 82a6153a..1653ceb9 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,9 @@ FILTER ?= .
 
 CWD = $(shell pwd)
 
+bold := $(shell tput bold)
+sgr0 := $(shell tput sgr0)
+
 default: test compile
 	@echo 'Run `make options` for a list of all options'
 
@@ -91,39 +94,45 @@ TEST_PATHS_MAIN = \
 TEST_PATH_CONFIG = ./ranger/config
 
 test_pylint:
-	@echo "Running pylint..."
+	@echo "$(bold)Running pylint...$(sgr0)"
 	pylint $(TEST_PATHS_MAIN)
 	pylint --rcfile=$(TEST_PATH_CONFIG)/.pylintrc $(TEST_PATH_CONFIG)
 
 test_flake8:
-	@echo "Running flake8..."
+	@echo "$(bold)Running flake8...$(sgr0)"
 	flake8 $(TEST_PATHS_MAIN) $(TEST_PATH_CONFIG)
+	@echo
 
 test_doctest:
-	@echo "Running doctests..."
+	@echo "$(bold)Running doctests...$(sgr0)"
 	@set -e; \
 	for FILE in $(shell grep -IHm 1 doctest -r ranger | grep $(FILTER) | cut -d: -f1); do \
 		echo "Testing $$FILE..."; \
 		RANGER_DOCTEST=1 PYTHONPATH=".:"$$PYTHONPATH ${PYTHON} $$FILE; \
 	done
+	@echo
 
 test_pytest:
-	@echo "Running py.test tests..."
+	@echo "$(bold)Running py.test tests...$(sgr0)"
 	py.test tests
+	@echo
 
 test_py: test_pylint test_flake8 test_doctest test_pytest test_other
-	@echo "Finished python and documentation tests!"
+	@echo "$(bold)Finished python and documentation tests!$(sgr0)"
+	@echo
 
 test_shellcheck:
-	@echo "Running shellcheck..."
+	@echo "$(bold)Running shellcheck...$(sgr0)"
 	sed '2,$$s/^\(\s*\)#/\1/' ./ranger/data/scope.sh | shellcheck -a -
+	@echo
 
 test_other:
-	@echo "Checking completeness of man page..."
+	@echo "$(bold)Checking completeness of man page...$(sgr0)"
 	@tests/manpage_completion_test.py
+	@echo
 
 test: test_py test_shellcheck
-	@echo "Finished testing: All tests passed!"
+	@echo "$(bold)Finished testing: All tests passed!$(sgr0)"
 
 doc/ranger.1: doc/ranger.pod README.md
 	pod2man --stderr --center='ranger manual' \