Skip to content

Commit

Permalink
Add mbedtls specific tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huitema committed Nov 5, 2023
1 parent a6fefb9 commit ed77ca3
Show file tree
Hide file tree
Showing 8 changed files with 561 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mbedtls.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ jobs:
ulimit -c unlimited -S
cd build
make picoquic_ct
./picoquic_ct -S .. many_losses && QUICRESULT=$?
./picoquic_ct -S .. mbedtls_crypto mbedtls && QUICRESULT=$?
if [[ ${QUICRESULT} == 0 ]]; then exit 0; fi;
exit 1
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ else()
endif()

project(picoquic
VERSION 1.1.13.2
VERSION 1.1.14.0
DESCRIPTION "picoquic library"
LANGUAGES C CXX)

Expand Down Expand Up @@ -150,6 +150,7 @@ set(PICOQUIC_TEST_LIBRARY_FILES
picoquictest/high_latency_test.c
picoquictest/intformattest.c
picoquictest/l4s_test.c
picoquictest/mbedtls_test.c
picoquictest/mediatest.c
picoquictest/minicrypto_test.c
picoquictest/multipath_test.c
Expand Down
2 changes: 1 addition & 1 deletion picoquic/picoquic.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
extern "C" {
#endif

#define PICOQUIC_VERSION "1.1.13.2"
#define PICOQUIC_VERSION "1.1.14.0"
#define PICOQUIC_ERROR_CLASS 0x400
#define PICOQUIC_ERROR_DUPLICATE (PICOQUIC_ERROR_CLASS + 1)
#define PICOQUIC_ERROR_AEAD_CHECK (PICOQUIC_ERROR_CLASS + 3)
Expand Down
4 changes: 4 additions & 0 deletions picoquic_t/picoquic_t.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ static const picoquic_test_def_t test_table[] = {
{ "migration_controlled", migration_controlled_test },
{ "migration_mtu_drop", migration_mtu_drop_test },
{ "minicrypto", minicrypto_test },
#ifdef PICOQUIC_WITH_MBEDTLS
{ "mbedtls", mbedtls_test },
{ "mbedtls_crypto", mbedtls_crypto_test },
#endif
{ "monopath_basic", monopath_basic_test },
{ "monopath_hole", monopath_hole_test },
{ "monopath_rotation", monopath_rotation_test },
Expand Down
Loading

0 comments on commit ed77ca3

Please sign in to comment.