@@ -10,35 +10,64 @@ DESTINATION_old:= bin/${BINARY_NAME}
10
10
DESTINATION_x86_64 := bin/${BINARY_NAME}-x86_64
11
11
DESTINATION_arm64 := bin/${BINARY_NAME}-arm64
12
12
13
+ run_in_docker = docker run --env GOPROXY=direct -v $(shell pwd) :/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:1.22 $(1 )
14
+
13
15
compile-with-docker-all :
14
- make ARCH=x86_64 compile-with-docker
15
- make ARCH=arm64 compile-with-docker
16
- make ARCH=old compile-with-docker
16
+ $(call run_in_docker, make compile-lambda-linux-all)
17
17
18
18
compile-lambda-linux-all :
19
19
make ARCH=x86_64 compile-lambda-linux
20
20
make ARCH=arm64 compile-lambda-linux
21
21
make ARCH=old compile-lambda-linux
22
22
23
23
compile-with-docker :
24
- docker run --env GOPROXY=direct -v $( shell pwd) :/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:1.21 make ARCH=${ARCH} compile-lambda-linux
24
+ $( call run_in_docker, make ARCH=${ARCH} compile-lambda-linux)
25
25
26
26
compile-lambda-linux :
27
27
CGO_ENABLED=0 GOOS=linux GOARCH=${GO_ARCH_${ARCH} } go build -buildvcs=false -ldflags " ${RELEASE_BUILD_LINKER_FLAGS} " -o ${DESTINATION_${ARCH} } ./cmd/aws-lambda-rie
28
28
29
+ tests-with-docker :
30
+ $(call run_in_docker, make tests)
31
+
29
32
tests :
30
33
go test ./...
31
34
32
35
integ-tests-and-compile : tests
33
36
make compile-lambda-linux-all
34
37
make integ-tests
35
38
36
- integ-tests-with-docker : tests
39
+ integ-tests-with-docker : tests-with-docker
37
40
make compile-with-docker-all
38
41
make integ-tests
39
-
40
- integ-tests :
42
+
43
+ prep-python :
41
44
python3 -m venv .venv
42
45
.venv/bin/pip install --upgrade pip
43
46
.venv/bin/pip install requests parameterized
47
+
48
+ exec-python-e2e-test :
44
49
.venv/bin/python3 test/integration/local_lambda/test_end_to_end.py
50
+
51
+ integ-tests :
52
+ make prep-python
53
+ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
54
+ make TEST_ARCH=x86_64 TEST_PORT=8002 exec-python-e2e-test
55
+ make TEST_ARCH=arm64 TEST_PORT=9002 exec-python-e2e-test
56
+ make TEST_ARCH=" " TEST_PORT=9052 exec-python-e2e-test
57
+
58
+ integ-tests-with-docker-x86-64 :
59
+ make ARCH=x86_64 compile-with-docker
60
+ make prep-python
61
+ make TEST_ARCH=x86_64 TEST_PORT=8002 exec-python-e2e-test
62
+
63
+ integ-tests-with-docker-arm64 :
64
+ make ARCH=arm64 compile-with-docker
65
+ make prep-python
66
+ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
67
+ make TEST_ARCH=arm64 TEST_PORT=9002 exec-python-e2e-test
68
+
69
+ integ-tests-with-docker-old :
70
+ make ARCH=old compile-with-docker
71
+ make prep-python
72
+ make TEST_ARCH=" " TEST_PORT=9052 exec-python-e2e-test
73
+
0 commit comments