0001-Do-not-run-tests.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From 3cbef2195533f357c8a80c2840108662461273b7 Mon Sep 17 00:00:00 2001
  2. From: Lionel Orry <lionel.orry@gmail.com>
  3. Date: Wed, 27 Mar 2013 14:48:19 +0100
  4. Subject: [PATCH] Do not run tests.
  5. This patch is specific to cross-compiled environments and avoids running
  6. the tests on the host. It is not meant to be applied upstream.
  7. Signed-off-by: Lionel Orry <lionel.orry@gmail.com>
  8. ---
  9. Makefile | 2 +-
  10. tools/m2sh/Makefile | 2 +-
  11. 2 files changed, 2 insertions(+), 2 deletions(-)
  12. diff --git a/Makefile b/Makefile
  13. index 7dc4089..ca72630 100644
  14. --- a/Makefile
  15. +++ b/Makefile
  16. @@ -16,7 +16,7 @@ TEST_SRC=$(wildcard tests/*_tests.c)
  17. TESTS=$(patsubst %.c,%,${TEST_SRC})
  18. MAKEOPTS=OPTFLAGS="${NOEXTCFLAGS} ${OPTFLAGS}" OPTLIBS="${OPTLIBS}" LIBS="${LIBS}" DESTDIR="${DESTDIR}" PREFIX="${PREFIX}"
  19. -all: bin/mongrel2 tests m2sh procer
  20. +all: bin/mongrel2 m2sh procer filters config_modules
  21. dev: CFLAGS=-g -Wall -Isrc -Wall -Wextra $(OPTFLAGS) -D_FILE_OFFSET_BITS=64
  22. dev: all
  23. diff --git a/tools/m2sh/Makefile b/tools/m2sh/Makefile
  24. index b50d8a0..334e4da 100644
  25. --- a/tools/m2sh/Makefile
  26. +++ b/tools/m2sh/Makefile
  27. @@ -9,7 +9,7 @@ TESTS=$(patsubst %.c,%,${TEST_SRC})
  28. LIB_SRC=$(filter-out src/m2sh.c,${SOURCES})
  29. LIB_OBJ=$(filter-out src/m2sh.o,${OBJECTS})
  30. -all: ../lemon/lemon tests build/m2sh
  31. +all: ../lemon/lemon build/m2sh
  32. dev: CFLAGS=-g -Wall -Wextra -Isrc -I../../src $(OPTFLAGS)
  33. dev: all
  34. --
  35. 1.8.1.4