diff options
author | Petr Štetiar <ynezz@true.cz> | 2022-02-24 09:57:19 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2022-02-24 12:40:28 +0100 |
commit | 644d3c7e13c6a64bf5cb628137ee5bd4dada4b74 (patch) | |
tree | 041a86241ab5676711123d646d0a660a9e5048f6 /.gitlab | |
parent | dc54d2b544a1cecec9143805529c3016c208d574 (diff) | |
download | uclient-644d3c7e13c6a64bf5cb628137ee5bd4dada4b74.tar.gz |
ci: improve wolfSSL test coverage
In order to prevent regressions like #9283, lets add build and runtime
testing of wolfSSL master and release branches into daily scheduled
pipeline.
References: https://github.com/openwrt/openwrt/issues/9283
References: https://github.com/wolfSSL/wolfssl/issues/4879
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Diffstat (limited to '.gitlab')
-rw-r--r-- | .gitlab/wolfssl.yml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/.gitlab/wolfssl.yml b/.gitlab/wolfssl.yml new file mode 100644 index 0000000..3e4b6fb --- /dev/null +++ b/.gitlab/wolfssl.yml @@ -0,0 +1,42 @@ +.ustream-ssl wolfSSL: + extends: .openwrt-native-build + variables: + CI_CMAKE_EXTRA_BUILD_ARGS: -DWOLFSSL=on + + before_script: + - git clone -b $CI_WOLFSSL_TEST_BRANCH --depth 1 https://github.com/wolfSSL/wolfssl + - | + cd wolfssl && + git log -1 && + ./autogen.sh && + ./configure \ + --enable-sni \ + --enable-opensslall \ + --enable-opensslextra \ + --enable-altcertchains \ + --prefix=/usr && + make -j$(($(nproc)+1)) all && + sudo make install && cd .. + + - git clone https://git.openwrt.org/project/ustream-ssl.git + - | + cd ustream-ssl && + git log -1 && + export VERBOSE=1 && + mkdir -p build && cd build && + cmake .. -DCMAKE_INSTALL_PREFIX=/usr $CI_CMAKE_EXTRA_BUILD_ARGS && cd .. && + make -j$(($(nproc)+1)) -C build && + sudo make install -C build + + - cd $CI_PROJECT_DIR + - rm -fr wolfssl ustream-ssl + +.ustream-ssl wolfSSL master: + extends: .ustream-ssl wolfSSL + variables: + CI_WOLFSSL_TEST_BRANCH: master + +.ustream-ssl wolfSSL release: + extends: .ustream-ssl wolfSSL + variables: + CI_WOLFSSL_TEST_BRANCH: release |