From 11810564cc4b6b8bfdc679f5a6384f4af6debe40 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 28 Jan 2015 18:54:15 +0000 Subject: http: standalone require + reduction in binary size This allows requiring just the C extension part of "unicorn_http", without requiring the rest of unicorn, allowing other HTTP servers using the same parser to be slimmer. On my x86-64 Debian 7.0 system: text data bss dec hex filename 44026 1976 488 46490 b59a lib/unicorn_http.so 43930 1976 456 46362 b51a lib/unicorn_http.so --- GNUmakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') diff --git a/GNUmakefile b/GNUmakefile index d7f0118..4c40dc9 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -85,10 +85,13 @@ test-unit: $(wildcard test/unit/test_*.rb) $(slow_tests): $(test_prefix)/.stamp @$(MAKE) $(shell $(awk_slow) $@) +test-require: $(ext)/unicorn_http.$(DLEXT) + $(RUBY) --disable-gems -I$(ext) -runicorn_http -e Unicorn + test-integration: $(test_prefix)/.stamp $(MAKE) -C t -check: test test-integration +check: test-require test test-integration test-all: check TEST_OPTS = -v -- cgit v1.2.3-24-ge0c7