From e91ae58705d244f347c09c1c538245c02b0ea1ba Mon Sep 17 00:00:00 2001 From: toonn Date: Tue, 9 Oct 2018 16:10:51 +0200 Subject: Add shellcheck to tests Shellcheck is run for `scope.sh` after uncommenting all the code. --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c6b3b35d..c4bd5bb2 100644 --- a/Makefile +++ b/Makefile @@ -108,11 +108,15 @@ test_pytest: @echo "Running py.test tests..." py.test tests +test_shellcheck: + @echo "Running shellcheck..." + sed '2,$$s/^\( *\)#/\1/' ./ranger/data/scope.sh | shellcheck -a - + test_other: @echo "Checking completeness of man page..." @tests/manpage_completion_test.py -test: test_pylint test_flake8 test_doctest test_pytest test_other +test: test_pylint test_flake8 test_doctest test_pytest test_shellcheck test_other @echo "Finished testing: All tests passed!" man: -- cgit 1.4.1-2-gfad0