Skip to content

Commit

Permalink
Output helpful message on "make test" when requirements are not met
Browse files Browse the repository at this point in the history
  • Loading branch information
okurz authored and coolo committed Jan 8, 2016
1 parent b97d9c2 commit 9fc37c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ prepare:

.PHONY: test
test:
test -d os-autoinst
test -d os-autoinst || (echo "Missing test requirements, \
link a local working copy of 'os-autoinst' into this \
folder or call 'make prepare' to install download a copy necessary for \
testing" && exit 2)
test -e tools || ln -s os-autoinst/tools .
tools/tidy --check
export PERL5LIB="../..:os-autoinst:lib:tests/installation:tests/x11:tests/qa_automation:$$PERL5LIB" ; for f in `find . -name \*.pm|grep -v /os-autoinst/` ; do perl -c $$f 2>&1 | grep -v " OK$$" && exit 2; done ; true

0 comments on commit 9fc37c8

Please sign in to comment.