Don't set SCRIPT_NAME to "/" and then clear it for Rack
[unicorn.git] / GNUmakefile
blob457d30de06758e9cc08d96567e248ab25972977d
1 # use GNU Make to run tests in parallel, and without depending on Rubygems
2 all:: test
4 slow_tests := test/unit/test_server.rb
5 awk_slow := awk '/def test_/{print FILENAME"--"$$2".n"}'
6 T := $(filter-out $(slow_tests),$(wildcard test/unit/test*.rb))
7 T_n := $(shell $(awk_slow) $(slow_tests))
8 test: $(T) $(T_n)
10 $(slow_tests):
11 @$(MAKE) $(shell $(awk_slow) $@)
12 %.n: arg = $(subst .n,,$(subst --, -n ,$@))
13 %.n: name = $(subst .n,,$(subst --, ,$@))
14 %.n:
15 @echo '**** $(name) ****'; ruby -I lib $(arg) $(TEST_OPTS)
16 $(T):
17 @echo '**** $@ ****'; ruby -I lib $@ $(TEST_OPTS)
19 .PHONY: $(T) $(slow_tests)