1 # use GNU Make to run tests in parallel, and without depending on Rubygems
4 T
:= $(wildcard test/test*.rb
)
5 TO
:= $(subst .rb
,.log
,$(T
))
8 @cat
$(TO
) | ruby
test/aggregate.rb
11 $(RM
) $(TO
) $(addsuffix +,$(TO
))
13 t
= $(basename $(notdir $@
))
14 t_log
= $(subst .rb
,.log
,$@
)
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
24 cmp
$@
+ $@ || mv
$@
+ $@
28 git diff
--exit-code HEAD^
0
33 libs
:= $(wildcard lib
/*.rb lib
/*/*.rb
)
40 .PHONY
: $(T
) Manifest.txt