t/GNUmakefile: cleanup test dependencies
[rainbows.git] / local.mk.sample
blob802ca637097fa58e7fe46a9507edc47918ed53e0
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 # if you have a decent amount of RAM, setting TMPDIR to be on tmpfs
10 # can significantly improve performance because uploads take a lot
11 # of disk I/O due to the rewindability requirement in Rack.
12 # TMPDIR := /dev/shm
13 # export TMPDIR
15 # Avoid loading rubygems to speed up tests because gmake is
16 # fork+exec heavy with Ruby.
17 prefix = $(HOME)
19 ifeq ($(r192),)
20   RUBY := $(prefix)/bin/ruby
21 else
22   prefix := $(prefix)/ruby-1.9.2
23   export PATH := $(prefix)/bin:$(PATH)
24   RUBY := $(prefix)/bin/ruby --disable-gems
25 endif
27 # pipefail is THE reason to use bash (v3+) or never revisions of ksh93
28 # SHELL := /bin/bash -e -o pipefail
29 SHELL := /bin/ksh93 -e -o pipefail
31 # trace execution of tests
32 # TRACER = strace -f -o $(t_pfx).strace -s 100000
33 # TRACER = /usr/bin/time -v -o $(t_pfx).time
35 full-test: test-18 test-192
36 test-18:
37         $(MAKE) test 2>&1 | sed -e 's!^!1.8 !'
38 test-192:
39         $(MAKE) test r192=T 2>&1 | sed -e 's!^!1.9.2 !'