Skip to content

Commit ae7e7e7

Browse files
author
Fernando Oleo Blanco
committed
Update upstream
2 parents ad25e9b + f660299 commit ae7e7e7

1,073 files changed

Lines changed: 153006 additions & 52161 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/async.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
name: Async Tests
22

3+
# START OF COMMON SECTION
34
on:
4-
workflow_call:
5+
push:
6+
branches: [ 'master', 'main', 'release/**' ]
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
# END OF COMMON SECTION
514

615
jobs:
716
make_check:

.github/workflows/curl.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
name: curl Test
22

3+
# START OF COMMON SECTION
34
on:
4-
workflow_call:
5+
push:
6+
branches: [ 'master', 'main', 'release/**' ]
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
# END OF COMMON SECTION
514

615
jobs:
716
build_wolfssl:
@@ -17,11 +26,14 @@ jobs:
1726
configure: --enable-curl
1827
install: true
1928

29+
- name: tar build-dir
30+
run: tar -zcf build-dir.tgz build-dir
31+
2032
- name: Upload built lib
2133
uses: actions/upload-artifact@v4
2234
with:
2335
name: wolf-install-curl
24-
path: build-dir
36+
path: build-dir.tgz
2537
retention-days: 5
2638

2739
test_curl:
@@ -45,7 +57,9 @@ jobs:
4557
uses: actions/download-artifact@v4
4658
with:
4759
name: wolf-install-curl
48-
path: build-dir
60+
61+
- name: untar build-dir
62+
run: tar -xf build-dir.tgz
4963

5064
- name: Build curl
5165
uses: wolfSSL/actions-build-autotools-project@v1

.github/workflows/cyrus-sasl.yml

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
name: cyrus-sasl Tests
2+
3+
# START OF COMMON SECTION
4+
on:
5+
push:
6+
branches: [ 'master', 'main', 'release/**' ]
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
# END OF COMMON SECTION
14+
15+
jobs:
16+
build_wolfssl:
17+
name: Build wolfSSL
18+
# Just to keep it the same as the testing target
19+
runs-on: ubuntu-latest
20+
# This should be a safe limit for the tests to run.
21+
timeout-minutes: 4
22+
steps:
23+
- name: Build wolfSSL
24+
uses: wolfSSL/actions-build-autotools-project@v1
25+
with:
26+
path: wolfssl
27+
configure: --enable-all
28+
install: true
29+
# Don't run tests as this config is tested in many other places
30+
check: false
31+
32+
- name: tar build-dir
33+
run: tar -zcf build-dir.tgz build-dir
34+
35+
- name: Upload built lib
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: wolf-install-sasl
39+
path: build-dir.tgz
40+
retention-days: 5
41+
42+
sasl_check:
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
# List of releases to test
47+
ref: [ 2.1.28 ]
48+
name: ${{ matrix.ref }}
49+
runs-on: ubuntu-latest
50+
# This should be a safe limit for the tests to run.
51+
timeout-minutes: 4
52+
needs: build_wolfssl
53+
steps:
54+
- name: Install dependencies
55+
run: |
56+
# Don't prompt for anything
57+
export DEBIAN_FRONTEND=noninteractive
58+
sudo apt-get update
59+
sudo apt-get install krb5-kdc krb5-otp libkrb5-dev \
60+
libsocket-wrapper libnss-wrapper krb5-admin-server libdb5.3-dev
61+
62+
- name: Download lib
63+
uses: actions/download-artifact@v4
64+
with:
65+
name: wolf-install-sasl
66+
67+
- name: untar build-dir
68+
run: tar -xf build-dir.tgz
69+
70+
- name: Checkout OSP
71+
uses: actions/checkout@v4
72+
with:
73+
repository: wolfssl/osp
74+
path: osp
75+
76+
- name: Checkout sasl
77+
uses: actions/checkout@v4
78+
with:
79+
repository: cyrusimap/cyrus-sasl
80+
ref: cyrus-sasl-${{ matrix.ref }}
81+
path: sasl
82+
83+
- name: Build cyrus-sasl
84+
working-directory: sasl
85+
run: |
86+
patch -p1 < $GITHUB_WORKSPACE/osp/cyrus-sasl/${{ matrix.ref }}/${{ matrix.ref }}.patch
87+
autoreconf -ivf
88+
./configure --with-openssl=no --with-wolfssl=$GITHUB_WORKSPACE/build-dir --with-dblib=berkeley --disable-shared
89+
# Need to run 'make' twice with '--disable-shared' for some reason
90+
make -j || make -j
91+
92+
- name: Run testsuite
93+
working-directory: sasl
94+
run: |
95+
make -j -C utils testsuite saslpasswd2
96+
# Retry up to five times
97+
for i in {1..5}; do
98+
TEST_RES=0
99+
$GITHUB_WORKSPACE/osp/cyrus-sasl/${{ matrix.ref }}/run-tests.sh || TEST_RES=$?
100+
if [ "$TEST_RES" -eq "0" ]; then
101+
break
102+
fi
103+
done
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
name: HaProxy Tests
22

3+
# START OF COMMON SECTION
34
on:
4-
workflow_call:
5+
push:
6+
branches: [ 'master', 'main', 'release/**' ]
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
# END OF COMMON SECTION
514

615
jobs:
716
haproxy_check:
Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
name: hostap and wpa-supplicant Tests
22

3+
# START OF COMMON SECTION
34
on:
4-
workflow_call:
5+
push:
6+
branches: [ 'master', 'main', 'release/**' ]
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
# END OF COMMON SECTION
514

615
jobs:
716
build_wolfssl:
@@ -62,15 +71,15 @@ jobs:
6271
config: [
6372
{
6473
hostap_ref: hostap_2_10,
65-
hostap_cherry_pick: 5679ec5c3dda25a0547a5f66407fd9b0b55fd04a,
74+
hostap_cherry_pick: 36fcbb1a4ee4aa604f15079eae2ffa4fe7f44680,
6675
remove_teap: true,
6776
# TLS 1.3 does not work for this version
6877
build_id: hostap-build1,
6978
},
7079
# Test the dpp patch
7180
{
7281
hostap_ref: b607d2723e927a3446d89aed813f1aa6068186bb,
73-
hostap_cherry_pick: 5679ec5c3dda25a0547a5f66407fd9b0b55fd04a,
82+
hostap_cherry_pick: 36fcbb1a4ee4aa604f15079eae2ffa4fe7f44680,
7483
osp_ref: ad5b52a49b3cc2a5bfb47ccc1d6a5137132e9446,
7584
build_id: hostap-build2
7685
},

.github/workflows/docker-Espressif.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Espressif examples tests
2+
# START OF COMMON SECTION
23
on:
3-
workflow_call:
4+
push:
5+
branches: [ 'master', 'main', 'release/**' ]
6+
pull_request:
7+
branches: [ '*' ]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
# END OF COMMON SECTION
413

514
jobs:
615
espressif_latest:

.github/workflows/docker-OpenWrt.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@
22
# there aren't any compatibility issues. Take a look at Docker/OpenWrt/README.md
33
name: OpenWrt test
44

5+
# START OF COMMON SECTION
56
on:
6-
workflow_call:
7+
push:
8+
branches: [ 'master', 'main', 'release/**' ]
9+
pull_request:
10+
branches: [ '*' ]
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
# END OF COMMON SECTION
716

817
jobs:
918
build_library:
@@ -19,11 +28,15 @@ jobs:
1928
- uses: actions/checkout@v4
2029
- name: Compile libwolfssl.so
2130
run: ./autogen.sh && ./configure --enable-all && make
31+
# 2024-08-05 - Something broke in the actions. They are no longer following links.
32+
- name: tar libwolfssl.so
33+
working-directory: src/.libs
34+
run: tar -zcf libwolfssl.tgz libwolfssl.so*
2235
- name: Upload libwolfssl.so
2336
uses: actions/upload-artifact@v4
2437
with:
2538
name: openwrt-libwolfssl.so
26-
path: src/.libs/libwolfssl.so
39+
path: src/.libs/libwolfssl.tgz
2740
retention-days: 5
2841
compile_container:
2942
name: Compile container
@@ -41,7 +54,9 @@ jobs:
4154
- uses: actions/download-artifact@v4
4255
with:
4356
name: openwrt-libwolfssl.so
44-
path: Docker/OpenWrt/.
57+
path: .
58+
- name: untar libwolfssl.so
59+
run: tar -xf libwolfssl.tgz -C Docker/OpenWrt
4560
- name: Build but dont push
4661
uses: docker/build-push-action@v5
4762
with:

.github/workflows/grpc.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: grpc Tests
2+
3+
# START OF COMMON SECTION
4+
on:
5+
push:
6+
branches: [ 'master', 'main', 'release/**' ]
7+
pull_request:
8+
branches: [ '*' ]
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
# END OF COMMON SECTION
14+
15+
jobs:
16+
build_wolfssl:
17+
name: Build wolfSSL
18+
# Just to keep it the same as the testing target
19+
runs-on: ubuntu-latest
20+
# This should be a safe limit for the tests to run.
21+
timeout-minutes: 10
22+
steps:
23+
- name: Build wolfSSL
24+
uses: wolfSSL/actions-build-autotools-project@v1
25+
with:
26+
path: wolfssl
27+
configure: --enable-all 'CPPFLAGS=-DWOLFSSL_RSA_KEY_CHECK -DHAVE_EX_DATA_CLEANUP_HOOKS'
28+
install: true
29+
30+
- name: tar build-dir
31+
run: tar -zcf build-dir.tgz build-dir
32+
33+
- name: Upload built lib
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: wolf-install-grpc
37+
path: build-dir.tgz
38+
retention-days: 5
39+
40+
grpc_check:
41+
strategy:
42+
fail-fast: false
43+
matrix:
44+
include:
45+
- ref: v1.60.0
46+
tests: >-
47+
bad_ssl_alpn_test bad_ssl_cert_test client_ssl_test
48+
crl_ssl_transport_security_test server_ssl_test
49+
ssl_transport_security_test ssl_transport_security_utils_test
50+
test_core_security_ssl_credentials_test test_cpp_end2end_ssl_credentials_test
51+
h2_ssl_cert_test h2_ssl_session_reuse_test
52+
name: ${{ matrix.ref }}
53+
runs-on: ubuntu-latest
54+
# This should be a safe limit for the tests to run.
55+
timeout-minutes: 30
56+
needs: build_wolfssl
57+
steps:
58+
- name: Confirm IPv4 and IPv6 support
59+
run: |
60+
ip addr list lo | grep 'inet '
61+
ip addr list lo | grep 'inet6 '
62+
63+
- name: Install prereqs
64+
run:
65+
sudo apt-get install build-essential autoconf libtool pkg-config cmake clang libc++-dev
66+
67+
- name: Download lib
68+
uses: actions/download-artifact@v4
69+
with:
70+
name: wolf-install-grpc
71+
72+
- name: untar build-dir
73+
run: tar -xf build-dir.tgz
74+
75+
- name: Checkout OSP
76+
uses: actions/checkout@v4
77+
with:
78+
repository: wolfssl/osp
79+
path: osp
80+
81+
- name: Checkout grpc
82+
uses: actions/checkout@v4
83+
with:
84+
repository: grpc/grpc
85+
path: grpc
86+
ref: ${{ matrix.ref }}
87+
88+
- name: Build grpc
89+
working-directory: ./grpc
90+
run: |
91+
patch -p1 < ../osp/grpc/grpc-${{ matrix.ref }}.patch
92+
git submodule update --init
93+
mkdir cmake/build
94+
cd cmake/build
95+
cmake -DgRPC_BUILD_TESTS=ON -DgRPC_SSL_PROVIDER=wolfssl \
96+
-DWOLFSSL_INSTALL_DIR=$GITHUB_WORKSPACE/build-dir ../..
97+
make -j $(nproc) ${{ matrix.tests }}
98+
99+
- name: Run grpc tests
100+
working-directory: ./grpc
101+
run: |
102+
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/build-dir/lib:$LD_LIBRARY_PATH
103+
./tools/run_tests/start_port_server.py
104+
for t in ${{ matrix.tests }} ; do
105+
./cmake/build/$t
106+
done

0 commit comments

Comments
 (0)