Respect timeout when doing get_file_data
[ruby-mogilefs-client.git] / GNUmakefile
blobb5a5fa259137c686366aa373a93612577ca088ea
1 # use GNU Make to run tests in parallel, and without depending on Rubygems
2 all:: test
4 T := $(wildcard test/test*.rb)
5 TO := $(subst .rb,.log,$(T))
7 test: $(T)
8 @cat $(TO) | ruby test/aggregate.rb
9 @$(RM) $(TO)
10 clean:
11 $(RM) $(TO) $(addsuffix +,$(TO))
13 t = $(basename $(notdir $@))
14 t_log = $(subst .rb,.log,$@)
16 $(T):
17 @echo $(t); ruby -I lib $@ $(TEST_OPTS) > $(t_log)+ 2>&1
18 @mv $(t_log)+ $(t_log)
20 # using make instead of rake since Rakefile takes too long to load
21 manifest: Manifest.txt
22 Manifest.txt:
23 git ls-files > $@+
24 cmp $@+ $@ || mv $@+ $@
25 $(RM) -f $@+
27 package: manifest
28 git diff --exit-code HEAD^0
29 $(RM) -r pkg/
30 rake fix_perms
31 rake package
33 libs := $(wildcard lib/*.rb lib/*/*.rb)
34 flay_flags =
35 flog_flags =
36 flay: $(libs)
37 flay $(flay_flags) $^
38 flog: $(libs)
39 flog $(flog_flags) $^
40 .PHONY: $(T) Manifest.txt