Skip to content

Commit

Permalink
Add test-sanity GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Fekete committed Sep 6, 2024
1 parent fe9a462 commit 01fcdc0
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 6 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/test-sanity.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Simple Tests

# START OF COMMON SECTION
on:
push:
branches: [ '*' ]
# branches: [ 'master', 'main', 'release/**' ]
pull_request:
branches: [ '*' ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# END OF COMMON SECTION

jobs:
make_check:
strategy:
matrix:
config: [
# Add new configs here
'',
'OPENSSL_TAG=master',
'WOLFSSL_TAG=master',
'OPENSSL_TAG=master WOLFSSL_TAG=master',
'OPENSSL_TAG=master WOLFSSL_ISFIPS=1',
'WOLFSSL_TAG=master WOLFSSL_ISFIPS=1',
'OPENSSL_TAG=master WOLFSSL_TAG=master WOLFSSL_ISFIPS=1',
]
name: make check
runs-on: ubuntu-latest
# This should be a safe limit for the tests to run.
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
name: Checkout wolfProvider

- name: Test wolfProvider
run: |
${{ matrix.config }} ./scripts/test-sanity.sh
- name: Print errors
if: ${{ failure() }}
run: |
if [ -f scripts/test-sanity.log ] ; then
cat scripts/test-sanity.log
fi
8 changes: 2 additions & 6 deletions scripts/test-sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function runSpotCheck() {
unset OPENSSL_MODULES
unset OPENSSL_CONF
rm -rf ${WOLFSSL_INSTALL_DIR} ${WOLFSSL_SOURCE_DIR} ${WOLFPROV_INSTALL_DIR}
doTestCmd "$1 init_wolfprov"
doTestCmd init_wolfprov

SET_POST=$( set )
echo "New variables set:"
Expand All @@ -52,10 +52,6 @@ function runSpotCheck() {
doTestCmd "curl https://tls.support -vv --tlsv1.3 --tls-max 1.3 -o test.html"
}

echo "Now testing standard version"
runSpotCheck ""

echo "Now testing FIPS version"
runSpotCheck "WOLFSSL_ISFIPS=1"
runSpotCheck

exit $?

0 comments on commit 01fcdc0

Please sign in to comment.