@@ -20,11 +20,19 @@ NGINX_TESTS_DIR ?= $(NGINX_SOURCE_DIR)/tests
20
20
NGINX_BUILD_DIR ?= $(CURDIR ) /objs-$(BUILD )
21
21
22
22
TEST_NGINX_BINARY = $(NGINX_BUILD_DIR ) /nginx
23
+ TEST_NGINX_GLOBALS += env RUST_BACKTRACE;
23
24
24
25
# "build" always calls cargo and causes relinking.
25
26
# Clearing this var allows to skip the build step: "make test TEST_PREREQ="
26
27
TEST_PREREQ = build
27
28
29
+
30
+ .PHONY : all
31
+
32
+ all : # # Build, lint and test the module
33
+ all : build check unittest test
34
+
35
+
28
36
# Conditionals via include, compatible with most implementations of make
29
37
30
38
# GNU make 3.81 or earlier
@@ -35,6 +43,7 @@ MAKE_FLAVOR!= echo posix
35
43
include build/compat-$(MAKE_FLAVOR ) .mk
36
44
include build/build-$(BUILD ) .mk
37
45
46
+
38
47
# Set up environment propagation
39
48
40
49
BUILD_ENV += NGINX_SOURCE_DIR="$(NGINX_SOURCE_DIR ) "
@@ -44,12 +53,10 @@ TEST_ENV += RUST_BACKTRACE=1
44
53
TEST_ENV += TEST_NGINX_BINARY="$(TEST_NGINX_BINARY ) "
45
54
TEST_ENV += TEST_NGINX_GLOBALS="$(TEST_NGINX_GLOBALS ) "
46
55
47
- # Build targets
48
56
49
- .PHONY : all help build check test clean
57
+ # Build targets
50
58
51
- all : # # Build, lint and test the module
52
- all : build check unittest test
59
+ .PHONY : help build check unittest test clean
53
60
54
61
help :
55
62
@echo " Available targets:"
0 commit comments