File tree Expand file tree Collapse file tree 2 files changed +68
-1
lines changed Expand file tree Collapse file tree 2 files changed +68
-1
lines changed Original file line number Diff line number Diff line change 19
19
- uses : actions/checkout@v3
20
20
- name : Run integration build
21
21
run : |
22
- ./tests/ci/integration/run_haproxy_integration.sh
22
+ ./tests/ci/integration/run_haproxy_integration.sh
23
+ tcpdump :
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - name : Install OS Dependencies
27
+ run : |
28
+ sudo apt-get -y --no-install-recommends install cmake gcc ninja-build golang make libpcap-dev binutils-dev
29
+ - uses : actions/checkout@v3
30
+ - name : Run integration build
31
+ run : |
32
+ ./tests/ci/integration/run_tcpdump_integration.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -exu
2
+ #
3
+ # Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
4
+ # SPDX-License-Identifier: Apache-2.0 OR ISC
5
+ #
6
+
7
+ source tests/ci/common_posix_setup.sh
8
+
9
+ # Set up environment.
10
+
11
+ # SYS_ROOT
12
+ # |
13
+ # - SRC_ROOT(aws-lc)
14
+ # |
15
+ # - SCRATCH_FOLDER
16
+ # |
17
+ # - tcpdump
18
+ # - tcpdump-install
19
+ # - AWS_LC_BUILD_FOLDER
20
+ # - AWS_LC_INSTALL_FOLDER
21
+
22
+ # Assumes script is executed from the root of aws-lc directory
23
+ SCRATCH_FOLDER=${SYS_ROOT} /" TCPDUMP_SCRATCH"
24
+ TCPDUMP_SRC_FOLDER=" ${SCRATCH_FOLDER} /tcpdump"
25
+ TCPDUMP_INSTALL_FOLDER=" ${SCRATCH_FOLDER} /tcpdump-install"
26
+ AWS_LC_BUILD_FOLDER=" ${SCRATCH_FOLDER} /aws-lc-build"
27
+ AWS_LC_INSTALL_FOLDER=" ${SCRATCH_FOLDER} /aws-lc-install"
28
+
29
+ mkdir -p " ${SCRATCH_FOLDER} "
30
+ rm -rf " ${SCRATCH_FOLDER:? } " /*
31
+
32
+ pushd " ${SCRATCH_FOLDER} "
33
+
34
+ function tcpdump_build() {
35
+ autoreconf -fi
36
+ ./configure --prefix=" ${TCPDUMP_INSTALL_FOLDER} " --with-openssl=" ${AWS_LC_INSTALL_FOLDER} "
37
+ make -j " ${NUM_CPU_THREADS} "
38
+ }
39
+
40
+ function tcpdump_run_tests() {
41
+ make check
42
+ make releasecheck
43
+ }
44
+
45
+ # Get latest tcpdump version.
46
+ git clone https://github.com/the-tcpdump-group/tcpdump.git " ${TCPDUMP_SRC_FOLDER} "
47
+ mkdir -p " ${AWS_LC_BUILD_FOLDER} " " ${AWS_LC_INSTALL_FOLDER} " " ${TCPDUMP_INSTALL_FOLDER} "
48
+ ls
49
+
50
+ aws_lc_build " ${SRC_ROOT} " " ${AWS_LC_BUILD_FOLDER} " " ${AWS_LC_INSTALL_FOLDER} "
51
+
52
+ pushd " ${TCPDUMP_SRC_FOLDER} "
53
+ tcpdump_build
54
+ tcpdump_run_tests
55
+ popd
56
+
57
+ popd
You can’t perform that action at this time.
0 commit comments