Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@ jobs:
prepare: |
set -ex
env IGNORE_OSVERSION=yes pkg update -f
env IGNORE_OSVERSION=yes pkg install -y gmake gcc wolfssl check vim
env IGNORE_OSVERSION=yes pkg install -y gmake gcc check vim autoconf automake libtool git
kldload if_tap || true
sysctl net.link.tap.up_on_open=1 || true
git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl
cd /tmp/wolfssl
./autogen.sh
./configure --enable-all --enable-md5
gmake -j$(sysctl -n hw.ncpu)
gmake install
ldconfig
run: |
set -ex
cd "${GITHUB_WORKSPACE:-/root/work/github/workspace}"
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,22 @@ jobs:
with:
submodules: true

- name: Update repo
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwolfssl-dev
sudo apt-get install -y build-essential autoconf automake libtool pkg-config
sudo modprobe tun

- name: Clone and build wolfSSL from nightly-snapshot
run: |
git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl
cd /tmp/wolfssl
./autogen.sh
./configure --enable-all --enable-md5
make -j$(nproc)
sudo make install
sudo ldconfig

- name: Build linux tests
run: |
mkdir -p build/port
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,16 @@ jobs:
- name: Install dependencies
run: |
brew update
brew install make wolfssl check
brew install make check autoconf automake libtool

- name: Clone and build wolfSSL from nightly-snapshot
run: |
git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl
cd /tmp/wolfssl
./autogen.sh
./configure --enable-all --enable-md5
make -j$(sysctl -n hw.ncpu)
sudo make install

- name: Build tests
run: |
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/multi-compiler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,19 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get install -y libwolfssl-dev check
sudo apt-get install -y autoconf automake libtool pkg-config check
sudo modprobe tun

- name: Clone and build wolfSSL from nightly-snapshot
run: |
git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl
cd /tmp/wolfssl
./autogen.sh
./configure --enable-all --enable-md5
make -j$(nproc)
sudo make install
sudo ldconfig

- name: Build wolfIP with ${{ matrix.cc }}
run: |
mkdir -p build/port
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,19 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwolfssl-dev check
sudo apt-get install -y build-essential autoconf automake libtool pkg-config check
sudo modprobe tun

- name: Clone and build wolfSSL from nightly-snapshot
run: |
git clone --depth=1 https://github.com/wolfssl/wolfssl --branch nightly-snapshot /tmp/wolfssl
cd /tmp/wolfssl
./autogen.sh
./configure --enable-all --enable-md5
make -j$(nproc)
sudo make install
sudo ldconfig

- name: Build wolfIP with ${{ matrix.name }}
run: |
mkdir -p build/port
Expand Down
21 changes: 21 additions & 0 deletions src/test/unit/unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,26 @@ Suite *wolf_suite(void)
tcase_add_test(tc_utils, test_sock_accept_synack_retransmission);
tcase_add_test(tc_utils, test_sock_accept_synack_window_not_scaled);
tcase_add_test(tc_utils, test_sock_accept_ack_transitions_to_established);
tcase_add_test(tc_utils, test_listen_socket_survives_synrcvd_rto_expiry);
tcase_add_test(tc_utils, test_accepted_socket_destroyed_on_synrcvd_rto_expiry);
tcase_add_test(tc_utils, test_tcp_send_syn_options_aligned_small_mtu);
tcase_add_test(tc_utils, test_syn_sent_bare_rst_dropped);
tcase_add_test(tc_utils, test_syn_rcvd_rst_bad_seq_dropped);
tcase_add_test(tc_utils, test_ip_recv_drops_broadcast_source);
tcase_add_test(tc_utils, test_arp_recv_rejects_broadcast_sender);
tcase_add_test(tc_utils, test_dhcp_ack_rejects_mismatched_server_id);
tcase_add_test(tc_utils, test_udp_no_icmp_unreachable_for_broadcast_src);
tcase_add_test(tc_utils, test_udp_no_icmp_unreachable_for_multicast_src);
tcase_add_test(tc_utils, test_udp_no_icmp_unreachable_for_broadcast_dst);
tcase_add_test(tc_utils, test_udp_no_icmp_unreachable_for_multicast_dst);
tcase_add_test(tc_utils, test_tcp_no_rst_for_broadcast_dst);
tcase_add_test(tc_utils, test_tcp_no_rst_for_multicast_dst);
tcase_add_test(tc_utils, test_dhcp_renewing_transitions_to_rebinding);
tcase_add_test(tc_utils, test_arp_recv_rejects_wrong_htype);
tcase_add_test(tc_utils, test_syn_sent_bad_ack_synack_sends_rst);
tcase_add_test(tc_utils, test_syn_rcvd_bad_ack_sends_rst);
tcase_add_test(tc_utils, test_established_fin_without_ack_dropped);
tcase_add_test(tc_utils, test_ip_recv_drops_source_routed_packet);
tcase_add_test(tc_utils, test_sock_sendto_error_paths);
tcase_add_test(tc_utils, test_sock_sendto_null_buf_or_len_zero);
tcase_add_test(tc_utils, test_sock_sendto_tcp_not_established);
Expand Down Expand Up @@ -712,6 +732,7 @@ Suite *wolf_suite(void)
tcase_add_test(tc_proto, test_icmp_input_echo_request_dhcp_running_no_reply);
tcase_add_test(tc_proto, test_icmp_input_echo_request_broadcast_no_reply);
tcase_add_test(tc_proto, test_icmp_input_echo_request_directed_broadcast_no_reply);
tcase_add_test(tc_proto, test_icmp_input_echo_request_multicast_no_reply);
tcase_add_test(tc_proto, test_icmp_input_echo_request_filter_drop);
tcase_add_test(tc_proto, test_icmp_input_echo_request_ip_filter_drop);
tcase_add_test(tc_proto, test_icmp_input_echo_request_eth_filter_drop);
Expand Down
Loading
Loading