tests: skip config.ru parsing tests under rbx
[unicorn.git] / local.mk.sample
blob8dc68d331eb0a992592f4cb3874c57bffd8afc36
1 # this is the local.mk file used by Eric Wong on his dev boxes.
2 # GNUmakefile will source local.mk in the top-level source tree
3 # if it is present.
5 # This is depends on a bunch of GNU-isms from bash, sed, touch.
7 DLEXT := so
9 # Avoid loading rubygems to speed up tests because gmake is
10 # fork+exec heavy with Ruby.
11 prefix = $(HOME)
12 ifeq ($(r192),)
13   ifeq ($(r19),)
14     ifeq ($(rbx),)
15       RUBY := $(prefix)/bin/ruby
16     else
17       prefix := $(prefix)/rbx
18       export PATH := $(prefix)/bin:$(PATH)
19       RUBY := $(prefix)/bin/rbx
20     endif
21   else
22     prefix := $(prefix)/ruby-1.9
23     export PATH := $(prefix)/bin:$(PATH)
24     RUBY := $(prefix)/bin/ruby --disable-gems
25   endif
26 else
27   prefix := $(prefix)/ruby-1.9.2
28   export PATH := $(prefix)/bin:$(PATH)
29   RUBY := $(prefix)/bin/ruby --disable-gems
30 endif
32 # FIXME: use isolate more
33 ifndef RUBYLIB
34   gems := rack-1.1.0
35   gem_paths := $(addprefix $(HOME)/lib/ruby/gems/1.8/gems/,$(gems))
36   sp :=
37   sp +=
38   export RUBYLIB := $(subst $(sp),:,$(addsuffix /lib,$(gem_paths)))
39 endif
41 # pipefail is THE reason to use bash (v3+) or never revisions of ksh93
42 # SHELL := /bin/bash -e -o pipefail
43 SHELL := /bin/ksh93 -e -o pipefail
45 full-test: test-18 test-191 test-192 test-rbx
47 # FIXME: keep eye on Rubinius activity and wait for fixes from upstream
48 # so we don't need RBX_SKIP anymore
49 test-rbx: export RBX_SKIP := 1
50 test-rbx: export RUBY := $(RUBY)
51 test-rbx:
52         $(MAKE) test test-integration rbx=T 2>&1 |sed -e 's!^!rbx !'
53 test-18:
54         $(MAKE) test-all 2>&1 |sed 's!^!1.8 !'
55 test-191:
56         $(MAKE) test-all r19=1 2>&1 |sed 's!^!1.9.1 !'
57 test-192:
58         $(MAKE) test-all r192=1 2>&1 |sed 's!^!1.9.2 !'