Skip to content

Commit 30dbf7c

Browse files
add socat yml CI test
1 parent b9e5c02 commit 30dbf7c

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/socat.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: socat Tests
2+
3+
# START OF COMMON SECTION
4+
on:
5+
push:
6+
branches: [ 'master' ]
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+
socat_check:
17+
strategy:
18+
fail-fast: false
19+
runs-on: ubuntu-latest
20+
# This should be a safe limit for the tests to run.
21+
timeout-minutes: 30
22+
steps:
23+
- name: Install prereqs
24+
run:
25+
sudo apt-get install build-essential autoconf libtool pkg-config clang libc++-dev
26+
27+
- name: Build wolfSSL
28+
uses: wolfSSL/actions-build-autotools-project@v1
29+
with:
30+
path: wolfssl
31+
configure: --enable-maxfragment --enable-opensslall --enable-opensslextra --enable-dtls --enable-oldtls --enable-tlsv10 --enable-ipv6 'CPPFLAGS=-DWOLFSSL_NO_DTLS_SIZE_CHECK -DOPENSSL_COMPATIBLE_DEFAULTS'
32+
install: true
33+
34+
- name: Download socat
35+
run: curl -O http://www.dest-unreach.org/socat/download/socat-1.8.0.0.tar.gz && tar xvf socat-1.8.0.0.tar.gz
36+
37+
- name: Checkout OSP
38+
uses: actions/checkout@v4
39+
with:
40+
repository: wolfssl/osp
41+
path: osp
42+
43+
- name: Build socat
44+
working-directory: ./socat-1.8.0.0
45+
run: |
46+
patch -p1 < ../osp/socat/1.8.0.0/socat-1.8.0.0.patch
47+
autoreconf -vfi
48+
./configure --with-wolfssl=/usr/local
49+
make
50+
51+
- name: Run socat tests
52+
working-directory: ./socat-1.8.0.0
53+
run: ./test.sh --expect-fail 146,216,309,310,386,402,459,460

0 commit comments

Comments
 (0)