1 # Copyright (C) 2013-2018 all contributors <repobrowse-public@80x24.org>
2 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
4 rubybin
:= $(shell which ruby
)
8 # support using eatmydata to speed up tests (apt-get install eatmydata):
9 # https://www.flamingspork.com/projects/libeatmydata/
13 ifeq ($(RUBY_TEST_OPTS
),)
20 test_units
:= $(wildcard test/test_
*.rb
)
23 $(EATMYDATA
) $(RUBY
) -w
-I
$(lib
) $@
$(RUBY_TEST_OPTS
)
26 @
(for i in
$$(git ls-files
'*.rb'| grep
-v
'^setup\.rb$$'); \
27 do
$(RUBY
) -d
-W2
-c
$$i; done
) | grep
-v
'^Syntax OK$$' ||
:
31 coverage
: export COVERAGE
=1
35 $(RUBY
) .
/test/covshow.rb
37 .PHONY
: all test $(test_units
) NEWS
38 .PHONY
: check-warnings fix-perms