@@ -10,35 +10,64 @@ DESTINATION_old:= bin/${BINARY_NAME}
1010DESTINATION_x86_64 := bin/${BINARY_NAME}-x86_64
1111DESTINATION_arm64 := bin/${BINARY_NAME}-arm64
1212
13+ run_in_docker = docker run --env GOPROXY=direct -v $(shell pwd) :/LambdaRuntimeLocal -w /LambdaRuntimeLocal golang:1.22 $(1 )
14+
1315compile-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)
1717
1818compile-lambda-linux-all :
1919 make ARCH=x86_64 compile-lambda-linux
2020 make ARCH=arm64 compile-lambda-linux
2121 make ARCH=old compile-lambda-linux
2222
2323compile-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)
2525
2626compile-lambda-linux :
2727 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
2828
29+ tests-with-docker :
30+ $(call run_in_docker, make tests)
31+
2932tests :
3033 go test ./...
3134
3235integ-tests-and-compile : tests
3336 make compile-lambda-linux-all
3437 make integ-tests
3538
36- integ-tests-with-docker : tests
39+ integ-tests-with-docker : tests-with-docker
3740 make compile-with-docker-all
3841 make integ-tests
39-
40- integ-tests :
42+
43+ prep-python :
4144 python3 -m venv .venv
4245 .venv/bin/pip install --upgrade pip
4346 .venv/bin/pip install requests parameterized
47+
48+ exec-python-e2e-test :
4449 .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